github

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGhCliInDir

func RunGhCliInDir(workingDir string, env []string, args ...string) (bytes.Buffer, bytes.Buffer, error)

RunGhCliInDir runs any gh command in the specified working directory, because this is not possible to do with the default gh.Exec function

Types

type RepositoryFragment

type RepositoryFragment struct {
	Name    string
	IsEmpty bool
}

RepositoryFragment is exported so as to be used in GraphQL APIs

type RepositoryInfo

type RepositoryInfo struct {
	// Name is the repository name
	Name string

	// IsEmpty determines whether the GitHub repository is empty or not
	IsEmpty bool
}

RepositoryInfo contains few details about a given repository

func GetOrganizationRepos

func GetOrganizationRepos(organization string, query string, batchSize int) ([]RepositoryInfo, error)

GetOrganizationRepos returns an aggregated list of all repositories within a GitHub organization, either private or public

Jump to

Keyboard shortcuts

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