mirror of
https://github.com/zitadel/zitadel.git
synced 2025-02-25 18:55:27 -06:00
31 lines
930 B
YAML
31 lines
930 B
YAML
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'
|