github

package
v0.10.47 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(conf *types.Conf) ([]types.Repo, bool)

Get TODO.

func GetIssues added in v0.10.23

func GetIssues(repo *github.Repository, client *github.Client, conf types.GenRepo) map[string]interface{}

GetIssues get issues

func GetOrCreate added in v0.10.18

func GetOrCreate(destination types.GenRepo, repo types.Repo) (string, string, error)

GetOrCreate returns the destination's clone URL and resolved push token, creating the repository if needed.

Types

type Query added in v0.10.14

type Query struct {
	User User `graphql:"user(login: $userLogin)"`
}

type Repository added in v0.10.14

type Repository struct {
	Name  string
	Owner struct {
		Login string
	}
}

type User added in v0.10.14

type User struct {
	Login                     string
	RepositoriesContributedTo struct {
		Nodes    []Repository
		PageInfo struct {
			EndCursor   githubv4.String
			HasNextPage bool
		}
	} `graphql:"repositoriesContributedTo(contributionTypes: [COMMIT, PULL_REQUEST, REPOSITORY], first: 100, after: $reposCursor)"`
}

type V4Repo added in v0.10.14

type V4Repo struct {
	User       string
	Repository string
}

Jump to

Keyboard shortcuts

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