Mislav Marohnić
8a4fd432ea
Merge pull request #638 from doi-t/show-the-most-recent-pr
...
Only show the most recent PR for the current branch
2020-03-13 10:07:12 +01:00
Toshiya Doi
4c4aeb5ec6
Return the latest PR belonging to the current branch
2020-03-13 09:49:20 +09:00
Mislav Marohnić
8913f6466d
Merge pull request #625 from eddumelendez/add_author_flag_issues
...
Add filter issues by author
2020-03-12 19:06:17 +01:00
Eddú Meléndez
2a87dabf59
Remove unused fields
2020-03-10 10:17:22 -06:00
Eddú Meléndez
8e7ba907b1
Add filter issues by author
2020-03-09 18:50:23 -06:00
Mislav Marohnić
f9c32654e9
Fix setting homepage URL in repo create
2020-03-09 12:53:41 +01:00
Mike Rogers
50e886c5f8
sequental > sequential
2020-03-07 20:44:39 +00:00
Alisson Santos
7a0a6658d5
avoid nested ifs
2020-03-05 18:52:27 +01:00
Alisson Santos
101d985a16
remove duplicate from pages
2020-03-05 18:10:00 +01:00
Alisson Santos
dcedacd4f7
Remove duplicates
2020-03-05 13:55:36 +01:00
Mislav Marohnić
52cc04e300
Merge remote-tracking branch 'origin/master' into repo-create
2020-03-03 22:55:49 +01:00
Nate Smith
3d7733870e
Merge branch 'master' into repo-fork
2020-03-03 15:40:54 -06:00
Mislav Marohnić
a73880f5dd
Merge pull request #567 from cli/pr-selector-base
...
Fix detecting PR for current branch pushed to fork
2020-03-03 22:02:21 +01:00
Mislav Marohnić
be09717918
Add ability to repo create within an org
2020-03-03 21:49:47 +01:00
Mislav Marohnić
8deb0d8783
repo create NAME offers to set up when ran outside of a git repo
2020-03-03 21:07:51 +01:00
Nate Smith
fdf940eeba
Merge pull request #530 from doi-t/issue-467
...
Ability to differentiate pull requests by their state
2020-03-02 16:12:55 -06:00
Mislav Marohnić
201217d88a
Fix detecting PR for current branch pushed to fork
...
Now passing base repo as reference to `prSelectorForCurrentBranch()` so
that it doesn't have to (inexactly) determine the base repo itself and
risk it being different than the base repo determined during `pr
status/view`.
2020-03-02 11:35:20 +01:00
vilmibm
3019137133
no longer needed
2020-02-27 16:46:12 -06:00
vilmibm
7fad2d05fb
switch to alternate method for determining if repo already forked
2020-02-27 16:43:44 -06:00
vilmibm
256bdabf03
slight refactor
...
I didn't initially use GitHubRepo because it had the weird error
wrapping. I poked around and I think this function is leftover from a
vestigial GitHubRepoID function that used to be more single-purpose. I
took out the weird error handling so it could be reused and then used it
from the new GitHubRepoExists.
2020-02-26 16:48:29 -06:00
Mislav Marohnić
55b66feb42
Merge pull request #542 from Dasio/slice-initialization
...
Slice initialization
2020-02-26 20:02:06 +01:00
Mislav Marohnić
b02dac8f0b
Accept more repo fields via flags to repo create
2020-02-26 18:45:21 +01:00
Toshiya Doi
5f152a349d
Print merged and closed PRs of the current branch along with an opening PR
2020-02-27 00:07:48 +09:00
Toshiya Doi
8b31b283f5
Merge branch 'master' into issue-467
2020-02-26 15:37:32 +09:00
vilmibm
99ac0cb87d
add StubWithFixture helper
2020-02-25 16:26:51 -06:00
vilmibm
6eaab2562f
add repo fork command
2020-02-25 16:26:51 -06:00
rista404
2a42f61d8d
Use gray color for PR number if PR is a draft
2020-02-25 18:47:44 +01:00
Dasio
9289ab99f2
Use var syntax when empty struct is initialized
2020-02-24 22:33:22 +01:00
Mislav Marohnić
a544544141
Re-indent graphql query
2020-02-24 22:21:45 +01:00
Mislav Marohnić
ad0dedd1ac
Enable issue list pagination
...
Makes it possible to set a `--limit` greater than 100.
2020-02-24 22:18:31 +01:00
Dasio
8aa46c236e
Init slice with provided capacity if it's known in advance
2020-02-24 22:16:41 +01:00
Dasio
327dae95a3
Use break label instead of goto
2020-02-24 21:18:34 +01:00
Toshiya Doi
9c44eaeb6e
Define an order clause to sort PRs newest first
2020-02-25 01:27:19 +09:00
Toshiya Doi
b7893b1fd3
Query pullRequests of the current branch regardless of its state
2020-02-22 16:54:30 +09:00
Mislav Marohnić
9c00ac0224
Tweak verbose HTTP logging
...
- log headers only in DEBUG=api mode
- enable color output on stderr
- hide little-useful TLS debbuging info
- ensure all request headers are logged
2020-02-21 12:57:00 +01:00
Henrique Vicente
e7c88d0fb1
impr(verbose): using package httpretty to log requests on DEBUG.
2020-02-21 02:46:18 +01:00
vilmibm
dd57b891d3
add helper for stubbing repo resolve response
2020-02-12 08:48:04 -06:00
Mislav Marohnić
a710893fc1
Rename to cli/cli
2020-01-24 16:08:52 +01:00
Mislav Marohnić
b44dad2319
Merge remote-tracking branch 'origin/master' into no-errors-wrap
2020-01-23 16:46:56 +01:00
Mislav Marohnić
22fe0839fa
Merge remote-tracking branch 'origin/master' into ghrepo-interface
2020-01-23 14:19:10 +01:00
Mislav Marohnić
4f6dfee965
Merge remote-tracking branch 'origin/master' into pr-create-just-works-TM
2020-01-23 14:08:07 +01:00
Mislav Marohnić
9122bc181c
Migrate away from errors.Wrap()
...
Turns out the "standard" way of wrapping errors in Go is via
`fmt.Errorf("%w")`, which doesn't require an external package and also allows a
finer control of error sentence formatting.
2020-01-23 13:19:28 +01:00
Mislav Marohnić
1f90579d2a
Extract common interface for a GitHub Repository
...
Also define a handful of utility methods:
- `New(owner, repo)`
- `FullName`: the name slash owner pair
- `FromFullName`: parse the name slash owner pair
- `FromURL`: parse a GitHub.com URL
- `IsSame(r1, r2)`: compare two repositories
2020-01-22 22:44:46 +01:00
Nate Smith
340f747944
Merge pull request #242 from github/debug-api
...
Dump HTTP request/response bodies when `DEBUG=api`
2020-01-22 14:05:29 -06:00
vilmibm
8c84fe3e3c
just augment existing queries
2020-01-22 12:37:00 -06:00
Mislav Marohnić
0b0fd42ef3
Dump HTTP request/response bodies when DEBUG=api
2020-01-22 19:35:39 +01:00
Mislav Marohnić
a767fd7910
Add code comments for tricky parts
2020-01-22 18:37:50 +01:00
Mislav Marohnić
e2a825effb
Auto-fork on pr create if no pushable target found
2020-01-22 18:32:06 +01:00
Mislav Marohnić
2aaffc69a2
Clean up obsolete struct
2020-01-21 23:20:50 +01:00
Mislav Marohnić
6c49614db7
Fix tests
2020-01-21 22:56:15 +01:00