Skip to content

Commit 10422a8

Browse files
zkoppertCopilot
andauthored
ci: add mark-ready-when-ready workflow (#503)
Automatically marks draft PRs as ready for review once all required checks pass when the 'Mark Ready When Ready' label is applied. Uses kenyonj/mark-ready-when-ready action with the contents:write permission fix. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d85346e commit 10422a8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Mark PR Ready When Ready
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, labeled, unlabeled, synchronize]
6+
7+
permissions:
8+
checks: read
9+
contents: write
10+
pull-requests: write
11+
statuses: read
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
mark-ready:
19+
name: Mark as ready after successful checks
20+
runs-on: ubuntu-latest
21+
if: |
22+
contains(github.event.pull_request.labels.*.name, 'Mark Ready When Ready') &&
23+
github.event.pull_request.draft == true
24+
steps:
25+
- name: Mark ready when ready
26+
uses: kenyonj/mark-ready-when-ready@33b13c51ba23786efb933701ef253352baf05bdd # main (contents:write fix)
27+
with:
28+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)