Skip to content

Commit fc92245

Browse files
committed
Lock PR's on cleanup
1 parent e3c916b commit fc92245

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/Cleanup.RedistBranch.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ jobs:
1515
permissions:
1616
contents: write
1717
steps:
18+
- name: Lock PR conversation
19+
run: |
20+
PR_NUMBER="${{ github.event.pull_request.number }}"
21+
echo "Locking PR #$PR_NUMBER to prevent further comments"
22+
gh pr lock "$PR_NUMBER" --repo "${{ github.repository }}" --reason resolved
23+
env:
24+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
1826
- name: Delete PR branch
1927
run: |
2028
BRANCH_NAME="${{ github.event.pull_request.head.ref }}"

0 commit comments

Comments
 (0)