chore: auto assign issues and PR to ZTIADEL project board (#643)

* Create main.yml

* Update main.yml

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
Fabi 2020-08-27 12:59:32 +02:00 committed by GitHub
parent 6ecf0fef11
commit 34354e6e93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

30
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Auto Assign to Project(s)
on:
issues:
types: [opened, labeled]
pull_request:
types: [opened, labeled]
env:
MY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign to One Project
steps:
- name: Assign NEW issues and NEW pull requests to project 9 (ZITADEL)
uses: srggrs/assign-one-project-github-action@1.2.0
if: github.event.action == 'opened'
with:
project: 'https://github.com/orgs/caos/projects/9'
column_name: 'backlog'
- name: Assign issues and pull requests with `bug` label to project 9 (ZITADEL)
uses: srggrs/assign-one-project-github-action@1.2.0
if: |
contains(github.event.issue.labels.*.name, 'bug') ||
contains(github.event.pull_request.labels.*.name, 'bug')
with:
project: 'https://github.com/orgs/caos/projects/9'
column_name: 'to do'