Tom Lazar
39d7697169
add support for hub download --include flag
2019-10-24 18:43:23 -05:00
Mislav Marohnić
03533a167e
Merge pull request #2323 from towoe/pr-doc
...
[pr] Update argument description
2019-10-22 19:21:54 +02:00
Mislav Marohnić
ece199e65f
Merge branch 'pr-checkout-fix'
2019-10-22 17:57:15 +02:00
Mislav Marohnić
6dc2d7945a
[checkout] Avoid overriding existing branch merge config
2019-10-22 17:56:07 +02:00
Mislav Marohnić
9170180900
[checkout] Handle case when PR matches the current branch
2019-10-22 17:48:58 +02:00
Tobias Wölfel
ddf4d74bde
[pr] Update argument description
2019-10-22 17:34:52 +02:00
Mislav Marohnić
cd81a7bada
Merge pull request #2313 from sinisterstuf/no-coauthor
...
Strip co-author from PR descriptions
2019-10-21 23:56:42 +02:00
Mislav Marohnić
1776120510
Tweak "co-authored-by"/"signed-off-by" regex
...
This edit makes sure that the code is greppable when "co-authored-by" or "signed-off-by" search terms are used.
2019-10-21 23:44:32 +02:00
Mislav Marohnić
87a31b093b
Merge branch 'gist'
2019-10-21 22:25:25 +02:00
Mislav Marohnić
f893b32c8f
Add publish scripts
...
[ci skip]
2019-10-21 22:24:58 +02:00
Mislav Marohnić
0c246f6ef5
[gist] Fix formatting of examples in docs
2019-10-21 22:23:14 +02:00
Mislav Marohnić
a93eb6e2f6
[gist] Fix docs formatting
...
Ref. 1d64937256
2019-10-21 22:22:59 +02:00
Mislav Marohnić
9072fd94a5
[gist] List in help docs
2019-10-21 22:21:50 +02:00
Phil Dibowitz
5636676c98
put check back
2019-10-21 10:47:57 -07:00
Siôn le Roux
959ee10b25
Don't match end of line
...
You can't hafe EOL multiple times on the same line...
2019-10-19 00:15:22 +02:00
Siôn le Roux
5e2dda9e3e
Stop match at first new-line
2019-10-18 23:59:54 +02:00
Siôn le Roux
334c4e56b1
Include "Co-authored-by" in pull request feature test case
2019-10-18 23:54:39 +02:00
Siôn le Roux
feb4cb5c71
Try with less escaping
2019-10-18 23:47:58 +02:00
Siôn le Roux
f8c531a85f
Strip co-author from PR descriptions
...
The Signed-off-by string already gets stripped, so I extended the
regular expression to also match Co-authored-by.
Resolves #2311
2019-10-18 23:35:03 +02:00
Phil Dibowitz
1d64937256
Various fixes
...
* Fix formatting of long-help
* Print out files in alphabetical order
* Allow not specifying file if there's only one
2019-10-18 09:10:11 -07:00
Mislav Marohnić
6650b0cb0f
[gist] Test that error message lists available filenames
2019-10-18 13:29:54 +02:00
Mislav Marohnić
55de0a03da
[gist] List shorthand flags in usage synopsis
2019-10-18 13:28:24 +02:00
Mislav Marohnić
3567669852
[gist] Add test for reading from stdin
2019-10-18 13:20:21 +02:00
Mislav Marohnić
b7dc8e0b0e
[gist] Support `--browse`, `--copy`, and `--noop` flags
2019-10-18 13:19:49 +02:00
Mislav Marohnić
5f5edb65ef
[gist] Assert gist payload in tests
2019-10-18 13:10:21 +02:00
Mislav Marohnić
5dd4ac94b4
[gist] Remove the `--json` flag
...
The `gist show --json` representation wasn't the full JSON payload of
a gist. For programmatic use of gists, `hub api` is better:
hub api gists/:id | jq '.files | keys'
This will output JSON exactly as it's received from the API and it frees
us from having to reimplement parts of this functionality within `gist`.
2019-10-18 12:29:30 +02:00
Mislav Marohnić
603a731aa4
[gist] Use first configured API hosts instead of prompting
...
If hub is configured with multiple hosts (usually including GitHub
Enterprise instances), every invocation to `hub gist` would prompt to
select a host. Assume that people want to use the first configured host
by default (they can change it via GITHUB_HOST).
2019-10-18 12:16:28 +02:00
Mislav Marohnić
cb22257c0c
[gist] Add tests for error scenarios
2019-10-18 12:10:19 +02:00
Mislav Marohnić
7f02e371f2
[gist] Tweaks docs
2019-10-18 11:59:09 +02:00
Phil Dibowitz
597604d777
fix help
2019-10-18 00:11:29 -07:00
Phil Dibowitz
2507852e48
update tests
2019-10-18 00:09:52 -07:00
Phil Dibowitz
194be2ae9f
code review bits
2019-10-17 23:59:27 -07:00
Jamie Strusz
c319e3c057
Make hub lowercase
2019-10-16 20:06:50 -05:00
Mislav Marohnić
afdd78510c
Merge pull request #2286 from github/proxy-from-env
...
Support HTTPS_PROXY, NO_PROXY from environment
2019-10-10 15:40:12 +02:00
Mislav Marohnić
f4ab8f835f
Merge pull request #2299 from kerolloz/docs
...
[docs] Add link to apt package manager
2019-10-10 14:09:58 +02:00
Kerollos Magdy
0434b5d3b6
[docs] Add link to apt package manager
...
Add a link to the apt package manager from Debian man pages.
2019-10-09 19:51:45 +02:00
Mislav Marohnić
11b467bd58
Merge pull request #2297 from tomlazar/show-format
...
implement format for `pr show`
Fixes #2288
2019-10-08 20:54:57 +02:00
Mislav Marohnić
2158b17a71
[pr] Improve docs
...
[ci skip]
2019-10-08 13:17:43 +02:00
Mislav Marohnić
48092d4f5e
[pr show] Avoid duplicate API requests
2019-10-08 13:02:35 +02:00
Tom Lazar
dcf47d6cae
add format option to `git pr show`
2019-10-07 20:27:08 -05:00
Mislav Marohnić
9e7f3920db
[gist] Rename variables to camelCase
2019-10-07 13:51:38 +02:00
Mislav Marohnić
dffd80c585
[gist] Print files in consistent alphabetical order
2019-10-07 13:19:25 +02:00
Mislav Marohnić
ecea276617
[gist] Enable command outside the context of a repo
2019-10-07 12:49:09 +02:00
Mislav Marohnić
f6ebe22633
[gist] Improve error handling on create operation
2019-10-07 12:31:43 +02:00
Phil Dibowitz
c9f3dc0c23
Code review fixes
...
* Stop using GenericAPIRequest
* Move GH interactions and structs to `client.go`
* Catch scopes problems
2019-10-05 16:11:54 -07:00
Mislav Marohnić
51a256596e
Merge pull request #2291 from sinisterstuf/fork-completions
...
Add completions for git fork
2019-10-04 11:34:48 +02:00
Siôn le Roux
f32583785f
Update tests to include new bash completion options for git fork
...
Now that there are 3 different flags all starting with the same two
dashes, the previous test case (that pressing Tab will expand to
--no-remote) will fail.
The previous test case has been replaced with one that expects a list of
completion options matching those provided for git fork.
2019-10-03 21:53:57 +02:00
Siôn le Roux
5f5dd4c9e2
Make --no-remote and --remote-name completions mutually exclusive
...
Because it wouldn't make sense to set a name for a remote when you ask
it not to add a remote (or vice versa) these two flags are mutually
exclusive.
For lack of an idea for a more elegant solution, I've made it so that
whenever either of them matches, the other will also be dropped from the
available flags list. This works perfectly for now but will probably
need to be revisited if any other such parameters are added in future.
2019-10-03 21:42:00 +02:00
Siôn le Roux
1d209b896f
Don't suggest completions for git fork free-text arguments
...
The --remote-name and --org parameters to git fork expect arguments
which can be considered free text because the user has to suggest a
name, so we can't provide suggestions there.
If one of those two was the previous word then we clear completion
suggestions until a free-text word has been entered, allowing the user
to add their own input there.
2019-10-03 21:29:23 +02:00
Siôn le Roux
1a4bd7b974
Add --org flag to bash completion for git fork
...
Because this is an array of flags now, adding new flags is as simple as
adding more elements to the array and to the case statement.
2019-10-03 21:18:18 +02:00