-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Change pending-triage label to pending-maintainer-response (#5803
) * chore: change pending-triage label to pending-maintainer-response * chore: add GitHub workflows to add / remove triaging labels when necessary
- Loading branch information
Showing
3 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Description: This workflow automatically removes triage labels from issues that have been closed | ||
# | ||
# Triggered by: closing issues | ||
|
||
name: Issue Closed | ||
|
||
on: | ||
issues: | ||
types: [closed] | ||
|
||
jobs: | ||
clean_labels: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
issues: write | ||
|
||
if: ${{ (contains(github.event.issue.labels.*.name, 'pending-community-response') || contains(github.event.issue.labels.*.name, 'pending-maintainer-response') || contains(github.event.issue.labels.*.name, 'pending-triage')) }} | ||
steps: | ||
- name: Remove unnecessary labels after closing | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
REPOSITORY_NAME: ${{ github.event.repository.full_name }} | ||
run: | | ||
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-community-response" --remove-label "pending-maintainer-response" --remove-label "pending-triage" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Description: This workflow automatically adds appropriate labels to issues that have been commented on | ||
# | ||
# Triggered by: a new comment being added to an issue | ||
|
||
name: Issue Comment | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
adjust_labels: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
issues: write | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
REPOSITORY_NAME: ${{ github.event.repository.full_name }} | ||
|
||
steps: | ||
- name: Remove pending-community-response when new community comment received | ||
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) && !github.event.issue.pull_request }} | ||
shell: bash | ||
run: | | ||
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-community-response" | ||
- name: Add pending-maintainer-response when new community comment received | ||
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }} | ||
shell: bash | ||
run: | | ||
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --add-label "pending-maintainer-response" | ||
- name: Remove pending-maintainer-response when new owner/member comment received | ||
if: ${{ contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }} | ||
shell: bash | ||
run: | | ||
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-maintainer-response" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters