github

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthToken

func AuthToken(ctx context.Context) (string, error)

func RepoInfoFromGHWithParent

func RepoInfoFromGHWithParent(ctx context.Context) (*RepoInfo, *RepoInfo, error)

Types

type PullRequestInfo

type PullRequestInfo struct {
	Number  int    `json:"number"`
	Title   string `json:"title"`
	URL     string `json:"url"`
	State   string `json:"state"`
	IsDraft bool   `json:"isDraft"`
}

func FindPullRequest

func FindPullRequest(ctx context.Context, repoFullName, headBranch string, headOwners []string) (*PullRequestInfo, error)

type PullRequestTemplate

type PullRequestTemplate struct {
	Source  string
	Path    string
	Content string
}

func FindPullRequestTemplate

func FindPullRequestTemplate(ctx context.Context, repoRoot, token, owner string) (*PullRequestTemplate, error)

type RepoInfo

type RepoInfo struct {
	Owner string
	Name  string
}

func RepoInfoFromGH

func RepoInfoFromGH(ctx context.Context) (*RepoInfo, error)

func RepoInfoFromRemoteURL

func RepoInfoFromRemoteURL(remoteURL string) (*RepoInfo, error)

Jump to

Keyboard shortcuts

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