Commit graph

135 commits

Author SHA1 Message Date
Mislav Marohnić
e10ccefaf5
Merge pull request #667 from doi-t/view-the-current-state
Show the state (open, closed, merged) in issue view and pr view
2020-04-03 19:41:29 +02:00
Mislav Marohnić
734497a8d8
Code fixes informed by golangci-lint failures (#738) 2020-04-03 16:33:34 +02:00
Toshiya Doi
4c2f15fe37 Roll back the place of colorFuncForState 2020-04-02 23:58:28 +09:00
Toshiya Doi
0095fe9a13 Merge branch 'master' into view-the-current-state 2020-04-02 23:52:41 +09: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
Toshiya Doi
0ba0a0757d Merge branch 'master' into view-the-current-state 2020-03-20 18:16:47 +09:00
Nate Smith
51eb2cb345
Merge branch 'master' into pr-count 2020-03-18 09:26:05 -07:00
Mislav Marohnić
cb06812d19
Merge pull request #532 from mingrammer/consistent-printing
fix: inconsistent format between issue list and status
2020-03-18 11:59:17 +01:00
Toshiya Doi
7ceffd0827 Merge branch 'master' into view-the-current-state 2020-03-18 08:51:04 +09:00
vilmibm
e4b43b08b9 update usage text 2020-03-17 17:13:48 -05:00
vilmibm
00de6b9c09 switch defaults for issue view 2020-03-17 17:06:42 -05:00
Toshiya Doi
46a632c8f6 Fix utility function scopes 2020-03-18 04:52:03 +09:00
Toshiya Doi
e85259d84f Remove labels from the issue preview header
See https://github.com/cli/cli/issues/652#issuecomment-598940740
2020-03-18 04:42:50 +09:00
Toshiya Doi
9a6026e9fc Format PR/Issue states with color 2020-03-16 04:32:41 +09:00
Toshiya Doi
c8a72c3bcb Add a test for viewing an issue without labels in CLI 2020-03-16 04:26:32 +09:00
Toshiya Doi
caf26e4093 Show the issue state for viewing issues in CLI 2020-03-16 02:40:49 +09:00
Toshiya Doi
faa4bed67a Move colorFuncForState for a PR/issue state to the utils package 2020-03-16 02:32:11 +09:00
UmairShahzad
f51669e228 Merge remote-tracking branch 'origin/master' into pr-count 2020-03-14 19:02:51 +05:00
vilmibm
8769299731 titlebody prepopulation 2020-03-13 15:12:03 -05:00
Toshiya Doi
102cfdb1a2 Rearrange the order of command initialization 2020-03-13 23:59:18 +09:00
Toshiya Doi
5e3aa31cf1 Fix 'gh issue view' usage description 2020-03-13 23:58:41 +09:00
Eddú Meléndez
8e7ba907b1 Add filter issues by author 2020-03-09 18:50:23 -06:00
mingrammer
0d38f1f6dc fix: don't truncate field (tablewriter will do) 2020-03-07 22:06:47 +09:00
Mislav Marohnić
3d48d40b69 Simplify getTitle and rename it to listHeader 2020-03-05 13:08:21 +01:00
Mislav Marohnić
5518c013f3 Indicate that the default issue list state is "open" 2020-03-05 13:07:10 +01:00
UmairShahzad
945d4ffb55 Merge branch 'master' of https://github.com/cli/cli into pr-count 2020-03-04 00:09:35 +05:00
Billy Griffin
8340591ad3
Number is more readable 2020-02-27 11:23:37 -07:00
Billy Griffin
b18ea98436
Improve error message for issue URL with no args 2020-02-27 11:22:39 -07: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
Dasio
8aa46c236e Init slice with provided capacity if it's known in advance 2020-02-24 22:16:41 +01:00
Mislav Marohnić
38b58a4914 Respect explicit title & body with issue create --web 2020-02-24 13:41:46 +01: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
mingrammer
39ea067328 fix: inconsistent format between issue list and status 2020-02-23 18:36:49 +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
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
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
Anowar Islam
2c2c8a9991
added fix for empty body in issue preview 2020-02-13 01:44:03 -08:00
vilmibm
4f10a6d813 do not use local template files if overriding base repo 2020-02-12 08:57:55 -06:00
vilmibm
135c63aa36 remove --self for now 2020-02-11 20:46:46 -06:00
vilmibm
ad170118e4 use resolve remotes code in issue commands 2020-02-11 19:43:02 -06: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
TaKO8Ki
6f2d7c5dd1 fx typo 2020-02-02 17:23:51 +09:00
vilmibm
d7bf83a82c strip color, add whitespace 2020-01-30 14:00:43 -06:00