Commit graph

175 commits

Author SHA1 Message Date
vilmibm
44acdd4ec3 Merge branch 'master' into pr-status-no-commits 2020-03-30 12:04:02 -05:00
Mislav Marohnić
beb0a6a322
Merge pull request #683 from cli/pr-status-unicode
Add unicode to pr status
2020-03-26 13:30:26 +01:00
vilmibm
f4b8851011 Merge remote-tracking branch 'origin/master' into pr-status-no-commits 2020-03-25 12:00:58 -05:00
Nate Smith
e4b8ae0ec4
Merge pull request #665 from cli/preview-default
switch {pr,issue} view default
2020-03-25 11:32:46 -05:00
Mislav Marohnić
88cbcc9ec5 Merge remote-tracking branch 'origin/master' into pr-status-unicode 2020-03-25 09:06:27 +01:00
Mislav Marohnić
11327030e7 Tweak whitespace printing in pr status 2020-03-25 09:05:51 +01:00
Amanda Pinsker
7c73cf88ae
Remove formatting from Fprint
Co-Authored-By: Mislav Marohnić <mislav@github.com>
2020-03-24 15:01:21 -07:00
Nate Smith
f2e5269158
Merge pull request #694 from cli/respect-b
respect -B when checking for existing pull requests
2020-03-24 15:14:28 -05:00
vilmibm
121173c330 better error reporting + catch for empty repo 2020-03-23 15:21:58 -05:00
vilmibm
2895252e3b respect -B when checking for existing pull requests 2020-03-23 14:26:31 -05:00
Mislav Marohnić
9786498a25 Respect base repository when passing URL argument to pr checkout/view
Previously, the repository owner+name component of the URL was ignored
and only the pull request number was read. Now, the URL dictates which
base repository will be used.
2020-03-20 18:06:40 +01:00
Amanda Pinsker
57942fcaf8 Add unicode for merge states back in 2020-03-19 13:30:35 -07:00
Amanda Pinsker
be7ffe3099 Tweak unicode some more 2020-03-19 13:16:00 -07:00
Amanda Pinsker
ef17aa520d Add unicode to pr status 2020-03-19 10:33:34 -07:00
Nate Smith
51eb2cb345
Merge branch 'master' into pr-count 2020-03-18 09:26:05 -07:00
Mislav Marohnić
a40fb04fc3 Allow pr status use when on detached HEAD 2020-03-18 14:14:45 +01:00
Mislav Marohnić
bec667964c Allow pr status -R <repo> usage from outside of a git repo 2020-03-18 14:13:17 +01:00
vilmibm
e4b43b08b9 update usage text 2020-03-17 17:13:48 -05:00
vilmibm
c30b482bf0 switch defaults for pr view 2020-03-17 17:06:42 -05:00
UmairShahzad
f51669e228 Merge remote-tracking branch 'origin/master' into pr-count 2020-03-14 19:02:51 +05:00
Toshiya Doi
4c4aeb5ec6 Return the latest PR belonging to the current branch 2020-03-13 09:49:20 +09:00
Toshiya Doi
bc27ba2a75 Only show the most recent PR for the current branch 2020-03-13 00:25:17 +09:00
rista404
e803470b03 Print merged/closed in the same line as PR title 2020-03-10 20:56:45 +01:00
rista404
e739d95c93 Show state instead of checks for closed/merged PRs 2020-03-09 23:59:34 +01:00
Mislav Marohnić
3d48d40b69 Simplify getTitle and rename it to listHeader 2020-03-05 13:08:21 +01:00
Mislav Marohnić
1ba577ca36 Merge remote-tracking branch 'origin/master' into pr-count 2020-03-05 12:31:05 +01: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
UmairShahzad
945d4ffb55 Merge branch 'master' of https://github.com/cli/cli into pr-count 2020-03-04 00:09:35 +05: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
Mislav Marohnić
adf2177a24
Merge pull request #474 from politas/fix/StripHash
Handle properly passed #<num> as equivalent to <num> for PRs and Issues
2020-02-27 12:15:00 +01:00
Myk
038e5e5342 Accept #<num> syntax as issue/PR number 2020-02-27 12:11:49 +01:00
UmairShahzad
3c687ed111 moved getTitle to common; changed title string 2020-02-27 00:57:42 +05:00
UmairShahzad
b8a7c87142 Merge remote-tracking branch 'cli/master' into pr-count 2020-02-27 00:11:38 +05: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
rista404
2a42f61d8d Use gray color for PR number if PR is a draft 2020-02-25 18:47:44 +01:00
Toshiya Doi
957adc1cff Change a PR number's color based on its PR status 2020-02-25 14:33:39 +09:00
Toshiya Doi
28460e4b7e Change a PR state color 2020-02-25 01:26:07 +09:00
Mislav Marohnić
ac94ae5872 Return interface from determineBaseRepo(), not pointer to interface
It's sufficient to return a value of type `ghrepo.Interface` instead of
a pointer to an interface. This avoids having to use `*` whenever we are
passing the result of `determineBaseRepo()` into another function that
accepts a `ghrepo.Interface`.
2020-02-24 13:40:58 +01:00
Toshiya Doi
b965683594 Append a pull request status for the current branch 2020-02-22 16:56:30 +09:00
Mislav Marohnić
4c3e498021 Fix column alignment and truncation for Eastern Asian languages
- Ensure that text is never truncated mid-character, which would result
  in garbled text

- Ensure that columns in `issue/pr list` output align properly
2020-02-20 18:52:17 +01:00
Mislav Marohnić
13dbfa44c2 go fmt 2020-02-20 13:55:55 +01:00
Mislav Marohnić
861b231344 Have --state=closed include merged PRs
Since we currently offer no way of querying PRs by combining multiple
states with an OR, the best way to handle the `closed` state is to match
what the web UI is doing; that is to include merged PRs.
2020-02-20 13:53:44 +01:00
UmairShahzad
1a485ddd2e Merge remote-tracking branch 'cli/master' into pr-count 2020-02-20 01:57:44 +05:00
UmairShahzad
bb0fe46db6 total match count in title 2020-02-20 01:54:51 +05:00
Nate Smith
c65ac4ae9d
Merge branch 'master' into glamour-markdown 2020-02-18 14:23:49 -06:00
Dmitry Sharshakov
b67bb55383 Correct typoes 2020-02-16 17:28:03 +03:00
UmairShahzad
94ef4bb377 switched title to fn literal 2020-02-16 12:26:36 +05:00
UmairShahzad
906f49659f updated title and tests 2020-02-15 22:37:13 +05:00