gh

package
v0.1.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package gh gates our access to GitHub's APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLITokenSource

type CLITokenSource struct{}

CLITokenSource is an oauth2 token source that uses the GitHub CLI to get a token.

This is not super safe and we should probably nuke it.

func (*CLITokenSource) Token

func (ts *CLITokenSource) Token() (*oauth2.Token, error)

Token returns an oauth2 token using the GitHub CLI.

type RepoInfo

type RepoInfo struct {
	Owner string
	Name  string
}

RepoInfo contains information about a GitHub repository.

func ParseRepoInfo

func ParseRepoInfo(remote string) (RepoInfo, error)

ParseRepoInfo guesses the GitHub repository owner and name from a Git remote URL.

func (RepoInfo) String

func (r RepoInfo) String() string

Directories

Path Synopsis
Package ghtest provides tools to test code that interacts with GitHub.
Package ghtest provides tools to test code that interacts with GitHub.

Jump to

Keyboard shortcuts

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