pf-clipboard-copy #4388
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/github-actions-automate-projects@v0.0.1 | |
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/github-actions-automate-projects@v0.0.1 | |
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/github-actions-automate-projects@v0.0.1 | |
if: github.event.action == 'connected' | |
env: | |
GITHUB_PROJECT_COLUMN_NAME: In development | |
- name: Archive issues | |
uses: alex-page/github-project-automation-plus@v0.8.1 | |
if: github.event.action == 'closed' | |
env: | |
types: closed | |
project: Planning | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
action: archive |