Merge pull request #4853 from consul/assign_project

Add kanban automation for new pull requests
This commit is contained in:
Javi Martín
2022-07-06 15:35:25 +02:00
committed by GitHub

25
.github/workflows/kanban.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Assign new pull requests
on:
pull_request_target:
types: [opened, reopened]
env:
MY_GITHUB_TOKEN: ${{ secrets.KANBAN_TOKEN }}
jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign new pull requests
steps:
- name: Assign new pull requests to the reviewing column
uses: srggrs/assign-one-project-github-action@1.3.1
if: github.event.pull_request.draft == false
with:
project: "https://github.com/orgs/consul/projects/1"
column_name: "Reviewing"
- name: Assign new draft pull requests to the doing column
uses: srggrs/assign-one-project-github-action@1.3.1
if: github.event.pull_request.draft == true
with:
project: "https://github.com/orgs/consul/projects/1"
column_name: "Doing"