From 59a3b84c1d146427eaba42bfd1830f1d8c78db82 Mon Sep 17 00:00:00 2001 From: Ekaterina Gerasimova Date: Thu, 14 Oct 2021 13:44:19 +0100 Subject: [PATCH] Add issue triage automation Fixes #4250 Move new issues into incoming column and move X-Needs-Info into Need info column on the vector-im/element-android/projects/4 board Signed-off-by: Ekaterina Gerasimova --- .github/workflows/triage-incoming.yml | 15 +++++++++++++++ .github/workflows/triage-needs-info.yml | 16 ++++++++++++++++ changelog.d/4250.misc | 1 + 3 files changed, 32 insertions(+) create mode 100644 .github/workflows/triage-incoming.yml create mode 100644 .github/workflows/triage-needs-info.yml create mode 100644 changelog.d/4250.misc diff --git a/.github/workflows/triage-incoming.yml b/.github/workflows/triage-incoming.yml new file mode 100644 index 0000000000..40d5507415 --- /dev/null +++ b/.github/workflows/triage-incoming.yml @@ -0,0 +1,15 @@ +name: Move new issues onto Issue triage board + +on: + issues: + types: [opened] + +jobs: + automate-project-columns: + runs-on: ubuntu-latest + steps: + - uses: alex-page/github-project-automation-plus@v0.8.1 + with: + project: Issue triage + column: Incoming + repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }} diff --git a/.github/workflows/triage-needs-info.yml b/.github/workflows/triage-needs-info.yml new file mode 100644 index 0000000000..64de7951c6 --- /dev/null +++ b/.github/workflows/triage-needs-info.yml @@ -0,0 +1,16 @@ +name: Move X-Needs-Info into Need info column in the Issue triage board + +on: + issues: + types: [labeled] + +jobs: + Move_Labeled_Issue_On_Project_Board: + runs-on: ubuntu-latest + steps: + - uses: konradpabjan/move-labeled-or-milestoned-issue@v2.0 + with: + action-token: ${{ secrets.GITHUB_TOKEN }} + project-url: "https://github.com/vector-im/element-android/projects/4" + column-name: "Need info" + label-name: "X-Needs-Info" diff --git a/changelog.d/4250.misc b/changelog.d/4250.misc new file mode 100644 index 0000000000..c4d2fcbd6d --- /dev/null +++ b/changelog.d/4250.misc @@ -0,0 +1 @@ +Add automation to move incoming issues and X-Needs-Info into the right places on the issue triage board.