Skip to content

feat: add PR title and description support to create command#33

Open
dinncer wants to merge 2 commits intomainfrom
feature/pr-title-and-description
Open

feat: add PR title and description support to create command#33
dinncer wants to merge 2 commits intomainfrom
feature/pr-title-and-description

Conversation

@dinncer
Copy link
Copy Markdown
Member

@dinncer dinncer commented Mar 25, 2026

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

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
@dinncer dinncer requested a review from semiherdogan March 25, 2026 11:54
Copy link
Copy Markdown
Member

@semiherdogan semiherdogan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@dinncer
Copy link
Copy Markdown
Member Author

dinncer commented Apr 1, 2026

@semiherdogan

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:

bb pr create develop
Keeps the current behavior (fully non-interactive, CI-safe)

bb pr create develop -i
Prompts for title and description interactively

bb pr create develop --title "Fix" --description "Details"
Fully non-interactive via flags

bb pr create develop -i --title "Fix"
Uses the provided title, and only prompts for the missing description

This way we avoid introducing a separate command while still supporting both interactive and CI-friendly workflows in a consistent manner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: PR description & title

2 participants