|
| 1 | +name: Move card in project view when label updated |
| 2 | +on: [issues, pull_request] |
| 3 | +jobs: |
| 4 | + Move_Labeled_Card_On_Project_Board: |
| 5 | + runs-on: ubuntu-latest |
| 6 | + steps: |
| 7 | + - uses: takanabe/[email protected] |
| 8 | + if: github.event.action == 'labeled' && (github.event_name == 'issues' && github.event.issue.state == 'open' && contains(github.event.issue.labels.*.name, 'discovery')) || (github.event_name == 'pull_request' && github.event.pull_request.state == 'open' && contains(github.event.pull_request.labels.*.name, 'discovery')) |
| 9 | + env: |
| 10 | + GITHUB_TOKEN: ${{ secrets.ACTIONS }} |
| 11 | + GITHUB_PROJECT_URL: https://github.com/orgs/github/projects/2 |
| 12 | + GITHUB_PROJECT_COLUMN_NAME: Needs discovery |
| 13 | + - uses: takanabe/[email protected] |
| 14 | + if: github.event.action == 'labeled' && (github.event_name == 'issues' && github.event.issue.state == 'open' && contains(github.event.issue.labels.*.name, 'blocked')) || (github.event_name == 'pull_request' && github.event.pull_request.state == 'open' && contains(github.event.pull_request.labels.*.name, 'blocked')) |
| 15 | + env: |
| 16 | + GITHUB_TOKEN: ${{ secrets.ACTIONS }} |
| 17 | + GITHUB_PROJECT_URL: https://github.com/orgs/github/projects/2 |
| 18 | + GITHUB_PROJECT_COLUMN_NAME: On hold |
| 19 | + - uses: takanabe/[email protected] |
| 20 | + if: github.event.action == 'labeled' && (github.event_name == 'issues' && github.event.issue.state == 'open' && contains(github.event.issue.labels.*.name, 'code review')) || (github.event_name == 'pull_request' && github.event.pull_request.state == 'open' && contains(github.event.pull_request.labels.*.name, 'code review')) |
| 21 | + env: |
| 22 | + GITHUB_TOKEN: ${{ secrets.ACTIONS }} |
| 23 | + GITHUB_PROJECT_URL: https://github.com/orgs/github/projects/2 |
| 24 | + GITHUB_PROJECT_COLUMN_NAME: Code review |
| 25 | + - uses: takanabe/[email protected] |
| 26 | + if: github.event.action == 'labeled' && (github.event_name == 'issues' && github.event.issue.state == 'open' && contains(github.event.issue.labels.*.name, 'testing')) || (github.event_name == 'pull_request' && github.event.pull_request.state == 'open' && contains(github.event.pull_request.labels.*.name, 'testing')) |
| 27 | + env: |
| 28 | + GITHUB_TOKEN: ${{ secrets.ACTIONS }} |
| 29 | + GITHUB_PROJECT_URL: https://github.com/orgs/github/projects/2 |
| 30 | + GITHUB_PROJECT_COLUMN_NAME: Testing |
| 31 | + - uses: takanabe/[email protected] |
| 32 | + if: github.event.action == 'labeled' && (github.event_name == 'issues' && github.event.issue.state == 'open' && contains(github.event.issue.labels.*.name, 'Ready for merge')) || (github.event_name == 'pull_request' && github.event.pull_request.state == 'open' && contains(github.event.pull_request.labels.*.name, 'Ready for merge')) |
| 33 | + env: |
| 34 | + GITHUB_TOKEN: ${{ secrets.ACTIONS }} |
| 35 | + GITHUB_PROJECT_URL: https://github.com/orgs/github/projects/2 |
| 36 | + GITHUB_PROJECT_COLUMN_NAME: Ready for merge? |
0 commit comments