Skip to content

Commit

Permalink
Update issue-triage.yml (#214)
Browse files Browse the repository at this point in the history
Following usnistgov/OSCAL#1936, add workflow to add new issues to the board automatically.
  • Loading branch information
nikitawootten-nist authored Sep 28, 2023
1 parent b940aec commit a53f261
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,15 @@ on:
issues:
types:
- opened
- closed
- reopened
- transferred

jobs:
createCard:
runs-on: ubuntu-latest
if: github.event.action == 'opened'
steps:
- name: Add New Issues to Issue Triage Board
uses: peter-evans/create-or-update-project-card@5eacbbd224b7814354861b555cc18a8359e2cebe
with:
project-name: Issue Triage
column-name: Needs Triage
removeCard:
runs-on: ubuntu-latest
if: github.event.action == 'closed'
add-to-project:
name: Add issue to project
runs-on: ubuntu-20.04
steps:
- uses: alex-page/github-project-automation-plus@1f8873e97e3c8f58161a323b7c568c1f623a1c4d
- uses: actions/add-to-project@31b3f3ccdc584546fc445612dec3f38ff5edb41c
with:
project: Issue Triage
column: Done
action: delete
repo-token: ${{ secrets.COMMIT_TOKEN }}
project-url: https://github.com/orgs/usnistgov/projects/25
github-token: ${{ secrets.COMMIT_TOKEN }}

0 comments on commit a53f261

Please sign in to comment.