Commit graph

3711 commits

Author SHA1 Message Date
Mislav Marohnić
04f20ddb2b Use statusCheckRollup internal GraphQL to simplify Statuses+Checks
With the old approach, we had to enumerate all StatusContexts and
CheckRuns to calculate whether a PR has passing or failing CI status.

Using `statusCheckRollup` which is behind the `pe_mobile` feature flag,
this is somewhat simpler because both StatusContexts and CheckRuns are
now behind the same connection.

Additionally, should we decide to *not* show the number of
passing/failing checks, this now approach allows us to consume the
`statusCheckRollup { state }` field and avoid paginated collections
and calculating the "winning" state altogether.
2019-11-15 11:43:00 +01:00
Mislav Marohnić
760fac906d Merge remote-tracking branch 'origin/master' into pr-checkout 2019-11-15 09:31:11 +01:00
Mislav Marohnić
624c44efda Merge pull request #63 from github/branch-from-fork
Use `OWNER:BRANCH` syntax for cross-repo PRs
2019-11-15 09:28:00 +01:00
Corey Johnson
761d29cf5e Fix test 2019-11-14 12:40:48 -08:00
Mislav Marohnić
d8308b4c15 Allow pr checkout while not on any branch 2019-11-14 20:54:44 +01:00
Mislav Marohnić
4fab43a667 Cover more pr checkout test scenarios 2019-11-14 20:53:34 +01:00
Corey Johnson
f0e6ec2b5e Nope 2019-11-14 11:46:31 -08:00
Corey Johnson
b4b0c37feb show labels 2019-11-14 11:30:53 -08:00
Mislav Marohnić
1fc9c8f9d6 Test the scenario where the target branch already exists 2019-11-14 20:29:24 +01:00
Mislav Marohnić
2616da04c4 Only capture stderr of commands that don't have configured Stderr 2019-11-14 20:02:42 +01:00
Mislav Marohnić
dc0de147c9 Add pr checkout command 2019-11-14 19:59:42 +01:00
Mislav Marohnić
1479ff457a Merge pull request #38 from github/pr-create
Add `pr create` command

Closes #59
2019-11-14 19:33:30 +01:00
Mislav Marohnić
135efda6d3 Avoid re-wrapping of "could not determine suitable remote" error 2019-11-14 19:31:33 +01:00
Billy Griffin
55ab2f6b6e Merge pull request #62 from github/consistency-is-key
Swap "open in browser" to "view in browser" for view cmd
2019-11-14 08:59:14 -07:00
Mislav Marohnić
0c2d8879d1 Use OWNER:BRANCH syntax for cross-repo PRs
This affects `pr status` and `pr list`.
2019-11-14 16:46:59 +01:00
Corey Johnson
c7d275c520 Includ body in debug output 2019-11-13 13:57:48 -08:00
Corey Johnson
57afc2e69f Add assignee 2019-11-13 13:55:24 -08:00
vilmibm
237fd04ad0 use errors.Wrap 2019-11-13 15:00:57 -06:00
Billy Griffin
e262e7283c Swap "open in browser" to "view in browser" for view cmd 2019-11-13 13:59:32 -07:00
Mislav Marohnić
933086bae9 Merge remote-tracking branch 'origin/master' into pr-create 2019-11-13 19:31:02 +01:00
Mislav Marohnić
bb87f4a2fb Add pr create test for git clean state 2019-11-13 19:25:02 +01:00
Mislav Marohnić
e3e8647760 Eliminate package-level flags 2019-11-13 19:24:58 +01:00
Nate Smith
f7074c17e6 Merge pull request #55 from github/pr-status-checks
Add checks, reviews info to `pr status`
2019-11-13 12:08:46 -06:00
Corey Johnson
44c7495bab Add state 2019-11-12 14:31:24 -08:00
Corey Johnson
569321b48d Updated README.md 2019-11-12 11:31:43 -08:00
Nate Smith
2236bd3f7b Merge pull request #51 from github/colors
do not use color when stdout is not a terminal
2019-11-12 11:25:54 -07:00
Mislav Marohnić
6aa0c071d6 Simplify tests that use StubExecCommand 2019-11-11 17:04:26 +01:00
Mislav Marohnić
65054fdc6e Complete pr create test 2019-11-11 15:01:41 +01:00
Mislav Marohnić
ef4cadd8c9 Pass arbitrary params to CreatePullRequest 2019-11-11 14:09:24 +01:00
Mislav Marohnić
a275398dac Merge remote-tracking branch 'origin/master' into pr-create 2019-11-11 12:24:09 +01:00
Mislav Marohnić
8fea48146d Shorter representation of successful checks in pr status 2019-11-08 22:04:18 +01:00
Mislav Marohnić
f70accd3e0 pr status prints PR number in yellow
This matches `pr list`
2019-11-08 22:03:47 +01:00
Mislav Marohnić
e1f52fed01 Display checks, reviews on a new line to prevent terminal wrap 2019-11-08 21:04:47 +01:00
Mislav Marohnić
7419f7ae64 Add checks, reviews info to pr status 2019-11-08 21:04:47 +01:00
Mislav Marohnić
817820e464 Merge pull request #36 from github/release-mgmt
Release management
2019-11-08 19:08:09 +01:00
Mislav Marohnić
e7bebaeebc Inject production OAuth client ID+secret into release 2019-11-08 18:57:22 +01:00
Mislav Marohnić
8deaf21520 Avoiding copying release body to public release 2019-11-08 18:57:22 +01:00
Mislav Marohnić
daf291b6bc No need for GITHUB_TOKEN to bump-homebrew-formula
The download URL is a public resource
2019-11-08 18:57:22 +01:00
Mislav Marohnić
558376b059 Updates to copy-release action 2019-11-08 18:57:22 +01:00
Mislav Marohnić
49f4003b7e Configure goreleaser.yml 2019-11-08 18:53:09 +01:00
Corey Johnson
7f70a342a3 Publish release for git tag 2019-11-08 18:53:09 +01:00
Mislav Marohnić
528ea6eee0 Merge pull request #53 from github/issue-status-view
Add `issue status`, `issue create`
2019-11-08 15:24:30 +01:00
Mislav Marohnić
25142d4895 Add issue create test 2019-11-08 15:20:24 +01:00
Mislav Marohnić
10c248d691 Merge remote-tracking branch 'origin/master' into issue-status-view 2019-11-07 18:46:18 +01:00
Mislav Marohnić
262976b830 Merge pull request #52 from github/pr-list
Add `pr list` command
2019-11-06 19:48:02 +01:00
Mislav Marohnić
b2c06caf51 Merge remote-tracking branch 'origin/master' into pr-list 2019-11-06 19:47:05 +01:00
Mislav Marohnić
fdee02e3e8 Merge pull request #47 from github/exec-cmd-error-info
Ensure git operations preserve their stderr in error output
2019-11-06 19:45:27 +01:00
Mislav Marohnić
5fcda2b5b5 Merge remote-tracking branch 'origin/master' into pr-list 2019-11-06 19:45:10 +01:00
Mislav Marohnić
524fe0a69b 🔥 last instance of mockOpenInBrowser 2019-11-06 19:41:18 +01:00
Mislav Marohnić
32e36d2fe0 Merge branch 'master' into exec-cmd-error-info 2019-11-06 19:36:12 +01:00