gh_command

package
v0.0.0-...-7d5a57d Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMyUserLogin

func GetMyUserLogin() string

Types

type Commit

type Commit struct {
	Sha     string `json:"sha"`
	Message string `json:"message"`
	Author  string `json:"author"`
}

func GetBranchCommits

func GetBranchCommits(owner string, repo string, baseBranch string, headBranch string) []Commit

GetBranchCommits function to get the commits between two branches from GitHub

type GetRepoOptions

type GetRepoOptions struct {
	Json string
}

GetRepoOptions struct to represent the options for getting a repository

type GetRepoResponse

type GetRepoResponse struct {
	AssignableUsers  []RepoAssignableUser `json:"assignableUsers"`
	DefaultBranchRef RepoDefaultBranchRef `json:"defaultBranchRef"`
	ID               string               `json:"id"`
	Owner            RepoOwner            `json:"owner"`
	Name             string               `json:"name"`
}

GetRepoResponse struct to represent the response of getting a repository

type Repo

type Repo struct {
	RepoName string
}

func (*Repo) Get

func (r *Repo) Get(
	options GetRepoOptions,
) GetRepoResponse

GetRepo function to get the detail of a repository

type RepoAssignableUser

type RepoAssignableUser struct {
	ID    string `json:"id"`
	Login string `json:"login"`
	Name  string `json:"name"`
}

RepoAssignableUser struct to represent an assignable user

type RepoDefaultBranchRef

type RepoDefaultBranchRef struct {
	Name string `json:"name"`
}

RepoDefaultBranchRef struct to represent the default branch of a repository

type RepoOwner

type RepoOwner struct {
	ID    string `json:"id"`
	Login string `json:"login"`
}

RepoOwner struct to represent the owner of the repository

Jump to

Keyboard shortcuts

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