gitlab

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(param *ParamNew) (*Client, error)

func (*Client) CreateComment

func (client *Client) CreateComment(note *Note) error

func (*Client) HideComment

func (client *Client) HideComment(nodeID int) error

func (*Client) ListNote

func (client *Client) ListNote(mr *MergeRequest) ([]*Note, error)

func (*Client) MRNumberWithSHA

func (client *Client) MRNumberWithSHA(owner, repo, sha string) (int, error)

type MergeRequest

type MergeRequest struct {
	MRNumber int
	Org      string
	Repo     string
}

type MergeRewuestsService

type MergeRewuestsService interface{}

type Mock

type Mock struct {
	Stderr   io.Writer
	Silent   bool
	Login    string
	MRNumber int
}

func (*Mock) CreateComment

func (mock *Mock) CreateComment(note *Note) error

func (*Mock) HideComment

func (mock *Mock) HideComment(nodeID int) error

func (*Mock) ListNote

func (mock *Mock) ListNote(mr *MergeRequest) ([]*Note, error)

func (*Mock) MRNumberWithSHA

func (mock *Mock) MRNumberWithSHA(owner, repo, sha string) (int, error)

type Note

type Note struct {
	ID             int
	MRNumber       int
	Org            string
	Repo           string
	NoteID         int
	Body           string
	BodyForTooLong string
	SHA1           string
	HideOldComment string
	Vars           map[string]interface{}
	TemplateKey    string
}

type NoteServices

type NoteServices interface {
	CreateMergeRequestNote(pid interface{}, mergeRequest int, opt *gitlab.CreateMergeRequestNoteOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Note, *gitlab.Response, error)
	UpdateMergeRequestNote(pid interface{}, mergeRequest, note int, opt *gitlab.UpdateMergeRequestNoteOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Note, *gitlab.Response, error)
	ListMergeRequestNotes(pid interface{}, mergeRequest int, opt *gitlab.ListMergeRequestNotesOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.Note, *gitlab.Response, error)
}

type ParamNew

type ParamNew struct {
	Token         string
	GitlabBaseURL string
}

Jump to

Keyboard shortcuts

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