gh

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentBranchCIStatus

func GetCurrentBranchCIStatus(repoPath string) (string, error)

func GetMyPRsStatus

func GetMyPRsStatus(repoPath string) (string, error)

func WaitForCIWorkflow

func WaitForCIWorkflow(ctx context.Context, repoPath string) error

WaitForCIWorkflow waits for CI workflow to complete for the latest commit on main branch If there's no CI workflow defined, it returns immediately without error

func WaitForReleaseWorkflow

func WaitForReleaseWorkflow(ctx context.Context, repoPath, versionTag string) error

WaitForReleaseWorkflow waits for both CI and release workflows triggered by a tag push to complete successfully

Types

type Client

type Client struct{}

Client represents a GitHub API client

func NewClient

func NewClient() *Client

NewClient creates a new GitHub client

type GHClient

type GHClient struct{}

type PullRequest

type PullRequest struct {
	Number            int                 `json:"number"`
	State             string              `json:"state"`
	IsDraft           bool                `json:"isDraft"`
	StatusCheckRollup []StatusCheckRollup `json:"statusCheckRollup"`
}

type StatusCheckRollup

type StatusCheckRollup struct {
	State string `json:"state"`
}

type WorkflowRun

type WorkflowRun struct {
	Status     string `json:"status"`
	Conclusion string `json:"conclusion"`
}

Jump to

Keyboard shortcuts

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