Documentation
¶
Index ¶
- func NewCmdPR(f *factory.Factory) *cobra.Command
- func NewCmdPRActivity(f *factory.Factory) *cobra.Command
- func NewCmdPRCheckout(f *factory.Factory) *cobra.Command
- func NewCmdPRChecks(f *factory.Factory) *cobra.Command
- func NewCmdPRComment(f *factory.Factory) *cobra.Command
- func NewCmdPRCommentAdd(f *factory.Factory) *cobra.Command
- func NewCmdPRCommentDelete(f *factory.Factory) *cobra.Command
- func NewCmdPRCommentEdit(f *factory.Factory) *cobra.Command
- func NewCmdPRCommentList(f *factory.Factory) *cobra.Command
- func NewCmdPRCommentReact(f *factory.Factory) *cobra.Command
- func NewCmdPRCommentResolve(f *factory.Factory) *cobra.Command
- func NewCmdPRCommentUnreact(f *factory.Factory) *cobra.Command
- func NewCmdPRCommits(f *factory.Factory) *cobra.Command
- func NewCmdPRCreate(f *factory.Factory) *cobra.Command
- func NewCmdPRDefaultReviewer(f *factory.Factory) *cobra.Command
- func NewCmdPRDefaultReviewerAdd(f *factory.Factory) *cobra.Command
- func NewCmdPRDefaultReviewerList(f *factory.Factory) *cobra.Command
- func NewCmdPRDefaultReviewerRemove(f *factory.Factory) *cobra.Command
- func NewCmdPRDiff(f *factory.Factory) *cobra.Command
- func NewCmdPREdit(f *factory.Factory) *cobra.Command
- func NewCmdPRFiles(f *factory.Factory) *cobra.Command
- func NewCmdPRList(f *factory.Factory) *cobra.Command
- func NewCmdPRMerge(f *factory.Factory) *cobra.Command
- func NewCmdPRParticipants(f *factory.Factory) *cobra.Command
- func NewCmdPRRequestChanges(f *factory.Factory) *cobra.Command
- func NewCmdPRRequestReview(f *factory.Factory) *cobra.Command
- func NewCmdPRReview(f *factory.Factory) *cobra.Command
- func NewCmdPRStatus(f *factory.Factory) *cobra.Command
- func NewCmdPRUpdateBranch(f *factory.Factory) *cobra.Command
- func NewCmdPRView(f *factory.Factory) *cobra.Command
- func NewCmdReviewerGroup(f *factory.Factory) *cobra.Command
- func NewCmdReviewerGroupAdd(f *factory.Factory) *cobra.Command
- func NewCmdReviewerGroupList(f *factory.Factory) *cobra.Command
- func NewCmdReviewerGroupRemove(f *factory.Factory) *cobra.Command
- func NewCmdSuggestion(f *factory.Factory) *cobra.Command
- func NewCmdSuggestionApply(f *factory.Factory) *cobra.Command
- func PRStateColor(ios *iostreams.IOStreams) func(string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdPRChecks ¶ added in v1.28.0
NewCmdPRChecks returns the `bb pr checks PR_ID` command. It lists CI/build statuses attached to the PR's head commit.
func NewCmdPRCommentAdd ¶ added in v1.6.0
func NewCmdPRCommentDelete ¶ added in v1.24.0
NewCmdPRCommentDelete removes an existing comment.
func NewCmdPRCommentEdit ¶ added in v1.24.0
NewCmdPRCommentEdit updates the body of an existing comment.
func NewCmdPRCommentList ¶ added in v1.6.0
func NewCmdPRCommentReact ¶ added in v1.40.0
NewCmdPRCommentReact adds an emoji reaction to a PR comment.
func NewCmdPRCommentResolve ¶ added in v1.24.0
NewCmdPRCommentResolve marks a comment as resolved (Cloud only — Server surfaces a typed host.unsupported via AsPRCommentResolver).
func NewCmdPRCommentUnreact ¶ added in v1.40.0
NewCmdPRCommentUnreact removes an emoji reaction from a PR comment.
func NewCmdPRCommits ¶ added in v1.56.0
NewCmdPRCommits returns the "pr commits" sub-command.
func NewCmdPRDefaultReviewer ¶ added in v1.50.0
NewCmdPRDefaultReviewer builds the `pr default-reviewer` subcommand group.
func NewCmdPRDefaultReviewerAdd ¶ added in v1.50.0
NewCmdPRDefaultReviewerAdd builds the `pr default-reviewer add` cobra command.
func NewCmdPRDefaultReviewerList ¶ added in v1.50.0
NewCmdPRDefaultReviewerList builds the `pr default-reviewer list` cobra command.
func NewCmdPRDefaultReviewerRemove ¶ added in v1.50.0
NewCmdPRDefaultReviewerRemove builds the `pr default-reviewer remove` cobra command.
func NewCmdPRFiles ¶ added in v1.57.0
NewCmdPRFiles returns the "pr files" sub-command.
func NewCmdPRParticipants ¶ added in v1.60.0
NewCmdPRParticipants returns the "pr participants" sub-command.
func NewCmdPRReview ¶ added in v1.25.0
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
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
NewCmdPRUpdateBranch returns the `bb pr update-branch PR_ID` command. It syncs the PR's source branch with its base branch.
func NewCmdReviewerGroup ¶ added in v1.69.0
NewCmdReviewerGroup builds the `pr reviewer-group` parent command.
func NewCmdReviewerGroupAdd ¶ added in v1.69.0
NewCmdReviewerGroupAdd builds the `pr reviewer-group add` command.
func NewCmdReviewerGroupList ¶ added in v1.69.0
NewCmdReviewerGroupList builds the `pr reviewer-group list` command.
func NewCmdReviewerGroupRemove ¶ added in v1.69.0
NewCmdReviewerGroupRemove builds the `pr reviewer-group remove` command.
func NewCmdSuggestion ¶ added in v1.68.0
NewCmdSuggestion returns the `pr suggestion` parent command.
func NewCmdSuggestionApply ¶ added in v1.68.0
NewCmdSuggestionApply implements `pr suggestion apply PR_ID COMMENT_ID SUGGESTION_ID [--preview]`.
func PRStateColor ¶ added in v1.17.0
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.
Source Files
¶
- activity.go
- checkout.go
- checks.go
- comment.go
- commits.go
- create.go
- default_reviewer.go
- default_reviewer_add.go
- default_reviewer_list.go
- default_reviewer_remove.go
- diff.go
- edit.go
- files.go
- inline_spec.go
- list.go
- merge.go
- participants.go
- pr.go
- pr_fields.go
- register.go
- request_changes.go
- request_review.go
- review.go
- reviewer_group.go
- status.go
- suggestion.go
- update_branch.go
- view.go
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. |