Skip to content

Commit

Permalink
improve claim workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pitmonticone committed Oct 10, 2024
1 parent cc82fc2 commit 6737e2c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/01-claim-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,20 @@ on:

jobs:
claim_issue:
if: github.event.issue.pull_request == null && contains(github.event.comment.body, 'claim') && !contains(github.event.comment.body, 'disclaim')
if: github.event.issue.pull_request == null
runs-on: ubuntu-latest

steps:
- name: Check if comment contains only 'claim' (ignoring white spaces)
id: check_claim
run: |
TRIMMED_COMMENT=$(echo "${{ github.event.comment.body }}" | xargs)
if [ "$TRIMMED_COMMENT" != "claim" ]; then
echo "Comment does not contain only 'claim'."
exit 0
fi
echo "Claim comment detected."
- name: Check if issue is already assigned
id: check_assignee
run: |
Expand Down

0 comments on commit 6737e2c

Please sign in to comment.