-
Notifications
You must be signed in to change notification settings - Fork 97
55 lines (52 loc) · 1.76 KB
/
project.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
# This workflow will automatically move cards in the project
# board to reflect that status of an issue.
name: Move issue cards on project board
on:
issues:
types:
- opened
- labeled
- closed
- assigned
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PROJECT_URL: https://github.com/orgs/github/projects/2
jobs:
project_board:
name: Move cards in the project board according to label
runs-on: ubuntu-latest
steps:
- name: Move to prioritization queue
uses: takanabe/[email protected]
if: |
contains(github.event.*.state, 'open') &&
(
github.event.action == 'opened' ||
contains(github.event.*.labels.*.name, 'needs: prioritization')
)
env:
GITHUB_PROJECT_COLUMN_NAME: Needs prioritization
- name: Move to hold
uses: takanabe/[email protected]
if: |
contains(github.event.*.state, 'open') &&
!contains(github.event.*.labels.*.name, 'needs: prioritization') &&
(
contains(github.event.*.labels.*.name, 'blocked') ||
contains(github.event.*.labels.*.name, 'on hold')
)
env:
GITHUB_PROJECT_COLUMN_NAME: On hold
- name: Move to in development queue
uses: takanabe/[email protected]
if: github.event.action == 'connected'
env:
GITHUB_PROJECT_COLUMN_NAME: In development
- name: Archive issues
uses: alex-page/[email protected]
if: github.event.action == 'closed'
env:
types: closed
project: Planning
repo-token: ${{ secrets.GITHUB_TOKEN }}
action: archive