From 5f4fa6b17acc3005629fc0592f3f8e4a00d46b4e Mon Sep 17 00:00:00 2001 From: Ekaterina Gerasimova Date: Thu, 19 Aug 2021 08:46:18 +0100 Subject: [PATCH] Issue triage: update automation for design team 1/ O-Frequent/P-High: All issues 2/ O-Intermediate/P-Medium issues which match S-Critical, S-Major or S-Minor --- .github/workflows/issues_to_projects.yaml | 27 +++++++++-------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/issues_to_projects.yaml b/.github/workflows/issues_to_projects.yaml index f17e32c7b2..8cebc59870 100644 --- a/.github/workflows/issues_to_projects.yaml +++ b/.github/workflows/issues_to_projects.yaml @@ -2,9 +2,18 @@ on: issues: types: [labeled] jobs: - move_all_issues: - name: Move all X-Needs-Design issues to Design project board + move_priority_design_issues: + name: Move 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, 'P-High') || + contains(github.event.issue.labels.*.name, 'O-Frequent')) || + (contains(github.event.issue.labels.*.name, 'P-Medium') || + contains(github.event.issue.labels.*.name, 'O-Intermediate')) && + (contains(github.event.issue.labels.*.name, 'S-Critical') || + contains(github.event.issue.labels.*.name, 'S-Major') || + contains(github.event.issue.labels.*.name, 'S-Minor') steps: - uses: konradpabjan/move-labeled-or-milestoned-issue@v2.0 with: @@ -12,17 +21,3 @@ 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"