Skip to content

Commit

Permalink
GitHub Action to add/remove triage labels as-needed (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Alfare <13974384+mikealfare@users.noreply.github.com>
  • Loading branch information
dbeatty10 and mikealfare committed Feb 12, 2024
1 parent 3b8647c commit cb1bdd5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/triage-labels.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cb1bdd5

Please sign in to comment.