Mislav Marohnić
203397baf9
Add tests for pr merge --auto/--disable-auto
2021-02-17 15:24:52 +01:00
Mislav Marohnić
ddddd95d73
Allow pr merge --body '' to prevent having the default body applied
2021-02-17 14:38:33 +01:00
Mislav Marohnić
12cf8ef65b
Separately query viewerMergeBodyText for GHE compatibility
...
GHE versions 2.22 and older will not have this GraphQL field. Avoid the
resulting error and have the command proceeed with empty text as the
default.
2021-02-17 14:06:27 +01:00
Mislav Marohnić
2b36b09abf
Update wording for auto-merge confirmation
...
Co-authored-by: Amanda Pinsker <ampinsk@github.com>
2021-02-17 12:30:04 +01:00
Mislav Marohnić
3b650a8c56
Fix typo
2021-02-16 16:28:23 +01:00
Mislav Marohnić
57abe45b96
Let the server choose the commit subject for squashed merge
...
For single-commit PRs, the commit subject will be the subject of the
head commit and the PR number. For multi-commit PRs, the commit subject
will be the PR title and PR number. Instead of trying to replicate this
logic client-side, omit the `commitHeadline` param and let the server
apply defaults appropriately.
Reverts https://github.com/cli/cli/pull/1627
2021-02-16 16:17:37 +01:00
Mislav Marohnić
67bfedd56b
Add pr merge --auto
2021-02-16 16:01:22 +01:00
Cristian Dominguez
f75bd7280f
Pre-populate default merge commit message if no body was provided
2021-02-16 16:01:22 +01:00
Sam Coe
4ea8d25b85
Fix tests and polish
2021-02-16 15:59:44 +01:00
Cristian Dominguez
d57cb56945
Allow editing commit msg when squash merging a PR
2021-02-16 15:59:06 +01:00
Sam
4e5aa91fac
Merge pull request #2949 from cli/edit-improvements
...
Change behavior of slice flags for issue edit and pr edit commands
2021-02-12 15:02:26 -08:00
Sam Coe
4fdf28d8a4
Change behavior of slice flags for issue edit and pr edit commands
2021-02-12 14:42:21 -08:00
Sam
a84145eb68
Merge pull request #2940 from cli/pr-edit
...
Edit pull request command
2021-02-12 10:21:11 -08:00
Sam Coe
a47ee660a7
Pr edit command
2021-02-12 10:08:44 -08:00
Sam
4109af9b49
Merge pull request #2915 from cli/issue-edit
...
Edit issue command
2021-02-12 09:50:11 -08:00
Mislav Marohnić
6b1e6db81b
Merge pull request #2951 from cli/api-docs
...
Add more examples to `api` docs
2021-02-12 12:58:48 +01:00
Mislav Marohnić
335f0117c0
Add more examples to api docs
...
- Clarify that fields need to be in "key=value" format
- Headers need to be in "key:value" format
- Contrast POST vs GET requests with params in examples
- Add an example of how to add HTTP headers
- Use backticks where applicable
2021-02-11 19:17:10 +01:00
Sam Coe
cd9f211826
Remove unused code
2021-02-09 09:48:58 -08:00
Mislav Marohnić
5af2dca351
Merge pull request #2929 from cli/brew-upgrade-suggestion
...
Suggest `brew upgrade gh` when new version detected
2021-02-09 18:39:42 +01:00
Sam Coe
4ed94c2a06
Fix up flag descriptions
2021-02-08 09:59:30 -08:00
Sam Coe
68f71d82a0
Remove webmode
2021-02-08 09:17:04 -08:00
Mislav Marohnić
feb4acc2c0
Suggest brew upgrade gh when new version detected
...
When the update notifier is enabled and a new version was detected, show
a Homebrew upgrade notice if:
- the release was at least 24 hours ago; and
- the current `gh` binary is under the Homebrew prefix.
2021-02-08 13:57:08 +01:00
Mislav Marohnić
f43fb26acf
Merge pull request #2926 from xvqxy/verbose_build
...
Display output of build commands.
2021-02-06 13:31:07 +01:00
xvqxy
9920ea97f6
Display output of build commands.
...
This fixes #2920 .
Print out output of executed command to stdout/stderr.
2021-02-06 09:49:53 +01:00
Mislav Marohnić
092cc4c4bc
Merge pull request #2909 from cli/docs-pr-create
...
Explain how to link an issue in `pr create`
2021-02-05 10:02:43 +01:00
Sam Coe
b366802aa1
Edit issue command
2021-02-04 10:54:34 -08:00
Mislav Marohnić
d0553bbc9d
Merge pull request #2908 from cli/docs-repo-create
...
Improve `repo create` docs
2021-02-04 12:56:39 +01:00
Mislav Marohnić
72a0ad49cf
Merge pull request #2910 from cli/docs-release-create
...
Clarify handling of git tags during `release create`
2021-02-04 12:49:20 +01:00
Mislav Marohnić
481ec92ebf
Merge pull request #2898 from Ma3oBblu/add-gist-view-files
...
add --files to list filenames in gist (#2885 )
2021-02-03 22:52:09 +01:00
Mislav Marohnić
622317ee89
Tweak gist docs
2021-02-03 22:39:58 +01:00
Ruslan Gilyazetdinov
907524f459
add --files to list filenames in gist ( #2885 )
2021-02-03 22:39:58 +01:00
Mislav Marohnić
9dcf47d5d1
release create: clarify handling of git tags
2021-02-03 22:33:37 +01:00
Mislav Marohnić
47baf8fb10
pr create: explain how to link an issue
2021-02-03 22:17:31 +01:00
Mislav Marohnić
ab21dbeaf0
Improve repo create docs
...
- Clarify what will happen when in the git directory vs. out;
- List requirements for non-interactive use;
- Demonstrate how to turn issues/wiki off.
- Misc. formatting tweaks
2021-02-03 22:05:06 +01:00
Mislav Marohnić
962791bf27
Merge pull request #2888 from Ma3oBblu/gist-view-raw-fix
...
remove gist description from single file raw view (#2886 )
2021-02-02 15:12:12 +01:00
Mislav Marohnić
3f7b1387e5
Improve gist view rendering
...
- Separate out logic to render a single file
- Render directly to stdout instead of to string slice
- Normalize whitespace between files; ensure no excessive trailing whitespace
- Add terminal pager support
- Sentence-case for flags
2021-02-02 14:21:48 +01:00
Ruslan Gilyazetdinov
bf4370bc3a
linter fixes
2021-02-02 10:56:29 +03:00
Ruslan Gilyazetdinov
232dc7b7fa
change condition for single file, remove empty lines in single file mode
2021-02-02 10:54:07 +03:00
Nate Smith
de5c04f721
Merge pull request #2856 from cli/fix-rpms
...
run createrepo via docker
2021-02-01 13:20:51 -08:00
Ruslan Gilyazetdinov
8e86129e2e
remove gist description from single file raw view ( #2886 )
2021-02-01 18:49:26 +03:00
Mislav Marohnić
7e8348a68f
Remove duplicate link to report a security vulnerability
...
We already have a `.github/security.md` file which auto-generates a link in the issue template chooser
2021-02-01 13:18:15 +01:00
Mislav Marohnić
c8704260b1
Add additional resources to issue template chooser
2021-02-01 13:16:33 +01:00
Mislav Marohnić
d771bef106
Merge pull request #2858 from dpromanko/dpromanko/remove-set-cmd-prepare
...
Remove use of run.SetPrepareCmd in tests
2021-01-28 22:38:50 +01:00
Mislav Marohnić
051fbbc1e1
Merge remote-tracking branch 'origin' into dpromanko/remove-set-cmd-prepare
2021-01-28 22:00:08 +01:00
Mislav Marohnić
d86cfe4627
Unpublish SetPrepareCmd
2021-01-28 21:59:30 +01:00
Mislav Marohnić
88c27934a1
Update some stubs to be closer to how git behaves
2021-01-28 21:58:45 +01:00
Nate Smith
d91b3121c8
Merge pull request #2839 from kevinmbeaulieu/kb/delete-issue-cmd
...
Add `issue delete` command
2021-01-27 16:41:30 -08:00
Kevin Beaulieu
4b036f6675
Skip confirmation for non-interactive contexts
2021-01-27 16:31:23 -08:00
Devon Romanko
2964895a77
fix test behavior changes from migration to run.Stub
2021-01-27 18:46:29 -05:00
Sam
11d3972bac
Merge pull request #2859 from cli/hidden-comments
...
Do not display minimized comments
2021-01-27 11:20:01 -08:00