Commit graph

347 commits

Author SHA1 Message Date
wingkwong
81462d1dfa feat: add gist create command test case #397 2020-02-25 13:12:01 +08:00
wingkwong
386caef536 feat: add gist create command#397 2020-02-25 01:26:44 +08: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
Mislav Marohnić
b5d0b7c640
Merge pull request #523 from cli/title-body-web
Respect title & body from arguments to `pr create -w`
2020-02-20 22:53:40 +01:00
Mislav Marohnić
1a82e39ba9 Respect title & body from arguments to pr create -w 2020-02-20 22:48:04 +01: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
Nate Smith
57eb1d1d45
Merge pull request #505 from cli/completion-error-handling
Make sure to handle errors when generating completions
2020-02-19 08:52:34 -06:00
Mislav Marohnić
6424e8c92a Make sure to handle errors when generating completions 2020-02-19 15:39:33 +01:00
Mislav Marohnić
f6c9e7b4af
Merge pull request #497 from ShahzadUmair/fix-template
Explicitly replace empty body with default template
2020-02-19 15:04:53 +01:00
Nate Smith
f6856d9783
Merge pull request #483 from cli/pr-create-web-base
Respect overriden base branch in `pr create --web`
2020-02-18 16:11:39 -06:00
UmairShahzad
12216fee8c reset to template if body is empty 2020-02-19 02:16:12 +05:00
Nate Smith
c65ac4ae9d
Merge branch 'master' into glamour-markdown 2020-02-18 14:23:49 -06:00
Mislav Marohnić
408b565fd9 Allow setting version via ldflags again 2020-02-18 13:47:57 +01:00
Colin Arnott
de6e99aa75
command: default to toolchain version
Since the Go toolchain is able to extract the module version at build
time, we should use that as a default instead of DEV. This means
customers installing via go-get will get the correct version.

Unfortunately, the toolchain does not store when the build occurs, so
BuildTime now defaults to the empty string. It is still set if build
officially, just not for go-get.
2020-02-18 07:55:54 +00:00
Mislav Marohnić
96ba2d27d8 Respect overriden base branch in pr create --web 2020-02-17 14:14:37 +01:00
Dmitry Sharshakov
b67bb55383 Correct typoes 2020-02-16 17:28:03 +03:00
Nate Smith
96dc4376a1
Merge pull request #429 from cli/co-drawing-board
revert pr checkout branch prefixing
2020-02-13 17:37:42 -06:00
Nate Smith
2e7feddcc4
Merge pull request #362 from cli/cross-repo-create
Cross repo pr create
2020-02-13 17:23:47 -06:00
vilmibm
c5a511a2d1 Revert "prefix branch names for local pr checkout"
This reverts commit 5b8d7c1841.
2020-02-13 17:16:53 -06:00
Anowar Islam
2c2c8a9991
added fix for empty body in issue preview 2020-02-13 01:44:03 -08:00
Anowar Islam
8f9574be35
added fix for empty body in pr preview 2020-02-13 01:43:51 -08:00
vilmibm
212dc1da1d properly specify head ref for cross-repo/same-branch 2020-02-12 16:11:04 -06:00
vilmibm
2ff31909cd use new helper 2020-02-12 11:33:24 -06:00
vilmibm
4f10a6d813 do not use local template files if overriding base repo 2020-02-12 08:57:55 -06:00
vilmibm
6732aa9725 fix tests 2020-02-12 08:48:25 -06:00
vilmibm
a998a650cd still WIP, need to pause and refactor 2020-02-12 08:15:10 -06:00
vilmibm
c8a4ac66d8 start on fixing tests 2020-02-11 21:56:20 -06: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
vilmibm
22be13d8d5 move resolveRemotesToRepos to context 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
1790d14c61
Update tests to reflect content change 2020-02-10 16:44:37 -08: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
5b8d7c1841 prefix branch names for local pr checkout 2020-02-04 17:49:02 -06:00
vilmibm
36397dbdc5 move checkout to its own file 2020-02-04 13:18:29 -06:00
Nate Smith
c03b0d110d
Merge pull request #291 from HowJMay/fix_typos
fix: Fix typos
2020-02-03 11:17:37 -06:00
TaKO8Ki
6f2d7c5dd1 fx typo 2020-02-02 17:23:51 +09:00
HowJMay
c517fd79b9 fix: Fix typos
Fix typos in files
2020-02-02 01:49:11 +08:00
vilmibm
d7bf83a82c strip color, add whitespace 2020-01-30 14:00:43 -06:00
vilmibm
34248f9892 fix tests 2020-01-29 17:51:18 -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
Nate Smith
6a6a6cc60f
Merge pull request #274 from cli/fix-change-link-fo-realz
Fix `gh version` printing the correct changelog link
2020-01-29 10:31:08 -06:00
Mislav Marohnić
2a49efc789 Fix gh version printing the correct changelog link
Previously, the version string didn't match the `vX.Y.Z` pattern because
the wrong variable was passed to `changelogURL`.
2020-01-29 16:03:10 +01:00