pr

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func BuildPRURL(ctx *Context) string

BuildPRURL constructs the full PR URL from the PR context.

func PRIndex added in v1.0.0

func PRIndex(ctx *Context) (int64, error)

PRIndex returns the PR index from the task's PRID UDA.

Types

type Context

type Context struct {
	Task  *taskwarrior.Task
	Owner string
	Repo  string
	Info  *gitprovider.RepoInfo
}

func ResolveContextWithoutProvider added in v1.6.0

func ResolveContextWithoutProvider() (*Context, error)

ResolveContextWithoutProvider resolves task metadata and git repo info without creating an authenticated provider. Used by CLI commands that proxy API calls through the daemon.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL