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")
Functions ¶
Types ¶
type ApiResponse ¶
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)
Click to show internal directories.
Click to hide internal directories.