githubclient

package
v0.0.0-...-2c531d0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(organization string, token string) *githubclient

Types

type AddLabelRequestBody

type AddLabelRequestBody struct {
	Labels []string `json:"labels"`
}

type Comment

type Comment struct {
	AuthorAssociation string        `json:"authorAssociation"`
	Author            CommentAuthor `json:"author"`
}

type CommentAuthor

type CommentAuthor struct {
	Login string `json:"login"`
}

type CommentEdge

type CommentEdge struct {
	Node Comment `json:"node"`
}

type Comments

type Comments struct {
	Edges []CommentEdge `json:"edges"`
}

type ErrorResponseBody

type ErrorResponseBody struct {
	Message          string        `json:"message"`
	Errors           []GithubError `json:"errors"`
	DocumentationUrl string        `json:"documentation_url"`
}

type GithubError

type GithubError struct {
	Value    string `json:"value"`
	Resource string `json:"resource"`
	Field    string `json:"field"`
	Code     string `json:"code"`
}

type GraphqlRequestBody

type GraphqlRequestBody struct {
	Variables GraphqlVariables `json:"variables"`
	Query     string           `json:"query"`
}

type GraphqlVariables

type GraphqlVariables struct {
	Organization string  `json:"organization"`
	RepoName     string  `json:"repoName"`
	Cursor       *string `json:"cursor"`
}

type Issue

type Issue struct {
	Title             string   `json:"title"`
	Url               string   `json:"url"`
	Number            int      `json:"number"`
	AuthorAssociation string   `json:"authorAssociation"`
	Labels            Labels   `json:"labels"`
	Comments          Comments `json:"comments"`
}

type IssueEdge

type IssueEdge struct {
	Cursor string `json:"cursor"`
	Node   Issue  `json:"node"`
}

type Issues

type Issues struct {
	Data struct {
		Repository struct {
			Issues struct {
				Edges []IssueEdge `json:"edges"`
			} `json:"issues"`
		} `json:"repository"`
	} `json:"data"`
}

type Label

type Label struct {
	Name  string `json:"name"`
	Color string `json:"color"`
}

type LabelEdge

type LabelEdge struct {
	Node Label `json:"node"`
}

type LabelRenameRequestBody

type LabelRenameRequestBody struct {
	NewName string `json:"new_name"`
}

type Labels

type Labels struct {
	Edges []LabelEdge `json:"edges"`
}

type Repository

type Repository struct {
	Archived bool   `json:"archived"`
	Name     string `json:"name"`
}

Jump to

Keyboard shortcuts

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