Skip to content

Commit d2ab327

Browse files
committed
wip
1 parent c82d934 commit d2ab327

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/on-pr-push.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Convert to draft on push to open pull request
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
convert-to-draft:
8+
name: Convert PR to draft
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: "Convert to Draft"
12+
uses: actions/github-script@v6
13+
script: |
14+
await github.rest.pulls.update({
15+
owner: context.repo.owner,
16+
repo: context.repo.repo,
17+
pull_number: context.issue.number,
18+
draft: true
19+
})

0 commit comments

Comments
 (0)