Documentation
¶
Overview ¶
Package pr implements pull request operations for worker sessions.
It resolves a PR context from the TTAL_JOB_ID environment variable, then exposes operations to create, modify, comment on, and squash-merge PRs via the gitprovider abstraction. Merging is gated on reviewer LGTM approval recorded in the task's pr_id UDA.
Plane: worker
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPRURL ¶
BuildPRURL constructs the full PR URL from the PR context.
Types ¶
type Context ¶
type Context struct {
Task *taskwarrior.Task
Owner string
Repo string
Info *gitprovider.RepoInfo
}
func ResolveContextWithoutProvider ¶ added in v1.6.0
ResolveContextWithoutProvider resolves task metadata and git repo info without creating an authenticated provider. Used by CLI commands that proxy API calls through the daemon.