riceathon/.github/workflows/form.yml
End 1f8e5656f5
Modify PR comment message for prize notification
Updated the comment body for PRs to include prize email information.
2025-12-30 20:13:36 -07:00

23 lines
665 B
YAML

name: Form
on:
pull_request_target:
types: [closed]
permissions:
pull-requests: write # To leave comments on PRs
jobs:
send-message:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'rice-setup')
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: "hackclub",
repo: "riceathon",
body: '👋 Thanks for your PR!\nTo get your prize, you will get an email!)'
})