Skip to content

Commit 04a745f

Browse files
authored
Merge pull request #133 from github-community-projects/add-mark-ready-when-ready
ci: add mark-ready-when-ready workflow
2 parents a28dbd7 + 86b87ef commit 04a745f

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)