-
Notifications
You must be signed in to change notification settings - Fork 25
86 lines (80 loc) · 2.94 KB
/
project_automations.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Project automations
on:
issues:
types:
- opened
- reopened
- closed
pull_request:
types:
- opened
- ready_for_review
- reopened
- review_requested
- closed
jobs:
issue_opened_and_reopened:
name: issue_opened_and_reopened
runs-on: ubuntu-latest
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened')
steps:
- name: 'Move issue to Todo'
uses: leonsteinhaeuser/project-beta-automations@v1.0.2
with:
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
user: leonsteinhaeuser
project_id: ${{ secrets.PROJECT_ID }}
resource_node_id: ${{ github.event.issue.node_id }}
status_value: "Todo"
issue_closed:
name: issue_closed
runs-on: ubuntu-latest
if: github.event_name == 'issues' && github.event.action == 'closed'
steps:
- name: 'Moved issue to Closed'
uses: leonsteinhaeuser/project-beta-automations@v1.0.2
with:
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
user: leonsteinhaeuser
project_id: ${{ secrets.PROJECT_ID }}
resource_node_id: ${{ github.event.issue.node_id }}
status_value: "Done"
pr_opened_reopened_review_requested:
name: pr_opened_reopened_review_requested
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'review_requested')
steps:
- name: 'Move PR to "In Progress"'
uses: leonsteinhaeuser/project-beta-automations@v1.0.2
with:
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
user: leonsteinhaeuser
project_id: ${{ secrets.PROJECT_ID }}
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "In Progress"
pr_review_required:
name: pr_ready_for_review
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.action == 'ready_for_review'
steps:
- name: 'Move PR to "Review Required"'
uses: leonsteinhaeuser/project-beta-automations@v1.0.2
with:
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
user: leonsteinhaeuser
project_id: ${{ secrets.PROJECT_ID }}
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "Review Required"
pr_closed:
name: pr_closed
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.action == 'closed'
steps:
- name: 'Move PR to "Closed"'
uses: leonsteinhaeuser/project-beta-automations@v1.0.2
with:
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
user: leonsteinhaeuser
project_id: ${{ secrets.PROJECT_ID }}
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "Done"