Skip to content

Commit

Permalink
create generic issue-bot workflow, add triaging job
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed May 8, 2024
1 parent 8446b97 commit c40fa14
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 31 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/issue-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# **what?**
# - respond to user comments by updating issues from `awaiting_response` to `triage`
#
# **why?**
# - automate issue triage
#
# **when?**
# - users comment on issues
name: Issue bot

on:
issue_comment:

permissions:
issues: write

jobs:
triage:
name: Update triage label
if: >-
contains(github.event.issue.labels.*.name, 'awaiting_response') &&
github.event == 'issue_comment'
uses: dbt-labs/actions/.github/workflows/swap-labels.yml@main
with:
add_label: triage
remove_label: awaiting_response
secrets: inherit
31 changes: 0 additions & 31 deletions .github/workflows/triage-labels.yml

This file was deleted.

0 comments on commit c40fa14

Please sign in to comment.