Skip to content

Commit 83107e5

Browse files
ci: simplified project workflow
1 parent fef8853 commit 83107e5

File tree

1 file changed

+8
-56
lines changed

1 file changed

+8
-56
lines changed

.github/workflows/project_automations.yml

Lines changed: 8 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -4,83 +4,35 @@ on:
44
issues:
55
types:
66
- opened
7-
- reopened
8-
- closed
97
pull_request:
108
types:
119
- opened
12-
- ready_for_review
13-
- reopened
14-
- review_requested
15-
- closed
1610

1711
jobs:
18-
issue_opened_and_reopened:
19-
name: issue_opened_and_reopened
12+
issue_opened:
13+
name: issue_opened
2014
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'
2216
steps:
2317
- name: 'Move issue to Todo'
24-
uses: leonsteinhaeuser/project-beta-automations@v1.0.2
18+
uses: leonsteinhaeuser/project-beta-automations@v1.2.0
2519
with:
2620
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
2721
user: leonsteinhaeuser
2822
project_id: ${{ secrets.PROJECT_ID }}
2923
resource_node_id: ${{ github.event.issue.node_id }}
3024
status_value: "Todo"
3125

32-
issue_closed:
33-
name: issue_closed
26+
pr_opened:
27+
name: pr_opened
3428
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'
5030
steps:
5131
- name: 'Move PR to "In Progress"'
52-
uses: leonsteinhaeuser/project-beta-automations@v1.0.2
32+
uses: leonsteinhaeuser/project-beta-automations@v1.2.0
5333
with:
5434
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
5535
user: leonsteinhaeuser
5636
project_id: ${{ secrets.PROJECT_ID }}
5737
resource_node_id: ${{ github.event.pull_request.node_id }}
5838
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

Comments
 (0)