bitbucket_server

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const LIMIT = 500

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivitiesResponse

type ActivitiesResponse struct {
	Activities    []Activity `json:"values,omitempty"`
	IsLastPage    bool       `json:"isLastPage"`
	Start         int        `json:"start"`
	NextPageStart int        `json:"nextPageStart,omitempty"`
}

type Activity

type Activity struct {
	Id            int     `json:"id,omitempty"`
	Action        string  `json:"action,omitempty"`
	CommentAction string  `json:"commentAction,omitempty"`
	Comment       Comment `json:"comment,omitempty"`
}

type Anchor

type Anchor struct {
	Line     int    `json:"line"`
	LineType string `json:"lineType"`
	FileType string `json:"fileType"`
	Path     string `json:"path"`
}

type BitbucketServer

type BitbucketServer struct {
	Token        string
	UserName     string
	Project      string
	Repo         string
	PrNumber     string
	ApiUrl       string
	ChangeReport change_report.ChangeReport
}

func NewBitbucketServer

func NewBitbucketServer(apiUrl, userName, token, prNumber, project, repo, baseRef string) (b *BitbucketServer, err error)

func (*BitbucketServer) RemovePreviousAquaComments

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

func (*BitbucketServer) WriteLineComment

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

func (*BitbucketServer) WriteMultiLineComment

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

type Comment

type Comment struct {
	Id      int    `json:"id,omitempty"`
	Version int    `json:"version,omitempty"`
	Text    string `json:"text,omitempty"`
}

type NewComment

type NewComment struct {
	Test   string `json:"text"`
	Anchor Anchor `json:"anchor"`
}

Jump to

Keyboard shortcuts

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