mirror of
https://github.com/commaai/opendbc.git
synced 2026-06-08 06:04:45 +08:00
CI: convert PRs to draft after review
This commit is contained in:
15
.github/workflows/pr_draft.yaml
vendored
Normal file
15
.github/workflows/pr_draft.yaml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Re-draft on review
|
||||
on:
|
||||
pull_request_review:
|
||||
types: [submitted]
|
||||
|
||||
jobs:
|
||||
redraft:
|
||||
if: github.event.review.state == 'changes_requested'
|
||||
permissions:
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: gh pr ready --undo "${{ github.event.pull_request.number }}"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user