-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (26 loc) · 935 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Auto Assign to Project(s)
on:
issues:
types: [opened, labeled]
pull_request:
types: [opened, labeled]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign to One Project
steps:
- name: Assign NEW issues and NEW pull requests to project 1
uses: srggrs/assign-one-project-github-action@1.2.0
if: github.event.action == 'opened'
with:
project: 'https://github.com/Abir-Tx/XWriter/projects/1'
# - name: Assign issues and pull requests with `bug` label to project 1
# uses: srggrs/assign-one-project-github-action@1.2.0
# if: |
# contains(github.event.issue.labels.*.name, 'bug') ||
# contains(github.event.pull_request.labels.*.name, 'bug')
# with:
# project: 'https://github.com/Abir-Tx/XWriter/projects/1'
# column_name: 'Labeled'