gitlab

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discussion added in v0.5.0

type Discussion struct {
	Id    string `json:"id,omitempty"`
	Notes []Note `json:"notes,omitempty"`
}

type DiscussionNote added in v0.5.0

type DiscussionNote struct {
	DiscussionId string
	NoteId       int
}

type Gitlab

type Gitlab struct {
	ApiURL   string
	Token    string
	Repo     string
	PrNumber string
}

func NewGitlab

func NewGitlab(token string) (b *Gitlab, err error)

func (*Gitlab) RemovePreviousAquaComments added in v0.5.0

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

func (*Gitlab) WriteLineComment

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

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

func (*Gitlab) WriteMultiLineComment

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

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

type Note added in v0.5.0

type Note struct {
	Id   int    `json:"id,omitempty"`
	Body string `json:"body,omitempty"`
}

type Version

type Version struct {
	ID             int       `json:"id"`
	HeadCommitSha  string    `json:"head_commit_sha"`
	BaseCommitSha  string    `json:"base_commit_sha"`
	StartCommitSha string    `json:"start_commit_sha"`
	CreatedAt      time.Time `json:"created_at"`
	MergeRequestID int       `json:"merge_request_id"`
	State          string    `json:"state"`
	RealSize       string    `json:"real_size"`
}

Jump to

Keyboard shortcuts

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