Skip to content

Commit

Permalink
fix: Attempt to fix recreation comment (#63)
Browse files Browse the repository at this point in the history
Attempt to fix comment logic
  • Loading branch information
lucaspopp-wbd authored Jun 11, 2024
1 parent b293689 commit 6d18d31
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/pr-comment-handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@ jobs:

- uses: actions/checkout@v4

- name: Comment on old PR
uses: marocchino/sticky-pull-request-comment@v2
with:
number: ${{ github.event.issue.number }}
recreate: true
header: recreation
message: |
Re-created as #${{ needs.create-new.outputs.pr-number }}
- name: Close old PR
run: |
gh pr close ${{ github.event.issue.number }} \
-c "Re-created as #${{ needs.create-new.outputs.pr-number }}"
gh pr close ${{ github.event.issue.number }} -d

0 comments on commit 6d18d31

Please sign in to comment.