forked from xivapi/nodestone
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.55 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
name: Project automations
on:
issues:
types:
- opened
- reopened
- closed
env:
todo: Todo ✏️
in_progress: In Progress 🚧
done: Done ✅
jobs:
issue_opened:
name: issue_opened_or_reopened
runs-on: ubuntu-latest
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened')
steps:
- name: Move issue to ${{ env.todo }}
uses: leonsteinhaeuser/[email protected]
with:
organization: the-convocation
project_id: 1
status_value: ${{ env.todo }}
gh_app_secret_key: ${{ secrets.PROJECT_AUTOMATIONS_GH_APP_SECRET_KEY }}
gh_app_ID: ${{ secrets.PROJECT_AUTOMATIONS_GH_APP_ID }}
gh_app_installation_ID: ${{ secrets.PROJECT_AUTOMATIONS_GH_APP_INSTALLATION_ID }}
resource_node_id: ${{ github.event.issue.node_id }}
issue_closed:
name: issue_closed
runs-on: ubuntu-latest
if: github.event_name == 'issues' && github.event.action == 'closed'
steps:
- name: Move issue to ${{ env.done }}
uses: leonsteinhaeuser/[email protected]
with:
organization: the-convocation
project_id: 1
status_value: ${{ env.done }}
gh_app_secret_key: ${{ secrets.PROJECT_AUTOMATIONS_GH_APP_SECRET_KEY }}
gh_app_ID: ${{ secrets.PROJECT_AUTOMATIONS_GH_APP_ID }}
gh_app_installation_ID: ${{ secrets.PROJECT_AUTOMATIONS_GH_APP_INSTALLATION_ID }}
resource_node_id: ${{ github.event.issue.node_id }}