pr

package
v1.135.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdPR

func NewCmdPR(f *factory.Factory) *cobra.Command

func NewCmdPRActivity added in v1.26.0

func NewCmdPRActivity(f *factory.Factory) *cobra.Command

func NewCmdPRCheckout

func NewCmdPRCheckout(f *factory.Factory) *cobra.Command

func NewCmdPRChecks added in v1.28.0

func NewCmdPRChecks(f *factory.Factory) *cobra.Command

NewCmdPRChecks returns the `bb pr checks PR_ID` command. It lists CI/build statuses attached to the PR's head commit.

func NewCmdPRComment added in v1.6.0

func NewCmdPRComment(f *factory.Factory) *cobra.Command

func NewCmdPRCommentAdd added in v1.6.0

func NewCmdPRCommentAdd(f *factory.Factory) *cobra.Command

func NewCmdPRCommentDelete added in v1.24.0

func NewCmdPRCommentDelete(f *factory.Factory) *cobra.Command

NewCmdPRCommentDelete removes an existing comment.

func NewCmdPRCommentEdit added in v1.24.0

func NewCmdPRCommentEdit(f *factory.Factory) *cobra.Command

NewCmdPRCommentEdit updates the body of an existing comment.

func NewCmdPRCommentList added in v1.6.0

func NewCmdPRCommentList(f *factory.Factory) *cobra.Command

func NewCmdPRCommentReact added in v1.40.0

func NewCmdPRCommentReact(f *factory.Factory) *cobra.Command

NewCmdPRCommentReact adds an emoji reaction to a PR comment.

func NewCmdPRCommentResolve added in v1.24.0

func NewCmdPRCommentResolve(f *factory.Factory) *cobra.Command

NewCmdPRCommentResolve marks a comment as resolved (Cloud only — Server surfaces a typed host.unsupported via AsPRCommentResolver).

func NewCmdPRCommentUnreact added in v1.40.0

func NewCmdPRCommentUnreact(f *factory.Factory) *cobra.Command

NewCmdPRCommentUnreact removes an emoji reaction from a PR comment.

func NewCmdPRCommits added in v1.56.0

func NewCmdPRCommits(f *factory.Factory) *cobra.Command

NewCmdPRCommits returns the "pr commits" sub-command.

func NewCmdPRCreate

func NewCmdPRCreate(f *factory.Factory) *cobra.Command

func NewCmdPRDefaultReviewer added in v1.50.0

func NewCmdPRDefaultReviewer(f *factory.Factory) *cobra.Command

NewCmdPRDefaultReviewer builds the `pr default-reviewer` subcommand group.

func NewCmdPRDefaultReviewerAdd added in v1.50.0

func NewCmdPRDefaultReviewerAdd(f *factory.Factory) *cobra.Command

NewCmdPRDefaultReviewerAdd builds the `pr default-reviewer add` cobra command.

func NewCmdPRDefaultReviewerList added in v1.50.0

func NewCmdPRDefaultReviewerList(f *factory.Factory) *cobra.Command

NewCmdPRDefaultReviewerList builds the `pr default-reviewer list` cobra command.

func NewCmdPRDefaultReviewerRemove added in v1.50.0

func NewCmdPRDefaultReviewerRemove(f *factory.Factory) *cobra.Command

NewCmdPRDefaultReviewerRemove builds the `pr default-reviewer remove` cobra command.

func NewCmdPRDiff

func NewCmdPRDiff(f *factory.Factory) *cobra.Command

func NewCmdPREdit

func NewCmdPREdit(f *factory.Factory) *cobra.Command

func NewCmdPRFiles added in v1.57.0

func NewCmdPRFiles(f *factory.Factory) *cobra.Command

NewCmdPRFiles returns the "pr files" sub-command.

func NewCmdPRList

func NewCmdPRList(f *factory.Factory) *cobra.Command

func NewCmdPRMerge

func NewCmdPRMerge(f *factory.Factory) *cobra.Command

func NewCmdPRParticipants added in v1.60.0

func NewCmdPRParticipants(f *factory.Factory) *cobra.Command

NewCmdPRParticipants returns the "pr participants" sub-command.

func NewCmdPRRequestChanges

func NewCmdPRRequestChanges(f *factory.Factory) *cobra.Command

func NewCmdPRRequestReview

func NewCmdPRRequestReview(f *factory.Factory) *cobra.Command

func NewCmdPRReview added in v1.25.0

func NewCmdPRReview(f *factory.Factory) *cobra.Command

NewCmdPRReview returns the `pr review` command — the gh-parity compound review verb that bundles a top-level body, zero or more inline comments, and a review action (approve / request_changes / comment) into one call.

Validation rules mirror gh:

  • At most one of --approve/--request-changes/--comment may be set.
  • If none is set but --body or --inline is, the action defaults to "comment". If none of any of these is set, the command errors.

On Bitbucket Server / DC, --request-changes surfaces a typed host.unsupported error from the adapter rather than a 405 response.

func NewCmdPRStatus added in v1.28.0

func NewCmdPRStatus(f *factory.Factory) *cobra.Command

NewCmdPRStatus returns the `bb pr status` command. It shows open PRs authored by and assigned to the current user.

func NewCmdPRUpdateBranch added in v1.28.0

func NewCmdPRUpdateBranch(f *factory.Factory) *cobra.Command

NewCmdPRUpdateBranch returns the `bb pr update-branch PR_ID` command. It syncs the PR's source branch with its base branch.

func NewCmdPRView

func NewCmdPRView(f *factory.Factory) *cobra.Command

func NewCmdReviewerGroup added in v1.69.0

func NewCmdReviewerGroup(f *factory.Factory) *cobra.Command

NewCmdReviewerGroup builds the `pr reviewer-group` parent command.

func NewCmdReviewerGroupAdd added in v1.69.0

func NewCmdReviewerGroupAdd(f *factory.Factory) *cobra.Command

NewCmdReviewerGroupAdd builds the `pr reviewer-group add` command.

func NewCmdReviewerGroupList added in v1.69.0

func NewCmdReviewerGroupList(f *factory.Factory) *cobra.Command

NewCmdReviewerGroupList builds the `pr reviewer-group list` command.

func NewCmdReviewerGroupRemove added in v1.69.0

func NewCmdReviewerGroupRemove(f *factory.Factory) *cobra.Command

NewCmdReviewerGroupRemove builds the `pr reviewer-group remove` command.

func NewCmdSuggestion added in v1.68.0

func NewCmdSuggestion(f *factory.Factory) *cobra.Command

NewCmdSuggestion returns the `pr suggestion` parent command.

func NewCmdSuggestionApply added in v1.68.0

func NewCmdSuggestionApply(f *factory.Factory) *cobra.Command

NewCmdSuggestionApply implements `pr suggestion apply PR_ID COMMENT_ID SUGGESTION_ID [--preview]`.

func PRStateColor added in v1.17.0

func PRStateColor(ios *iostreams.IOStreams) func(string) string

PRStateColor maps Bitbucket PR state strings to colors. OPEN renders green (active), MERGED magenta (terminal success), and DECLINED / SUPERSEDED red (terminal failure-ish). Unknown states pass through uncolored — better than a misleading green/red on something we don't recognise.

Exported so other pr subcommands (view, edit) can apply the same coloring when they grow their own formatters in the future.

Types

This section is empty.

Directories

Path Synopsis
Package mergepreview implements the `pr merge-preview` command, which performs a dry-run merge check and reports conflicts without merging.
Package mergepreview implements the `pr merge-preview` command, which performs a dry-run merge check and reports conflicts without merging.
participant
Package reopen implements the `pr reopen` command.
Package reopen implements the `pr reopen` command.
Package shared holds helpers shared by pr sub-command subpackages.
Package shared holds helpers shared by pr sub-command subpackages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL