Skip to content

Commit

Permalink
Try triage workflow helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Dec 13, 2024
1 parent 02d85ff commit b7c3ea7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/triage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# SPDX-FileCopyrightText: 2024 James R. Barlow
# SPDX-License-Identifier: MPL-2.0

name: Remove Triage Label on Reply

on:
issue_comment:
types:
- created

jobs:
remove-triage-label:
runs-on: ubuntu-latest

steps:
- name: Check if comment is by the repository owner
id: check_comment
run: |
echo "::set-output name=is_owner::$(
if [[ '${{ github.event.comment.user.login }}' == 'jbarlow83' ]]; then
echo 'true';
else
echo 'false';
fi
)"
- name: Remove 'triage' label
if: ${{ steps.check_comment.outputs.is_owner == 'true' }}
uses: actions-ecosystem/action-remove-labels@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: triage

0 comments on commit b7c3ea7

Please sign in to comment.