-
Notifications
You must be signed in to change notification settings - Fork 23
50 lines (46 loc) · 1.57 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
name: Project automations
on:
issues:
types:
- opened
pull_request_target:
pull_request:
jobs:
debug:
name: debug
runs-on: ubuntu-latest
steps:
- name: Print event name
run: echo ${{ github.event_name }}
- name: Print event action
run: echo ${{ github.event.action }}
issue_opened:
name: issue_opened
runs-on: ubuntu-latest
if: github.event_name == 'issues' && github.event.action == 'opened'
steps:
- name: 'Move issue to Todo'
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
with:
gh_app_ID: ${{ vars.GH_APP_ID }}
gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }}
gh_app_secret_key: ${{ secrets.GH_APP_SECRET_KEY }}
project_id: ${{ vars.PROJECT_ID }}
user: leonsteinhaeuser
resource_node_id: ${{ github.event.issue.node_id }}
status_value: "Todo"
pr_opened:
name: pr_opened
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'synchronize')
steps:
- name: 'Move PR to "In Progress"'
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
with:
gh_app_ID: ${{ vars.GH_APP_ID }}
gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }}
gh_app_secret_key: ${{ secrets.GH_APP_SECRET_KEY }}
project_id: ${{ vars.PROJECT_ID }}
user: leonsteinhaeuser
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "In Progress"