Add workflow to auto-add any GitHub Issue labeled 'bug' to an internal project board (#8510)

* Add workflow to auto-add any GitHub Issue labeled 'bug' to an internal project board

* update how the env var is used

* update version of dependency
This commit is contained in:
Clint 2020-03-09 11:41:02 -05:00 committed by GitHub
parent cf16f3e1a8
commit 530f296522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

23
.github/workflows/sustain-bugs.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: sustain
on:
issues:
types: [labeled]
jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_COLUMN_ID: ${{secrets.PROJECT_COLUMN_ID}}
steps:
- name: Maybe move an issue to the project board
uses: actions/github-script@0.8.0
if: github.event.label.name == 'bug'
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.projects.createCard({
column_id: process.env.PROJECT_COLUMN_ID,
content_id: context.payload.issue.id,
content_type: "Issue"
})