Documentation
¶
Index ¶
- func CurrentUserPrincipalID(ctx *cmdctx.Ctx) (int, error)
- func DefaultBranch(cc *cmdctx.Ctx, repoID string) (string, error)
- func GetPRWorkflow(ctx *cmdctx.Ctx) error
- func ModuleInit(reg registry.ModuleRegistrar)
- func PrincipalIDFromEmail(cc *cmdctx.Ctx, email string) (int, error)
- func PrincipalIDFromUID(cc *cmdctx.Ctx, uid string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUserPrincipalID ¶
CurrentUserPrincipalID resolves the authenticated user's Code numeric principal ID. The result is memoized within a process lifetime so that repeated calls (e.g. across pages) only hit the API once.
func DefaultBranch ¶
DefaultBranch returns the default branch name for the given repository.
func GetPRWorkflow ¶
GetPRWorkflow implements "get pr". It fetches the base pull request (hard fail on error) and the "pr:insight" section (best-effort — a failure only omits it, it never fails the command), then hands everything fetched to renderPR.
func ModuleInit ¶
func ModuleInit(reg registry.ModuleRegistrar)
func PrincipalIDFromEmail ¶
PrincipalIDFromEmail resolves an email address to a Code numeric principal ID. Returns an error if no match is found or the email matches multiple principals.
Types ¶
This section is empty.