Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentPR ¶
GetCurrentPR auto-detects the PR number from the current branch using gh CLI
func ParseOwnerRepo ¶
ParseOwnerRepo extracts owner and repo from git remote origin
Types ¶
type Annotation ¶
type Annotation struct {
Message string
Path string
StartLine int
Title string
AnnotationLevel string
}
Annotation represents a check run annotation (error/warning)
type CheckRunInfo ¶
type CheckRunInfo struct {
Name string
WorkflowName string
Summary string
Status string
Conclusion string
StartedAt *time.Time
CompletedAt *time.Time
DetailsURL string
Annotations []Annotation
}
CheckRunInfo contains enriched check run data with workflow name
func FetchCheckRunsGraphQL ¶
func FetchCheckRunsGraphQL(ctx context.Context, token, owner, repo string, prNumber int) ([]CheckRunInfo, int, error)
FetchCheckRunsGraphQL fetches check runs with workflow names using GraphQL
type CheckRunsResult ¶
CheckRunsResult contains check runs and rate limit info
func FetchCheckRuns ¶
func FetchCheckRuns(ctx context.Context, client *github.Client, owner, repo, sha string) (*CheckRunsResult, error)
FetchCheckRuns retrieves check runs for a given commit SHA
type PRInfo ¶
type PRInfo struct {
Number int
Title string
HeadSHA string
CreatedAt string
HeadCommitDate string
}
PRInfo contains metadata about a pull request
func FetchPRInfo ¶
func FetchPRInfo(ctx context.Context, client *github.Client, owner, repo string, prNumber int) (*PRInfo, error)
FetchPRInfo retrieves metadata about a pull request
func GetCurrentPRFull ¶
GetCurrentPRFull uses gh CLI to get full PR info including branch
Click to show internal directories.
Click to hide internal directories.