Something went wrong. Try again.
An unofficial terminal client for Tangled, optimized for humans and agents. tgcli.wisp.place
Something went wrong. Try again.
1234567891011121314151617181920212223242526package app
import ( "context" "fmt")
// ListPulls lists pull requests in the target repository.func (s *Service) ListPulls(ctx context.Context, t Target, options ListOptions) (*ItemListResult, error) { repoDid, err := s.repoDID(ctx, t) if err != nil { return nil, err } listOptions, err := s.pullListOptions(ctx, options) if err != nil { return nil, err } pulls, err := s.appview.ListPulls(ctx, repoDid, listOptions) if err != nil { return nil, fmt.Errorf("list PRs for %q: %w", t.Repo, err) } items, warnings := s.buildItems(ctx, pulls.Items, true) warnings = append(recordWarnings(pulls.Warnings), warnings...) return &ItemListResult{Items: items, Warnings: warnings}, nil}