forked from patternfly/patternfly-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.78 KB
/
project.yml
File metadata and controls
51 lines (48 loc) · 1.78 KB
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
# This workflow will automatically move cards
# in the project board to reflect that status
# of an issue or PR.
name: Update cards on project board
on:
issues:
types: [labeled, unlabeled]
pull_request:
types: [labeled, unlabeled]
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
if: contains(github.event.*.state, 'open')
steps:
- name: Move to backlog
uses: takanabe/github-actions-automate-projects@v0.0.1
if: contains(github.event.*.labels.*.name, 'discovery')
env:
GITHUB_PROJECT_COLUMN_NAME: Backlog
- name: Move to hold
uses: takanabe/github-actions-automate-projects@v0.0.1
if: |
contains(github.event.*.labels.*.name, 'blocked') ||
contains(github.event.*.labels.*.name, 'on hold')
env:
GITHUB_PROJECT_COLUMN_NAME: On hold
- name: Ready for code review
uses: takanabe/github-actions-automate-projects@v0.0.1
if: |
contains(github.event.*.labels.*.name, 'needs: code review')
env:
GITHUB_PROJECT_COLUMN_NAME: Code review
- name: Move to testing
uses: takanabe/github-actions-automate-projects@v0.0.1
if: |
contains(github.event.*.labels.*.name, 'ready: browser testing') ||
contains(github.event.*.labels.*.name, 'ready: branch testing')
env:
GITHUB_PROJECT_COLUMN_NAME: Testing
- name: Ready to merge
uses: takanabe/github-actions-automate-projects@v0.0.1
if: contains(github.event.*.labels.*.name, 'ready for merge')
env:
GITHUB_PROJECT_COLUMN_NAME: Ready for merge?