Documentation
¶
Index ¶
Constants ¶
View Source
const OkToTestLabel = "ok-to-test"
Variables ¶
View Source
var TrustedAuthorLogins = map[string]bool{ "renovate-fullsend[bot]": true, "fullsend-ai-coder[bot]": true, }
TrustedAuthorLogins are PR authors that may run e2e without write access. See docs/contributing/bot-identities.md.
Functions ¶
func ResolveCollaboratorRole ¶
ResolveCollaboratorRole maps GitHub collaborator permission API fields to a canonical role string for the e2e CI gate. Built-in role_name values are cross-checked against permission; custom roles fall back to permission alone.
Types ¶
type GitHubGate ¶
type GitHubGate interface {
GetPullRequestAuthorizationContext(ctx context.Context, owner, repo string, number int) (*forge.PullRequestAuthorizationContext, error)
ListIssueLabelEvents(ctx context.Context, owner, repo string, number int) ([]forge.IssueLabelEvent, error)
RemoveIssueLabel(ctx context.Context, owner, repo string, number int, label string) error
GetCollaboratorPermissionDetail(ctx context.Context, owner, repo, username string) (forge.GitHubCollaboratorPermissionDetail, error)
}
GitHubGate is the forge surface required for e2e pull-request authorization.
func GateFromForge ¶
func GateFromForge(client forge.Client) (GitHubGate, error)
GateFromForge returns a GitHubGate when client implements the required methods.
type Input ¶
type Input struct {
Owner string
Repo string
PRNumber int
EventAction string
PRUpdatedAt string
PRAuthorLogin string
LabelActorLogin string
DryRun bool
}
Input carries workflow event fields for an authorization decision.
Click to show internal directories.
Click to hide internal directories.