gh-stack icon indicating copy to clipboard operation
gh-stack copied to clipboard

Add `--label` and `--reviewer` to `gh stack submit`

Open trgoodwin opened this issue 1 month ago • 0 comments

gh stack submit can't add labels or request reviews on the PRs it creates, so each one needs a gh pr edit afterwards. It's close to #441, but from the submit side.

I have a change ready on a fork. It adds --label/-l and --reviewer/-r with the same names and syntax as gh pr create, and they apply only to PRs that the run creates. An unknown label stops the submit before any push, with exit code 5. If a label or review request fails, submit warns and prints the gh pr edit command to retry it. Tests and docs are included.

The repo only lets collaborators open PRs, so I can't open it myself: https://github.com/github/gh-stack/compare/main...trgoodwin:gh-stack:trgoodwin/submit-labels-reviewers

Would you be open to this change? If so, could you open a PR from that branch, or point me to another way to send it?

trgoodwin avatar Oct 22 '26 16:10 trgoodwin