Skip to content

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

Merged
semiherdogan merged 2 commits into
mainfrom
feature/pr-title-and-description
Apr 6, 2026
Merged

semiherdogan merged 2 commits into
mainfrom
feature/pr-title-and-description

Conversation

@dinncer

@dinncer dinncer commented Mar 25, 2026

Copy link
Copy Markdown
Member

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

@semiherdogan semiherdogan left a comment

Copy link
Copy Markdown
Member

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

dinncer commented Apr 1, 2026

Copy link
Copy Markdown
Member Author

@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.

@semiherdogan semiherdogan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Really nice work here, the additional improvements make this much stronger than just the original feedback.

@semiherdogan
semiherdogan merged commit 0cd01ec into main Apr 6, 2026
@semiherdogan
semiherdogan deleted the feature/pr-title-and-description branch April 6, 2026 11:08
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