Update report.yml (#2704)

This commit is contained in:
efb4f5ff-1298-471a-8973-3d47447115dc 2022-10-10 14:00:42 +00:00 committed by GitHub
parent ce24739a48
commit 510686812d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 8 deletions

View File

@ -4,7 +4,7 @@ name: Project Board Automation
on:
issues:
types: [labeled, unlabeled, closed, deleted]
types: [closed, deleted, reopened, opened]
jobs:
assign-issues-to-projects:
@ -14,37 +14,57 @@ jobs:
# For bug reports
- name: New bug issue
uses: alex-page/github-project-automation-plus@v0.8.1
if: github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'bug')
if: contains(github.event.issue.labels.*.name, 'bug') && github.event.action == 'opened'
with:
project: Bug Reports
column: To assign
repo-token: ${{ secrets.PUSH_TOKEN }}
action: update
- name: Bug label removed
- name: Bug issue closed
uses: alex-page/github-project-automation-plus@v0.8.1
if: github.event.action == 'unlabeled' || github.event.action == 'closed' || github.event.action == 'deleted'
if: github.event.action == 'closed' || github.event.action == 'deleted'
with:
action: delete
project: Bug Reports
column: To assign
repo-token: ${{ secrets.PUSH_TOKEN }}
- name: Bug issue reopened
uses: alex-page/github-project-automation-plus@v0.8.1
if: contains(github.event.issue.labels.*.name, 'bug') && github.event.action == 'reopened'
with:
project: Bug Reports
column: To assign
repo-token: ${{ secrets.PUSH_TOKEN }}
action: update
# For feature requests
- name: New feature issue
uses: alex-page/github-project-automation-plus@v0.8.1
if: github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'enhancement')
if: contains(github.event.issue.labels.*.name, 'enhancement') && github.event.action == 'opened'
with:
project: Feature Requests
column: To assign
repo-token: ${{ secrets.PUSH_TOKEN }}
action: update
- name: Feature request label removed
- name: Feature request issue closed
uses: alex-page/github-project-automation-plus@v0.8.1
if: github.event.action == 'unlabeled' || github.event.action == 'closed' || github.event.action == 'deleted'
if: github.event.action == 'closed' || github.event.action == 'deleted'
with:
action: delete
project: Feature Requests
column: To assign
repo-token: ${{ secrets.PUSH_TOKEN }}
- name: Feature request issue reopened
uses: alex-page/github-project-automation-plus@v0.8.1
if: contains(github.event.issue.labels.*.name, 'enhancement') && github.event.action == 'reopened'
with:
project: Feature Requests
column: To assign
repo-token: ${{ secrets.PUSH_TOKEN }}
action: update