Add project automation for bugs

This commit is contained in:
Milan Kolar 2020-05-28 00:22:37 +02:00
parent b42d7ac379
commit 4143eafae5

19
.github/workflows/automate-projects.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: Automate Projects
on:
issues:
types: [opened, labeled]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign to One Project
steps:
- name: Assign NEW bugs to triage
uses: srggrs/assign-one-project-github-action@1.2.0
if: contains(github.event.issue.labels.*.name, 'bug')
with:
project: 'https://github.com/pypeclub/pype/projects/2'
column_name: 'Needs triage'