Граф коммитов

491 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić c6425bfc38 Fix `git --(exec|html|man|info)-path`
When any of these global flags are passed, don't try to decorate the
output as if `git help` was invoked.

Fixes https://github.com/github/hub/issues/1446
2017-06-26 20:22:11 +02:00
Mislav Marohnić 01c3099abe Fix crash in `WorkdirName` when within bare git repo
`git rev-parse --show-toplevel` returns an empty string with success
status when inside a bare git repo.

This avoids the go crash and also tweaks `hub issue` and `hub
pull-request` to work even if current working directory name couldn't be
obtained because it's only used for looking up issue/PR templates, which
isn't critical functionality.

Fixes https://github.com/github/hub/issues/1331
2017-06-26 20:22:11 +02:00
Josh Betz c5bf224992 Fix test data for newly sorted help text 2017-06-23 11:52:51 -05:00
Mislav Marohnić e3ad4ef7e5 Fix requesting pull request reviewers
The expected HTTP status code is 201

Fixes #1463
2017-05-18 13:19:02 +02:00
Mislav Marohnić 6a48391668 Merge pull request #1475 from eljobe/feature/go1.8
Upgrade to Go 1.8
2017-05-17 13:37:46 +02:00
Mislav Marohnić b13006826a Merge pull request #1472 from eljobe/fix/bash-completion-test
Fix bash completion test on MacOS X
2017-05-11 10:26:16 +02:00
Pepper Lebeck-Jobe 71fa8dad8f
Upgrade to Go 1.8
The only thing that has substansively changed is that Go 1.8 handles
redirect logic more safely than previous versions. This means we can
drop our special handling to avoid following redirects to other
domains. We were only doing that to protect against the possibility
of leaking auth headers. With Go 1.8, the auth headers are not
forwarded when following a redirect to another domain, so we don't
need our special handling any more.

As long as people are attempting to build with the Makefile, the new
check_go_version script should cause the build to stop if our
collaborators aren't using at least version 1.8 of go.
2017-05-11 13:24:04 +09:00
Pepper Lebeck-Jobe 3b04080f94
Remove unneeded assignment
The useless assignment was causing the cucumber test suite to fail
even when the completion scenarios were skipped.
2017-05-09 21:08:26 +09:00
Pepper Lebeck-Jobe 078583db0c
Fix bash completion test on MacOS X
However my git installation was run, it installed the
git-completion.{bash,zsh} scripts under
"${GIT_PREFIX}/contrib/completion/" instead of any of the paths that
this test case was expecting.

To make matters worse, the only way to know that this was the problem
was that each scenaro failed with a message about timing out while
waiting for completion to happen in tmux. Just in case there are
other paths out there where the git-distributed completion scripts
may live, I've also added some detection logic to raise an exception
during the "Given" clause of the scenario if we cannot find the
git-distributed bash completion scripts in any of the places we're
looking for them. This would have made it a lot easier to diagonse
the failures.
2017-05-09 20:50:27 +09:00
Pepper Lebeck-Jobe 2591ca4588
Allow the unsorted expansion for the fish shell
Before this change, the `pu` would sometimes expand to `pull
pull-request push` if the order isn't important, we should take this
fix.

However, if the order is important, we should probably switch the
expectation such that the options are presented alphabetically as
observed.
2017-05-09 20:10:57 +09:00
Mislav Marohnić 9a929485e8 Merge remote-tracking branch 'origin/master' into tomasv-request-reviewers-2 2017-04-24 17:57:37 +02:00
Mislav Marohnić d38f71b5eb Fixes to `Accept` header expectations in tests 2017-04-24 17:53:52 +02:00
Mislav Marohnić 39bd77179d Opt into "black-cat-preview" for all API requests
This allows us to access extra functionality around PR reviews.
2017-04-24 17:45:05 +02:00
Mislav Marohnić 76631ce551 Merge pull request #1403 from walles/walles/hub-review
Add a "hub pr checkout" command
2017-04-18 12:03:31 +02:00
Tomas Varneckas 0fad51944f
Add support for review requests in pull-request command 2017-04-17 18:34:54 +03:00
Mislav Marohnić 629d13908f Merge branch 'no-prerelease' 2017-04-10 23:09:52 +02:00
Mislav Marohnić acc85a0aa9 Make it `release --exclude-prereleases` (plural)
This is for consistency with `--include-drafts` (also plural).
2017-04-10 23:09:11 +02:00
Mislav Marohnić 6be9d54fc2 Reuse most logic betwen `checkout` and `pr` commands 2017-04-08 22:17:18 +02:00
Mislav Marohnić 19a5167d1a Simplify remote lookup in `fork` 2017-04-08 20:57:37 +02:00
Johan Walles cb9888d58d Don't expect any -f or -q options
We don't support them, and we don't expect them to show up.
2017-04-08 10:43:48 +02:00
Johan Walles 1aa529397f Remove unhelpful test
With "hub checkout" you had to write the complete URL to the PR, which
made it possible to type the wrong owner/repo there. This check covers
that case.

Nowadays, when you only enter the PR number you can't mess up that way
any more, and this test lacks meaning.
2017-04-08 10:43:48 +02:00
Johan Walles f9e49847c6 Pass the first cucumber test! 2017-04-08 10:43:48 +02:00
Johan Walles 625bee326f Add missing PR URL in Github responses 2017-04-08 10:43:48 +02:00
Johan Walles 915db7a06b Add missing PR URL 2017-04-08 10:43:48 +02:00
Johan Walles bcfce1b580 Cucumber: Add to Background that we're already authenticated 2017-04-08 10:43:48 +02:00
Johan Walles dcccc204f9 Add missing Background for "pr" feature
We need to be in a git repo for the tests to work.
2017-04-08 10:43:48 +02:00
Johan Walles 7f5c0fa627 Remove more instances of -f and -q 2017-04-08 10:43:48 +02:00
Johan Walles a8ac70757d Don't expect "hub pr checkout" to support -f or -q 2017-04-08 10:43:48 +02:00
Johan Walles 55a6794a68 Add tests for hub pr checkout
Next step is to actually run these tests...
2017-04-08 10:43:48 +02:00
Marc Abramowitz 031bf45142 Address comments from @mislav 2017-03-23 09:33:31 -07:00
Marc Abramowitz 33f2eb64d8 Update No origin git remote found error msg 2017-03-08 22:27:41 -08:00
Marc Abramowitz 0b6cf8a456 Add scenario for fork with --remote-name
Scenario: Fork the repository with new remote name specified
2017-03-08 22:15:42 -08:00
Marc Abramowitz 8a4d8dd0eb fork: Add --remote-name option
Allows the user to choose the remote name for their fork instead of
always using their GitHub username. This is useful for workflows where
folks name the remote for their private fork origin `origin` and
the upstream repo remote is named `upstream`. We happen to use this
workflow at work, because it makes the remote names more predictable and
easy to manage (you always push your new commits to `origin` rather than
a remote name that is dependent on your username).

```
$ git remote -v
upstream	git@github.com:github/hub (fetch)
upstream	git@github.com:github/hub (push)

$ ./bin/hub fork --remote-name=origin
Updating origin
From ssh://github.com/github/hub
 * [new branch]      1.11-stable     -> origin/1.11-stable
 * [new branch]      1.12-stable     -> origin/1.12-stable
 * [new branch]      2.2-stable      -> origin/2.2-stable
 * [new branch]      code-coverage   -> origin/code-coverage
 * [new branch]      gh-pages        -> origin/gh-pages
 * [new branch]      master          -> origin/master
 * [new branch]      travis-packages -> origin/travis-packages
new remote: origin

$ git remote -v
origin	git@github.com:msabramo/hub.git (fetch)
origin	git@github.com:msabramo/hub.git (push)
upstream	git@github.com:github/hub (fetch)
upstream	git@github.com:github/hub (push)
```

I haven't written tests yet, but I can if this is a feature that the
maintainers are amenable to merging...
2017-03-04 10:05:55 -08:00
Pocket7878 efa376225f Add rc alias support 2017-03-02 10:16:24 +09:00
Mislav Marohnić 34081973ea Merge pull request #1413 from vermiculus/show-pulls-again
Add option to show pull requests again
2017-02-15 17:11:02 +01:00
Juan Ignacio Donoso cdd7a65e05 Add a `--org` flag to `hub fork` 2017-02-15 10:20:03 -05:00
Sean Allred 037e068933 Add tests for --include-pulls 2017-02-15 07:38:27 -06:00
Mislav Marohnić 3d3facba2c Merge branch 'master' of https://github.com/github/hub 2017-02-06 15:29:57 +01:00
Mislav Marohnić 13b87db65a Add automated tests for fish completion 2017-02-06 15:20:17 +01:00
Mislav Marohnić 7c892ca99f Merge pull request #1396 from nex3/checkout-set-remote
Set merge configuration on checkout.

Fixes #1376, fixes #821
2017-02-05 12:18:39 +01:00
Natalie Weizenbaum f93e53798f Code review changes. 2017-02-03 15:54:44 -08:00
Natalie Weizenbaum 93df826636 Set merge configuration on checkout.
When checking out a pull request that doesn't match an existing remote,
this sets the branch's remote and merge configuration fields. If the
pull request is modifiable by the maintainer, it uses the SSH URL to
that you can push to the pull request.
2017-02-02 23:53:44 -08:00
Michihito Shigemura 6089677173 Preserve description 2017-01-26 00:49:09 +09:00
Michihito Shigemura 22edf59710 Fix fish alias and testing
cannot find hub completion when using git alias
2017-01-24 22:45:50 +09:00
Tomas Edwardsson e1fe86ffbc Add clipboard copy (-c) to browse command
The -c parameter will put the url into the clipboard instead of
opening in the browser.
2017-01-06 13:34:16 +00:00
Natalie Weizenbaum fb40cab7fd Add --set-upstream to git push commands.
This ensures that a branch pushed using "hub pull-request" has its
upstream branch set to the target of the push.
2016-12-07 13:47:46 -08:00
Mislav Marohnić 1a3a934714 Fix issue/PR template lookup when in a subdirectory
Always start template lookup from the toplevel directory of the repo.

Fixes #1242
2016-11-21 13:00:57 +01:00
Mislav Marohnić 3021e584ee Merge branch 'akshatgoel-issue1305'
Closes #1332, fixes #1305
2016-11-07 14:39:00 +01:00
Goel 3792b5e7f9 Do not expand aliases which are in-built git and hub commands 2016-11-07 14:30:45 +01:00
Wesley Bland 4f419aa4fe Add ability to delete releases
To mirror all the other `hub release` commands, allow the user to delete
releases from the command line. The new subcommand takes only one
argument (the tag of the release being deleted).

Fixes #1326
2016-11-01 15:47:15 -05:00
Goel 0d672939de Move checkWriteable to config.
If file is not present before checking for writing, remove it after check.
Add test to check for writeability in default location
2016-10-31 17:01:32 +05:30
Goel b88906b61d Check if config location is writeable before authenticating
Fixes #1314
2016-10-30 21:53:05 +05:30
Mislav Marohnić 4a7f8cb53a Isolate tests from user's configuration via env
Fixes #1320
2016-10-29 01:38:41 +02:00
Mislav Marohnić 95be446696 Merge pull request #1294 2016-10-22 12:45:37 +02:00
Mislav Marohnić 4a147e8c46 Introduce HUB_RETRY_TIMEOUT 2016-10-22 12:32:52 +02:00
Mislav Marohnić 2437c48e65 Automatically retry creating a PR after 422 on `--push`
Since `--push` has just created a new branch, there could be a slight
delay before GitHub registers it, and there's a possibility that a 422
would be returned for the "head" field. If that happens, retry the POST
a couple of times until it either succeeds or times out.
2016-10-22 12:10:00 +02:00
Mislav Marohnić d68e6e4a78 Cleanup style 2016-10-22 12:09:48 +02:00
Natalie Weizenbaum f5544ec9e6 Code review changes. 2016-10-20 13:56:13 -07:00
Natalie Weizenbaum 05d203934c Add a --push flag to hub pull-request.
This removes an extra step from the process of publishing a pull
request. It also gives the user a chance to back out of the entire
process by saving an empty pull request message.
2016-10-03 13:40:20 -07:00
Mislav Marohnić f3d909bbf5 Merge branch 'checkout-reuse-remote' 2016-10-03 19:37:36 +02:00
Mislav Marohnić ef5676f4d5 Always use explicit `refs/`-prefixed notation in `checkout` 2016-10-03 18:43:10 +02:00
Mislav Marohnić 671759b23a Fix the case of unavailable fork in `checkout`
Fixes #1293
2016-10-03 18:41:11 +02:00
Mislav Marohnić cbf7ab1ba3 Improve `hub merge` to not generate leftover remote refs
The previous implementation fetched refs into `refs/remotes/OWNER/BRANCH`.
Now, fetch `refs/pull/ID/head` directly into FETCH_HEAD and merge that.
It's a more straightforward approach that generates no artefacts.

This is for similarity with the reimplemented `hub checkout` command
which now also uses `refs/pull/ID/head`.
2016-09-14 02:41:58 +02:00
Mislav Marohnić b972284fba Merge pull request #1245 from pcorpet/sort-issues
Add sorting options to `hub issue`.
2016-09-14 01:40:34 +02:00
Pascal Corpet 245e767614 Rename scenario, simplify checks for output and check that sort and directions params are not sent to GitHub by default. 2016-09-13 23:41:49 +02:00
Mislav Marohnić e1ef66ab28 If found, reuse existing git remote for PR head in `checkout`
When there is already a git remote for the head repo of a PR to be
checked out, fetch the corresponding branch from that remote instead of
fetching the special `refs/pull/XY/head` ref.

This sets up a pull/push workflow for branches that the user might have
write access to and wishes to collaborate on.

Fixes #1238
2016-09-12 10:40:51 +02:00
Mislav Marohnić 9fab0e345f Add cukes for `hub sync` 2016-09-12 10:02:20 +02:00
Mislav Marohnić 28be560825 Ensure that the SHA for each test commit is unique
Since the test commits are empty and had identical commit messages, two
commits with the same parent could end up having identical SHAs. To
avoid that, generate a unique message for each empty commit.
2016-09-12 10:00:49 +02:00
Mislav Marohnić 1b0631c009 Cleanup in git branch & upstream handling in cukes 2016-09-12 10:00:14 +02:00
Mislav Marohnić 30c3cb4fbe Avoid leaving git remotes after `hub cherry-pick`
With the new approach, create a temporary remote, fetch it, and delete
it immediately. Its git objects will still remain to be available for
cherry-picking.
2016-09-12 04:02:59 +02:00
Mislav Marohnić 86e49b7304 Support PR commit URLs in `cherry-pick`
E.g. `/OWNER/REPO/pull/123/commits/SHA`

Fixes #1249
2016-09-12 03:26:51 +02:00
Mislav Marohnić f7c1105df3 Copy to clipboard for `create`, `issue`, `pull-request`, `release`
Also add `--browse` functionality to `create` and `release` for parity
with `issue` and `pull-request`.
2016-09-11 18:21:23 +02:00
Mislav Marohnić 6fdc4c1a88 Change `hub create` to output the URL of the new repository 2016-09-11 04:42:24 +02:00
Mislav Marohnić 3255fce35f Rename the `--commitish` shorthand from `-c` to `-t`
This is to free up `-c` for `--copy`.
2016-09-11 03:13:23 +02:00
Mislav Marohnić 9750615433 Fix inferred `pull-request` head for usernames with capital letters
Fixes #1256
2016-09-09 00:32:08 +02:00
Mislav Marohnić 3ab56f59b5 Fix assigning labels/assignees without the other
The GitHub API doesn't seem to like receiving `"assignees": null`.

Fixes #1240
2016-09-08 23:27:32 +02:00
Mislav Marohnić 660602b741 Unbreak normal `git fetch` command with URL and refspec
Fixes #1243
2016-09-08 18:22:25 +02:00
Pascal Corpet 0b7a95dccd Add sorting options to `hub issue`. 2016-08-27 22:09:50 +02:00
Mislav Marohnić d5c8337f1f Fix `release` from detached HEAD
Don't try to default `target_commitish` to the currently checked out
branch. Instead, keep the value blank unless explicitly provided. It
will default to the main branch on the server.
2016-08-21 18:10:31 +02:00
Mislav Marohnić ca10058884 Cleanup in cukes 2016-08-21 13:23:26 +02:00
Mislav Marohnić 4fd8abc8b7 Merge remote-tracking branch 'origin/master' into issue-filters 2016-08-21 12:59:07 +02:00
Mislav Marohnić 860c910419 Unify `-F <filename> -e` functionality between commands 2016-08-21 12:40:16 +02:00
Mislav Marohnić b5e6387111 Merge remote-tracking branch 'origin/master' into edit-message 2016-08-21 11:33:39 +02:00
Mislav Marohnić 5d6090207f Tweak whitespace in issue/PR template handling 2016-08-21 11:22:57 +02:00
Mislav Marohnić 23a4e241dd Merge branch 'reimplement-checkout'
Fixes #1069, fixes #1206, fixes #1133, fixes #1236
2016-08-21 00:08:33 +02:00
Mislav Marohnić 58d332d500 Improve `checkout` in same-repo scenario
In case when the PR's head and base repositories are the same, check out
the new branch in a way that sets up push workflow to the same branch.

    git fetch origin +refs/heads/fixes:refs/remotes/origin/fixes
    git checkout -b fixes --track origin/fixes
2016-08-21 00:00:13 +02:00
Mislav Marohnić a1f79d8876 Improve finding git remote to fetch from in new `checkout`
The remote needs to match the base project from the pull request.
2016-08-20 22:54:32 +02:00
Pascal Corpet 99a0d87819 label => labels, time => date, simpler tests 2016-08-19 21:04:40 +02:00
Pascal Corpet f03978c3e8 Display only issues updated at or after a certain time. 2016-08-19 16:49:01 +02:00
Pascal Corpet 5ddce90357 Display only issues with certain labels. 2016-08-19 16:49:01 +02:00
Pascal Corpet 5bec748452 Display only issues mentioning a user. 2016-08-19 16:49:01 +02:00
Pascal Corpet 948b19f6a3 Display only issues created by <CREATOR>. 2016-08-19 16:49:01 +02:00
Pascal Corpet a6611a1758 Filter issues list by assigned milestones. 2016-08-19 16:49:01 +02:00
Pascal Corpet 90a3a539fa Drop the tracking of the remote branch even if the remote repo exists. 2016-08-19 16:19:03 +02:00
Mislav Marohnić 83bdc60dfa Fix listing assignees in `hub issue` 2016-08-19 15:32:58 +02:00
Pascal Corpet 8ca5aa4260 Update hub checkout not to create any new remotes thus leaving less tracks behind. 2016-08-18 21:12:34 +02:00
Mislav Marohnić 19f9fa48da Merge pull request #1099 from github/revamp-issues
Revamp `hub issue` commands
2016-08-16 18:54:05 +02:00
Mislav Marohnić 35e9dfed30 Fix test broken by verbose output change 2016-08-16 17:43:59 +02:00
Mislav Marohnić 28f872978a Have `issue` command fetch all pages of API results 2016-08-16 17:29:41 +02:00
Mislav Marohnić 15b86379bc Refactor some `--format` placeholders
Renamed some existing placeholders and added new ones such as milestone
number/title, raw labels, comma-separated assignees, and number of comments.
2016-08-16 17:29:40 +02:00
Mislav Marohnić eda119ec95 Fix comma-separated `fetch` with more than 2 names 2016-08-16 14:31:13 +02:00
Mislav Marohnić 01dad7641f Fix vanilla `fetch` with non-GitHub remotes`
Fixes #1227
2016-08-16 14:30:42 +02:00
Mislav Marohnić ac9ff97891 Add `issue create --browse` support to reflect `pull-request` 2016-08-15 15:34:03 +02:00
Mislav Marohnić d2792baf73 Switch `pull-request` assignees and labels flags to `listFlag`
This allows accumulating values across repeated arguments.
2016-08-15 14:08:44 +02:00
Mislav Marohnić 4c02e6a817 Add assignees & milestone support to `issue create` 2016-08-15 14:08:44 +02:00
Mislav Marohnić 9f83b387ee Merge remote-tracking branch 'origin/master' into revamp-issues 2016-08-14 19:50:28 +02:00
Dylan Arbour ff0cf78c2d
Fix CreatePullRequest to expect 201 over 200
According to Github's API docs, creating a pull request should yield a
status code of 201 and not 200.

Closes #1226
2016-08-12 13:09:17 -04:00
Mislav Marohnić 7633e5b182 Fix GHE host prompts for `hub remote` commands
Now `hub remote` will only prompt to select from your configured hosts
if it can't infer the GitHub hostname from existing remotes.

In case you're prompted, and you choose a GHE host, now that choice will
be properly reflected in the generated URL, unlike before when it would
always revert to "github.com" regardless of choice.

Fixes #1141
2016-08-11 23:34:17 +02:00
Mislav Marohnić af72087bc7 Add support for multiple assignees 2016-08-10 11:44:38 +02:00
Mislav Marohnić 25a4dd061c Resolve owner name in PR `head` specification in case of redirects
When the repo that hosts the `head` for the PR is moved to another
owner, the `owner:branch` specification will be wrong and the GitHub API
will return HTTP 422.

This resolves the latest owner/name pair for head repo so that the value
is never stale when submitting new PR to be created.

Fixes #467
2016-08-09 22:07:33 +02:00
Mislav Marohnić 193d8f8620 Follow 307 redirects in `fork`
Also, adopt the new name of the fork more precisely so it's reflected in
the new remote URL. The name of the new git remote is for now *not*
inherited from the returned Repository object for backwards compatibility.

Fixes #1178
2016-08-09 22:07:33 +02:00
Mislav Marohnić 28c5839d76 Identify repos explicitly in `clone` and `submodule` cukes 2016-08-09 22:07:33 +02:00
Mislav Marohnić 8e212d4892 Dereference repo name when cloning
This ensures that the final repository URL cloned will have the
repository's actual name after redirect.
2016-08-09 22:07:33 +02:00
Mislav Marohnić 80606a5889 Follow 307 redirects in simpleApi, even for POST
HTTP client used to automatically follow GET redirects, or turn certain
POST redirects to GET when applicable, but for opening a new pull
request for a renamed repo, we need to repeat the POST against the
updated location.
2016-08-09 22:02:04 +02:00
Mislav Marohnić 56fce4bc6b Migrate PR creation to simpleApi 2016-08-09 22:02:04 +02:00
Mislav Marohnić c25e33e2db Fix case when multiple Enterprise hosts are configured
We only ever read the first hostname from the list because we didn't use
`git config --get-all`.

Fixes #1188
2016-07-12 16:32:25 +02:00
Mislav Marohnić b34db9cc06 Fix indent for `hub alias` fish instructions 2016-07-12 15:34:28 +02:00
Frederick Henderson a2856756fd Changing the Fish instructions for alias to a function. 2016-07-12 15:34:28 +02:00
James Armes e8a86a9587 Added release flag to exclude prereleases. 2016-06-02 13:12:41 -04:00
Pascal Corpet 9531c266f4 Fix integration test and add one more 2016-05-12 15:58:51 +02:00
Mislav Marohnić f07b5fbbda Add tests for `ci-status` and `releases` in Enterprise mode 2016-05-03 16:59:19 +02:00
Pascal Corpet becb9ad00c Add test for root dir name in combination with `-C` flag 2016-02-28 19:25:49 +09:00
Glenn Pratt c57cb62ef9 Add `hub release download` command that downloads all assets. 2016-02-26 12:24:52 -06:00
Mislav Marohnić f1a1c1e38c Merge pull request #1110 from pcorpet/localized-text
Make tests more robust to various Locales.
2016-02-16 13:02:23 +13:00
Pascal Corpet c53dbe4239 Prompt for user when the config has a token but no user. Fixes #1007 2016-02-15 14:51:11 +01:00
Pascal Corpet 516773a65a Make tests more robuts to various locales. 2016-02-15 09:29:42 +01:00
Mislav Marohnić 8563e678d2 Reimplement `hub issues` commands using simpleApi
- `hub issue` now displays color based on issue open/closed state
- `hub issue` no longer displays HTML URL since it was noisy
- `hub issue` no longer lists pull requests
- `hub issue create` tweaks for compatibility with `hub release create`
2016-02-03 23:05:06 +11:00
Mislav Marohnić f412a353b8 Merge pull request #1095 from github/release-overhaul
Big overhaul of `hub release` command
2016-02-02 09:06:05 +11:00
Dennis Cornwell 556a9452d3 Collapse unnecessary step into feature definition 2016-02-01 12:25:10 -05:00
Dennis Cornwell fd145adbaf Make assignee comparisson case insensitive 2016-02-01 12:18:48 -05:00
Dennis Cornwell ffaa3ecb37 Filter issues by assignee
* Use -a or --assignee to filter repo issues list by assignee
* Makes it easier to find pull requests and issues you've been
  assigned to address
2016-01-31 21:12:56 -05:00
Mislav Marohnić 05a5e7c492 Handle case when editing a release just uploads new assets 2016-02-01 13:02:58 +11:00
Mislav Marohnić 5992fd1b61 Encapsulate HTTP error handling for simpleApi calls 2016-02-01 12:13:02 +11:00
Mislav Marohnić 2f48cd1e09 No need to show release tag name in `release show <TAG>` output
Since TAG is provided as argument, the user already knows the tag name
and there's no need to include it (rather clumsily) in the output.
2016-01-31 23:04:57 +11:00
Mislav Marohnić 1bb1b025fe Simplify flag handling in `hub release` commands 2016-01-31 22:45:01 +11:00
Mislav Marohnić 0fb96e053e Add `hub release show <TAG>` 2016-01-31 18:57:44 +11:00
Mislav Marohnić 531c044f61 Add `hub release --include-draft` flag 2016-01-31 18:57:44 +11:00
Mislav Marohnić 864e505a08 Have `hub release` only ouput tag names for non-draft releases 2016-01-31 18:57:44 +11:00
Mislav Marohnić 6ab30c80f1 Add rudimentary cuke for `hub release` 2016-01-31 18:57:44 +11:00
Mislav Marohnić 7e62ef8c53 Look up `.txt` help pages when `man` is unavailable 2016-01-25 22:17:21 +11:00
Mislav Marohnić 0a45aa8ddc Reformat inline command help and expand usage options 2016-01-25 02:30:46 +11:00
Mislav Marohnić 44a4761edf Have `hub help hub` open hub man page 2016-01-22 22:47:17 +11:00
Mislav Marohnić 7bb983648d Append to `git help` output instead of hardcoding it 2016-01-22 22:47:17 +11:00
Mislav Marohnić 1d519fe496 Enable fetching from local git bundle 2016-01-22 21:13:45 +11:00
Mislav Marohnić c3ddec3248 Improve detecting local clone resources
In `hub clone NAME`, "NAME" was previously considered a local resource
if a directory of the same name existed, and the clone command was left
unchanged.

That worked for a while, but some users were surprised that they
couldn't clone their repo named "NAME", only to discover that there was
an unrelated directory "NAME" in the current working directory.

Also, a git bundle is a valid cloneable resource, but is a file and not
a directory.

This refines the detection of cloneable resources. "NAME" is considered
to be locally cloneable if one of the following is true:

- "NAME/.git" exists
- "NAME" is a bare git repo
- "NAME" is a file whose first line includes "git bundle"
2016-01-22 20:47:51 +11:00
Mislav Marohnić 0bbe55b2f6 Merge remote-tracking branch 'origin/clone-usage' 2016-01-22 01:37:26 +11:00
Mislav Marohnić 3e69b8ecff Merge branch 'unknown-shell' 2016-01-21 18:24:07 +11:00
Mislav Marohnić b9077e37e6 Improve "unknown shell" output 2016-01-21 18:23:28 +11:00
Mislav Marohnić a77104fc39 Fix `browse` opening current branch pushed to fork
Fixes #896
2016-01-20 14:01:19 +11:00
Mislav Marohnić 648f25cf2f Fix assigning user to pull request without labels
Fixes #1057
2016-01-20 13:46:59 +11:00