From 6c391270180a4a481db48e9e0feb2607196bb932 Mon Sep 17 00:00:00 2001 From: Kat Gerasimova Date: Wed, 18 Aug 2021 09:10:48 +0100 Subject: [PATCH] Issue triage: move priority issues to design board Move X-Needs-Design which are critical or major and high prevalence to the design board Signed-off-by: Ekaterina Gerasimova --- .github/workflows/issues_to_projects.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issues_to_projects.yaml b/.github/workflows/issues_to_projects.yaml index 3b58e1b58f..6d0b8add41 100644 --- a/.github/workflows/issues_to_projects.yaml +++ b/.github/workflows/issues_to_projects.yaml @@ -2,8 +2,8 @@ on: issues: types: [labeled] jobs: - move_issues: - name: Move issues to project board + move_all_issues: + name: Move all X-Needs-Design issues to Design project board runs-on: ubuntu-latest steps: - uses: konradpabjan/move-labeled-or-milestoned-issue@v2.0 @@ -12,3 +12,17 @@ jobs: project-url: "https://github.com/orgs/vector-im/projects/14" column-name: "📥 Inbox" label-name: "X-Needs-Design" + move_priority_issues: + name: Move all priority X-Needs-Design issues to Design project board + runs-on: ubuntu-latest + if: > + contains(github.event.issue.labels.*.name, 'X-Needs-Design') && + (contains(github.event.issue.labels.*.name, 'S-Critical') || contains(github.event.issue.labels.*.name, 'S-Major')) && + contains(github.event.issue.labels.*.name, 'P-High') + steps: + - uses: konradpabjan/move-labeled-or-milestoned-issue@v2.0 + with: + action-token: "${{ secrets.ELEMENT_BOT_TOKEN }}" + project-url: "https://github.com/orgs/vector-im/projects/14" + column-name: "Most Urgent" + label-name: "X-Needs-Design"