actions

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Opened store flag --opened value
	Opened bool
	// Closed store flag --closed value
	Closed bool
	// Merged store flag --merged value
	Merged bool
)

Functions

func AssignMergeRequest

func AssignMergeRequest(client *api.Client) func(*cli.Context) error

AssignMergeRequest interact with the graphql api to assign user to merge request

func CreateMergeRequest

func CreateMergeRequest(client *api.Client) func(*cli.Context) error

CreateMergeRequest send a request to create merge request by given project path

func IssuesList added in v0.2.0

func IssuesList(client *api.Client) func(*cli.Context) error

IssuesList display a project's issues list

func MergeRequestList added in v0.2.0

func MergeRequestList(client *api.Client) func(*cli.Context) error

MergeRequestList display a paginated merge request for a given project by path

func ProjectList

func ProjectList(client *api.Client) func(*cli.Context) error

ProjectList send request to get user's project and print a table with projects

func ProjectMembers

func ProjectMembers(client *api.Client) func(*cli.Context) error

ProjectMembers show project members

func ProjectView

func ProjectView(client *api.Client) func(*cli.Context) error

ProjectView get and show data from a project by path

func ShowIssue added in v0.2.0

func ShowIssue(client *api.Client) func(*cli.Context) error

ShowIssue search and display a issue by iid

func ShowMergeRequest added in v0.2.0

func ShowMergeRequest(client *api.Client) func(*cli.Context) error

ShowMergeRequest search and display a merge request by iid

Types

type Issue added in v0.2.0

type Issue struct {
	Author User
	// contains filtered or unexported fields
}

Issue struct representation

func (*Issue) Print added in v0.2.0

func (i *Issue) Print()

Print issue

type MergeRequest added in v0.2.0

type MergeRequest struct {
	Description  string
	SourceBranch string
	TargetBranch string
	Assignees    struct {
		Nodes []User
	}
	Author User
	// contains filtered or unexported fields
}

MergeRequest graphql struct

func (*MergeRequest) Print added in v0.2.0

func (mr *MergeRequest) Print()

Print merge request

type Project

type Project struct {
	CreatedAt       string
	OpenIssuesCount int
	SSHURLToRepo    string `graphql-bind:"sshUrlToRepo"`
	HTTPURLToRepo   string `graphql-bind:"httpUrlToRepo"`
	WebURL          string `graphql-bind:"webUrl"`
	Releases        struct {
		Nodes []struct {
			Name string
		}
	} `graphql:"(first: 1)"`
	Pipelines struct {
		Nodes []struct {
			DetailedStatus struct {
				Label string
			}
		}
	} `graphql:"(first: 1, ref: \\\"master\\\")"`
	// contains filtered or unexported fields
}

Project struct

func (*Project) Print

func (project *Project) Print()

Print project data

type User

type User struct {
	Name     string
	Username string
}

User gitlab user data

func (*User) Print

func (u *User) Print()

Print user data

Jump to

Keyboard shortcuts

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