-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1.38 KB
/
board.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
name: Project Automations
on:
issues:
types:
- opened
- reopened
- closed
pull_request:
types:
- opened
- ready_for_review
- reopened
- review_requested
- closed
- converted_to_draft
jobs:
ProjectAutomations:
runs-on: ubuntu-latest
steps:
- name: 'Move PR to "📖 To do"'
if: (github.event_name == 'pull_request' || github.event_name == 'issues') &&
(github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'ready_for_review' || github.event_name == 'pull_request' && github.event.action == 'converted_to_draft')
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: SubMob
project_id: 1
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "📖 To do"
- name: 'Move PR to "✅ Done"'
if: (github.event_name == 'pull_request' || github.event_name == 'issues') &&
github.event.action == 'closed'
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: SubMob
project_id: 1
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "✅ Done"