Documentation
¶
Overview ¶
Package github answers the app's GitHub screen on hosts where its POSIX sh scripts cannot run (native Windows, ADR 0007): the working trees the user is in (github.repos), what gh reports for one of them (github.activity) and the state of single issues and pull requests (github.status). It runs the same git and gh commands as the app's scripts (lib/services/github_repos.dart); keep both in step.
Index ¶
- Constants
- func Activity(ctx context.Context, r Runner, p wire.GitHubActivityParams) (wire.GitHubActivityResult, error)
- func LiveDirs(s *ptable.Snapshot, owner string, holders []int, self int) []string
- func Repos(ctx context.Context, r Runner, cands []Candidate) wire.GitHubReposResult
- type Candidate
- type Runner
Constants ¶
const (
// MaxRepos working trees are inspected and listed.
MaxRepos = 20
)
Variables ¶
This section is empty.
Functions ¶
func Activity ¶
func Activity(ctx context.Context, r Runner, p wire.GitHubActivityParams) (wire.GitHubActivityResult, error)
Activity asks gh for the repository's description, its open pull requests and issues, and the pull request of p.Branch, the gh calls in parallel, as the app's sh script does. gh runs in p.Path when that is a directory.
func LiveDirs ¶
LiveDirs returns the working directories of owner's processes that run under an SSH session or under a holder (holders: their pids) — shells, coding agents and whatever runs in them — each directory once. The process self and everything under it (the bridge asking, and its git and gh) are left out. On Windows the directory is read from the process's PEB (ptable).