From 9db006da534f57b2a453e1f43f8cf105b896bd3e Mon Sep 17 00:00:00 2001 From: Doug Beatty Date: Sun, 16 Jul 2023 21:06:16 -0600 Subject: [PATCH 1/2] GitHub Action to add/remove triage labels as-needed --- .github/workflows/triage-labels.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/triage-labels.yml diff --git a/.github/workflows/triage-labels.yml b/.github/workflows/triage-labels.yml new file mode 100644 index 00000000..c693eb48 --- /dev/null +++ b/.github/workflows/triage-labels.yml @@ -0,0 +1,31 @@ +# **what?** +# When the maintenance team triages, we sometimes need more information from the issue creator. In +# those cases we remove the `triage` label and add the `awaiting_response` label. Once we +# recieve a response in the form of a comment, we want the `awaiting_response` label removed +# in favor of the `triage` label so we are aware that the issue needs action. + +# **why?** +# To help with out team triage issue tracking + +# **when?** +# This will run when a comment is added to an issue and that issue has the `awaiting_response` label. + +name: Update Triage Label + +on: issue_comment + +defaults: + run: + shell: bash + +permissions: + issues: write + +jobs: + triage_label: + if: contains(github.event.issue.labels.*.name, 'awaiting_response') + uses: dbt-labs/actions/.github/workflows/swap-labels.yml@main + with: + add_label: "triage" + remove_label: "awaiting_response" + secrets: inherit From 0c66ba59b4def0569b875f4517844da5c4ab8806 Mon Sep 17 00:00:00 2001 From: Doug Beatty Date: Sun, 16 Jul 2023 21:06:16 -0600 Subject: [PATCH 2/2] Update wording and fix misspelling --- .github/workflows/triage-labels.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/triage-labels.yml b/.github/workflows/triage-labels.yml index c693eb48..0f88157b 100644 --- a/.github/workflows/triage-labels.yml +++ b/.github/workflows/triage-labels.yml @@ -1,7 +1,7 @@ # **what?** -# When the maintenance team triages, we sometimes need more information from the issue creator. In +# When we triage issues, we sometimes need more information from the issue creator. In # those cases we remove the `triage` label and add the `awaiting_response` label. Once we -# recieve a response in the form of a comment, we want the `awaiting_response` label removed +# receive a response in the form of a comment, we want the `awaiting_response` label removed # in favor of the `triage` label so we are aware that the issue needs action. # **why?**