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
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
UmairShahzad
de77e78ef5
added pr count string before printing PRs
2020-02-14 14:15:07 +05:00
Anowar Islam
8f9574be35
added fix for empty body in pr preview
2020-02-13 01:43:51 -08:00
vilmibm
135c63aa36
remove --self for now
2020-02-11 20:46:46 -06:00
vilmibm
c93c5f7668
move determineBaseRepo to root
2020-02-11 19:44:49 -06:00
vilmibm
ad170118e4
use resolve remotes code in issue commands
2020-02-11 19:43:02 -06:00
vilmibm
f653dbb6b5
wrap and reuse the resolveToRemotes code from PR commands
2020-02-11 19:33:04 -06:00
Borna Butkovic
f0d8c65194
pr view, status, list parent repo instead of fork
2020-02-11 19:33:04 -06:00
Amanda Pinsker
e61b216b4f
Make approval statuses sentence case
2020-02-10 16:15:02 -08:00
Nicolas Martin
950144945f
Use glamour as markdown rendering backend for issue & pr previews
...
glamour uses the CommonMark compliant Goldmark markdown parser instead of
go-termd which is based on Blackfriday.
2020-02-06 00:20:16 +01:00
vilmibm
36397dbdc5
move checkout to its own file
2020-02-04 13:18:29 -06:00
vilmibm
d7bf83a82c
strip color, add whitespace
2020-01-30 14:00:43 -06:00
vilmibm
d81cf009f5
simpler repo context
2020-01-29 17:47:29 -06:00
vilmibm
86cb09fe84
Revert "print repo info for status commands"
...
This reverts commit d64dcdca95 .
2020-01-29 17:41:36 -06:00
vilmibm
d64dcdca95
print repo info for status commands
2020-01-29 15:50:04 -06:00
Mislav Marohnić
a710893fc1
Rename to cli/cli
2020-01-24 16:08:52 +01:00
Mislav Marohnić
c5960f0906
Merge remote-tracking branch 'origin/master' into ghrepo-interface
2020-01-23 16:36:22 +01:00