mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 22:27:40 +00:00
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:
parent
6ecf0fef11
commit
34354e6e93
30
.github/workflows/main.yml
vendored
Normal file
30
.github/workflows/main.yml
vendored
Normal 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'
|
Loading…
x
Reference in New Issue
Block a user