Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/ready-for-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Ready for Review"

on:
pull_request_target:
types:
- opened
- converted_to_draft
- edited

jobs:
mark-ready:
name: Mark Draft as Ready for Review
runs-on: ubuntu-latest
if: github.event.pull_request.draft == true && !startsWith(github.event.pull_request.title, '[WIP]')
permissions:
pull-requests: write

steps:
- name: Mark PR as Ready for Review
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NODE_ID: ${{ github.event.pull_request.node_id }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
echo "Marking PR #${PR_NUMBER} as ready for review..."
gh api graphql -f query='
mutation($id: ID!) {
markPullRequestReadyForReview(input: {pullRequestId: $id}) {
pullRequest {
id
isDraft
}
}
}
' -f id="${PR_NODE_ID}"
Loading