| name | init-pr |
| description | Create a placeholder PR from the current branch to warm CI caches. |
| disable-model-invocation | true |
| user-invocable | true |
init-pr
Create a placeholder PR on the current branch so CI
caches start warming while work continues.
Steps
-
Get the current branch name:
git branch --show-current
-
Extract the ticket ID from the branch name.
The branch name follows the pattern ENG-###
(possibly with a suffix). Use the ENG-###
portion as the placeholder title.
-
Confirm there is no existing PR for this branch:
gh pr list --head <branch> --json number
If a PR already exists, print its URL and stop.
-
Push the branch if it has not been pushed yet:
git push -u origin <branch>
-
Create a draft PR with the placeholder title
and an empty body:
gh pr create --draft \
--title "<ENG-###>" \
--body ""
-
Print the new PR URL.