Documentation
¶
Index ¶
- Variables
- func CombinePRs(ctx context.Context, graphQlClient *api.GraphQLClient, ...) error
- func GetPRStatusInfo(ctx context.Context, graphQlClient *api.GraphQLClient, owner, repo string, ...) (*prStatusResponse, error)
- func NewRootCmd() *cobra.Command
- func ParseRepositories(args []string, reposFile string, defaultOwner string) ([]string, error)
- func PrMatchesCriteria(branch string, prLabels []struct{ ... }) bool
- func PrMeetsRequirements(ctx context.Context, graphQlClient *api.GraphQLClient, owner, repo string, ...) (bool, error)
- func Run() error
- func SetupSignalContext() (context.Context, context.CancelFunc)
- func ValidateInputs(args []string) error
- type Spinner
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *slog.Logger
Functions ¶
func CombinePRs ¶ added in v0.0.2
func GetPRStatusInfo ¶ added in v0.0.2
func GetPRStatusInfo(ctx context.Context, graphQlClient *api.GraphQLClient, owner, repo string, prNumber int) (*prStatusResponse, error)
GetPRStatusInfo fetches both CI status and approval status using GitHub's GraphQL API
func NewRootCmd ¶
NewRootCmd creates the root command for the gh-combine CLI
func ParseRepositories ¶
ParseRepositories parses repository names from arguments or file with support for default owner
func PrMatchesCriteria ¶
checks if a PR matches all filtering criteria
func PrMeetsRequirements ¶ added in v0.0.2
func PrMeetsRequirements(ctx context.Context, graphQlClient *api.GraphQLClient, owner, repo string, prNumber int) (bool, error)
PrMeetsRequirements checks if a PR meets additional requirements beyond basic criteria
func SetupSignalContext ¶
func SetupSignalContext() (context.Context, context.CancelFunc)
SetupSignalContext creates a context that's cancelled on SIGINT or SIGTERM
func ValidateInputs ¶
validateInputs checks if the provided inputs are valid
Types ¶
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
func NewSpinner ¶
func (*Spinner) UpdateMessage ¶
UpdateMessage changes the text displayed next to the spinner while it's running
Click to show internal directories.
Click to hide internal directories.