feat: add PR title and description support to create command#33
feat: add PR title and description support to create command#33
Conversation
Closes #29 - Prompt user for PR title and description when creating a PR - If title is left empty, use the default 'Merge {source} into {destination}' - If description is left empty, PR is created without a description - Pass title and description through to bulkCreate and Bitbucket API
semiherdogan
left a comment
There was a problem hiding this comment.
This change modifies how we currently use this command. While prompting for user input makes sense in interactive scenarios, we also need an option to run it non-interactively. For example, in CI environments, user input is not possible.
One possible approach is to introduce a new command, such as pr create-detailed, which would explicitly handle interactive prompts like branch name, title, description, and any other required inputs.
This is just an initial idea and open for discussion.
|
Thanks for the suggestion — that makes a lot of sense, especially for CI use cases. I’ve implemented a solution that keeps the existing behavior fully non-interactive (so no breaking changes), while adding flexible ways to handle interactive input when needed:
This way we avoid introducing a separate command while still supporting both interactive and CI-friendly workflows in a consistent manner. |
Closes #29