merge

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	Id        string `json:"id"`
	Email     string `json:"author_email"`
	CreatedAt string `json:"created_at"`
	Username  string `json:"username"`
}

type Config

type Config struct {
	BaseUrl           string `json:"base_url"`
	MergeRequestsPath string `json:"merge_requests_path"`
	MergeRequestQuery string `json:"merge_request_query"`
	CommitsPath       string `json:"commits_path"`
	Project           string `json:"project"`
}

type FetchResult

type FetchResult struct {
	Merge Merge `json:"merge"`
}

type Fetcher

type Fetcher struct {
	Config Config
	Token  string
}

func (Fetcher) Fetch

func (m Fetcher) Fetch(mergeId string) []FetchResult

type Merge

type Merge struct {
	Iid            int    `json:"iid"`
	Title          string `json:"title"`
	Description    string `json:"description"`
	State          string `json:"state"`
	CreatedAt      string `json:"created_at"`
	UpdatedAt      string `json:"updated_at"`
	TargetBranch   string `json:"target_branch"`
	SourceBranch   string `json:"source_branch"`
	WebUrl         string `json:"web_url"`
	Author         User   `json:"author"`
	MergeCommitSha string `json:"merge_commit_sha"`
	Commit         Commit `json:"commit"`
}

type User

type User struct {
	Username string `json:"username"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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