Skip to content

Commit 6305d6f

Browse files
authored
Merge pull request #76 from ghostbsd/ericbsd-patch-1
Update project_automation.yml
2 parents 73c0a1c + 28fb6ce commit 6305d6f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/project_automation.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Project automations
22

33
on:
4+
issues:
5+
types:
6+
- opened
7+
- assigned
48
pull_request_target:
59
types:
610
- opened
@@ -9,9 +13,41 @@ on:
913

1014
# map fields with customized labels
1115
env:
16+
new: New
17+
todo: Todo
18+
done: Done
19+
in_progress: In Progress
1220
in_review: In Review
1321

1422
jobs:
23+
issue_opened:
24+
name: issue_opened
25+
runs-on: ubuntu-latest
26+
if: github.event_name == 'issues' && (github.event.action == 'opened')
27+
steps:
28+
- name: Move issue to ${{ env.new }}
29+
uses: leonsteinhaeuser/[email protected]
30+
with:
31+
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
32+
# user: ghostbsd
33+
organization: ghostbsd
34+
project_id: 5
35+
resource_node_id: ${{ github.event.issue.node_id }}
36+
status_value: ${{ env.new }}
37+
issue_assigned:
38+
name: issue_assigned
39+
runs-on: ubuntu-latest
40+
if: github.event_name == 'issues' && (github.event.action == 'assigned')
41+
steps:
42+
- name: Move issue to ${{ env.in_progress }}
43+
uses: leonsteinhaeuser/[email protected]
44+
with:
45+
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
46+
# user: ghostbsd
47+
organization: ghostbsd
48+
project_id: 5
49+
resource_node_id: ${{ github.event.issue.node_id }}
50+
status_value: ${{ env.in_progress }}
1551
pr_opened:
1652
name: pr_opened
1753
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)