bitbucket

package
v0.5.5-beta Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitbucket

type Bitbucket struct {
	Token    string
	UserName string
	Repo     string
	PrNumber string
	ApiUrl   string
}

func CreateClient added in v0.6.0

func CreateClient(userName, token, prNumber, repoName string) (b *Bitbucket, err error)

func NewBitbucket

func NewBitbucket(userName, token string) (b *Bitbucket, err error)

func (*Bitbucket) RemovePreviousAquaComments added in v0.5.0

func (c *Bitbucket) RemovePreviousAquaComments(msg string) error

func (*Bitbucket) WriteLineComment

func (c *Bitbucket) WriteLineComment(file, comment string, line int) error

WriteLineComment writes a single review line on a file of the bitbucket PR

func (*Bitbucket) WriteMultiLineComment

func (c *Bitbucket) WriteMultiLineComment(file, comment string, startLine, _ int) error

WriteMultiLineComment writes a multiline review on a file in the bitbucket PR

type CommentsResponse added in v0.5.0

type CommentsResponse struct {
	Values []Value `json:"values,omitempty"`
	Next   string  `json:"next"`
}

type Content

type Content struct {
	Raw string `json:"raw,omitempty"`
}

type Inline

type Inline struct {
	From int    `json:"from,omitempty"`
	To   int    `json:"to,omitempty"`
	Path string `json:"path,omitempty"`
}

type Value added in v0.5.0

type Value struct {
	Id      int     `json:"id,omitempty"`
	Deleted bool    `json:"deleted,omitempty"`
	Content Content `json:"content,omitempty"`
	Inline  Inline  `json:"inline,omitempty"`
}

Jump to

Keyboard shortcuts

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