Add --web flag to issue create to open in browser
did:plc:b2mcbcamkwyznc5fkplwlxbf opened this Feb 10, 2026 0 comments
did:plc:b2mcbcamkwyznc5fkplwlxbf opened Feb 10, 2026
Context
When creating an issue, it's often useful to immediately open it in the browser to verify it looks correct or to share the link. The gh CLI supports gh issue create --web for this purpose, and it's a convenient quality-of-life feature for human workflows.
Tasks
- Add
--web/-wflag totangled issue create.- After successful creation, open the issue URL in the default browser using Node's
openpackage (or a lightweight equivalent). - The flag should be a no-op (silently ignored) in non-interactive / piped environments where opening a browser makes no sense.
- After successful creation, open the issue URL in the default browser using Node's
- Add tests verifying the browser open is triggered when
--openis passed and skipped otherwise.
Notes
Should not block or change the normal stdout output — the issue URL should still be printed as usual, and the browser open should happen as a side effect.
No activity yet.