Skip to content

draft: Spark33rebase #2948

draft: Spark33rebase

draft: Spark33rebase #2948

name: Reopen closed issue on comment
on:
issue_comment:
types:
- created
jobs:
reopen_issue:
runs-on: ubuntu-latest
permissions:
issues: write
statuses: write
steps:
- name: Print context
run: |
echo "$GITHUB_CONTEXT"
- name: Reopen Issue
run: |
curl \
-X PATCH \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }} \
-d '{"state":"open"}' \
--fail
env:
GITHUB_CONTEXT: ${{ toJson(github) }}