Skip to content

Commit

Permalink
Add needs contributor workflow to Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Jun 15, 2024
1 parent 986c865 commit 7cffdcb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/needs_contributor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Add a message when needs contributor tag is used
on:
issues:
types:
- labeled
jobs:
add-comment:
if: github.event.label.name == 'needs contributor'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add comment
run: gh issue comment "$NUMBER" --body "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
BODY: >
This issue is available for anyone to work on.
**Make sure to reference this issue in your pull request.**
:sparkles: Thank you for your contribution ! :sparkles:

0 comments on commit 7cffdcb

Please sign in to comment.