-
Notifications
You must be signed in to change notification settings - Fork 26
61 lines (59 loc) · 1.79 KB
/
project_automation.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Project automations
on:
issues:
types:
- opened
- assigned
pull_request_target:
types:
- opened
# map fields with customized labels
env:
new: New
todo: Todo
done: Done
in_progress: In Progress
in_review: In Review
jobs:
issue_opened:
name: issue_opened
runs-on: ubuntu-latest
if: github.event_name == 'issues' && (github.event.action == 'opened')
steps:
- name: Move issue to ${{ env.new }}
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
# user: ghostbsd
organization: ghostbsd
project_id: 4
resource_node_id: ${{ github.event.issue.node_id }}
status_value: ${{ env.new }}
issue_assigned:
name: issue_assigned
runs-on: ubuntu-latest
if: github.event_name == 'issues' && (github.event.action == 'assigned')
steps:
- name: Move issue to ${{ env.in_progress }}
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
# user: ghostbsd
organization: ghostbsd
project_id: 4
resource_node_id: ${{ github.event.issue.node_id }}
status_value: ${{ env.in_progress }}
pr_opened:
name: pr_opened
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target' && (github.event.action == 'opened')
steps:
- name: Move PR to ${{ env.in_review }}
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
# user: ghostbsd
organization: ghostbsd
project_id: 4
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: ${{ env.in_review }}