gitlab

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 12 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, apiUrl, repoName, mergeRequestID 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