4
4
issues :
5
5
types :
6
6
- opened
7
- - reopened
8
- - closed
9
7
pull_request :
10
8
types :
11
9
- opened
12
- - ready_for_review
13
- - reopened
14
- - review_requested
15
- - closed
16
10
17
11
jobs :
18
- issue_opened_and_reopened :
19
- name : issue_opened_and_reopened
12
+ issue_opened :
13
+ name : issue_opened
20
14
runs-on : ubuntu-latest
21
- if : github.event_name == 'issues' && ( github.event.action == 'opened' || github.event.action == 'reopened')
15
+ if : github.event_name == 'issues' && github.event.action == 'opened'
22
16
steps :
23
17
- name : ' Move issue to Todo'
24
- uses : leonsteinhaeuser/project-beta-automations@v1.0.2
18
+ uses : leonsteinhaeuser/project-beta-automations@v1.2.0
25
19
with :
26
20
gh_token : ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
27
21
user : leonsteinhaeuser
28
22
project_id : ${{ secrets.PROJECT_ID }}
29
23
resource_node_id : ${{ github.event.issue.node_id }}
30
24
status_value : " Todo"
31
25
32
- issue_closed :
33
- name : issue_closed
26
+ pr_opened :
27
+ name : pr_opened
34
28
runs-on : ubuntu-latest
35
- if : github.event_name == 'issues' && github.event.action == 'closed'
36
- steps :
37
- - name : ' Moved issue to Closed'
38
- uses :
leonsteinhaeuser/[email protected]
39
- with :
40
- gh_token : ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
41
- user : leonsteinhaeuser
42
- project_id : ${{ secrets.PROJECT_ID }}
43
- resource_node_id : ${{ github.event.issue.node_id }}
44
- status_value : " Done"
45
-
46
- pr_opened_reopened_review_requested :
47
- name : pr_opened_reopened_review_requested
48
- runs-on : ubuntu-latest
49
- if : github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'review_requested')
29
+ if : github.event_name == 'pull_request' && github.event.action == 'opened'
50
30
steps :
51
31
- name : ' Move PR to "In Progress"'
52
- uses : leonsteinhaeuser/project-beta-automations@v1.0.2
32
+ uses : leonsteinhaeuser/project-beta-automations@v1.2.0
53
33
with :
54
34
gh_token : ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
55
35
user : leonsteinhaeuser
56
36
project_id : ${{ secrets.PROJECT_ID }}
57
37
resource_node_id : ${{ github.event.pull_request.node_id }}
58
38
status_value : " In Progress"
59
-
60
- pr_review_required :
61
- name : pr_ready_for_review
62
- runs-on : ubuntu-latest
63
- if : github.event_name == 'pull_request' && github.event.action == 'ready_for_review'
64
- steps :
65
- - name : ' Move PR to "Review Required"'
66
- uses :
leonsteinhaeuser/[email protected]
67
- with :
68
- gh_token : ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
69
- user : leonsteinhaeuser
70
- project_id : ${{ secrets.PROJECT_ID }}
71
- resource_node_id : ${{ github.event.pull_request.node_id }}
72
- status_value : " Review Required"
73
-
74
- pr_closed :
75
- name : pr_closed
76
- runs-on : ubuntu-latest
77
- if : github.event_name == 'pull_request' && github.event.action == 'closed'
78
- steps :
79
- - name : ' Move PR to "Closed"'
80
- uses :
leonsteinhaeuser/[email protected]
81
- with :
82
- gh_token : ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
83
- user : leonsteinhaeuser
84
- project_id : ${{ secrets.PROJECT_ID }}
85
- resource_node_id : ${{ github.event.pull_request.node_id }}
86
- status_value : " Done"
0 commit comments