mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-03 10:21:33 +01:00
29 lines
1.0 KiB
YAML
29 lines
1.0 KiB
YAML
name: 'PR Wiki Label'
|
|
on:
|
|
issue_comment:
|
|
types: [created]
|
|
|
|
jobs:
|
|
wiki-label:
|
|
runs-on: ubuntu-latest
|
|
if: github.event.issue.pull_request && github.event.comment.body == '!wiki_label'
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
steps:
|
|
- name: Add thumbs up reaction and Wiki label
|
|
run: |
|
|
# Add thumbs up reaction
|
|
curl -X POST \
|
|
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
|
-H "Accept: application/vnd.github.v3+json" \
|
|
"https://api.github.com/repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions" \
|
|
-d '{"content":"+1"}'
|
|
|
|
# Add label to PR
|
|
curl -X POST \
|
|
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
|
-H "Accept: application/vnd.github.v3+json" \
|
|
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels" \
|
|
-d '["Requires Wiki Update"]'
|