cli/pkg/cmd/run
Mislav Marohnić 9bdc63c4ca Eliminate API overfetching in pr commands
This completely rewrites the PR lookup mechanism so that the caller
must specify the GraphQL fields to query for each PR. Additionally, this
fixes some export problems with `pr view --json`.

Features:

- Each pr command now gets assigned a concept of a Finder. This makes it
  easier to stub the PR in tests without having to stub the underlying
  HTTP calls or git invocations.

- `pr view --web` is much faster since it only fetches the "url" field.

- `pr diff 123` now skips a whole API call where a whole PR was
  unnecessarily preloaded just to access its diff in a subsequent call.

- PullRequestGraphQL query builder is now used to construct queries.

- A bunch of individual commands are now freed of having to know about
  concepts such as BaseRepo, Branch, Config, or Remotes.
2021-04-30 20:34:36 +02:00
..
download Fix extracting workflow artifact to a relative path 2021-04-13 19:15:14 +02:00
list use int64 explicitly in Actions support 2021-04-15 13:32:09 -05:00
rerun minor usage improvements 2021-04-13 22:43:02 -05:00
shared Eliminate API overfetching in pr commands 2021-04-30 20:34:36 +02:00
view Merge pull request #3445 from adamslc/log_fix 2021-04-20 08:13:26 -07:00
watch use int64 explicitly in Actions support 2021-04-15 13:32:09 -05:00
run.go unhide actions commands 2021-04-13 22:08:06 -05:00