pullrequest

package
v0.93.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitbucket

type Bitbucket struct {

	// SourceBranch specifies the pullrequest source branch.
	SourceBranch string `yaml:",inline,omitempty"`
	// TargetBranch specifies the pullrequest target branch
	TargetBranch string `yaml:",inline,omitempty"`
	// Owner specifies repository owner
	Owner string `yaml:",omitempty" jsonschema:"required"`
	// Repository specifies the name of a repository for a specific owner
	Repository string `yaml:",omitempty" jsonschema:"required"`
	// contains filtered or unexported fields
}

Bitbucket contains information to interact with Bitbucket Cloud API

func New

func New(spec interface{}, scm *bitbucket.Bitbucket) (Bitbucket, error)

New returns a new valid Bitbucket Server object.

func (*Bitbucket) CheckActionExist added in v0.89.0

func (b *Bitbucket) CheckActionExist(report *reports.Action) error

CheckActionExist verifies if an existing BitBucket pullrequest is already opened

func (*Bitbucket) CleanAction

func (b *Bitbucket) CleanAction(report *reports.Action) error

CleanAction verifies if an existing action requires some operations

func (*Bitbucket) CreateAction

func (b *Bitbucket) CreateAction(report *reports.Action, resetDescription bool) error

CreateAction opens a Pull Request on the Bitbucket server

type Spec

type Spec struct {
	client.Spec
	// SourceBranch specifies the pullrequest source branch
	SourceBranch string `yaml:",inline,omitempty"`
	// TargetBranch specifies the pullrequest target branch
	TargetBranch string `yaml:",inline,omitempty"`
	// Owner specifies repository owner
	Owner string `yaml:",omitempty" jsonschema:"required"`
	// Repository specifies the name of a repository for a specific owner
	Repository string `yaml:",omitempty" jsonschema:"required"`
	// Title defines the Bitbucket pullrequest title.
	Title string `yaml:",inline,omitempty"`
	// Body defines the Bitbucket pullrequest body
	Body string `yaml:",inline,omitempty"`
}

Spec defines settings used to interact with Bitbucket Server pullrequest It's a mapping of user input from a Updatecli manifest and it shouldn't modified

Jump to

Keyboard shortcuts

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