gitlab

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMergeRequestNotFound = errors.New("merge request not found")
View Source
var ErrProjectNotFound = errors.New("project not found")
View Source
var ErrTokenExpired = errors.New("token expired")
View Source
var ErrUnauthorized = errors.New("unauthorized")

Functions

This section is empty.

Types

type ApiResponse

type ApiResponse struct {
	StatusCode int
	Body       []byte
}

type MergeRequestResponse

type MergeRequestResponse struct {
	ID           int    `json:"id"`
	Title        string `json:"title"`
	State        string `json:"state"`
	SourceBranch string `json:"source_branch"`
	WebUrl       string `json:"web_url"`
}

func FindMergeRequest

func FindMergeRequest(projectPath string, token string, branch string) (MergeRequestResponse, error)

type UserResponse

type UserResponse struct {
	ID int `json:"id"`
}

func User

func User(token string) (UserResponse, error)

Jump to

Keyboard shortcuts

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