Skip to content

Commit 69645a1

Browse files
committed
feat: auto-convert PR to draft on changes requested
1 parent 5b6b1b2 commit 69645a1

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Draft on Changes Requested
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Record Changes Requested"]
6+
types: [completed]
7+
8+
permissions: {}
9+
10+
jobs:
11+
draft:
12+
if: github.event.workflow_run.conclusion == 'success'
13+
uses: DIRACGrid/management/.github/workflows/draft-on-changes-requested.yml@master
14+
secrets:
15+
token: ${{ secrets.DRAFT_PAT }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Record Changes Requested
2+
3+
on:
4+
pull_request_review:
5+
types: [submitted]
6+
7+
jobs:
8+
record:
9+
if: github.event.review.state == 'changes_requested'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- run: 'true'

0 commit comments

Comments
 (0)