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

2130 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić 8c1a62a2a1 Set `charset` declaration with JSON payloads 2016-08-09 22:02:04 +02:00
Mislav Marohnić 501af58913 Set "User-Agent" header for API requests 2016-08-09 22:02:04 +02:00
Mislav Marohnić 713fd93b14 Cache `hub.host` config output to avoid repeated queries 2016-08-07 23:55:56 +02:00
Mislav Marohnić e7f5c55e43 Expand environment variables in GIT_EDITOR value
This matches git behavior. Fixes #835
2016-08-07 23:55:56 +02:00
Mislav Marohnić b4b38abb26 Avoid installing man pages with executable permissions
Fixes #1127
2016-08-07 23:55:56 +02:00
Mislav Marohnić 7c1fedfe90 Upgrade to Go 1.6
The GO15VENDOREXPERIMENT flag is no longer necessary.
2016-08-07 23:55:53 +02:00
Mislav Marohnić 26c4bbd1e9 go fmt 2016-08-07 23:54:38 +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ć e877e570aa Merge branch 'fish-instructions'
Closes #1149
2016-07-12 15:35:28 +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
Mislav Marohnić 282b71d692 Merge pull request #1204 from huydx/master
Trivial refactoring of checkout command
2016-07-12 15:03:10 +02:00
Mislav Marohnić c534bc7c6a Merge pull request #1207 from voidus/binstubpath
Explicitly specify binstub path in scripts/bootstrap
2016-07-11 11:42:02 +02:00
Simon Kohlmeyer 4e9d29460a Explicitly specify binstub path in scripts/bootstrap
There might be a bundle config that specifies a different path, which
breaks the build. Explicitly specifying the path changes that.
2016-07-07 10:21:00 +02:00
huydx 1cf978ba00 Trivial refactoring of checkout command 2016-07-01 11:30:20 +09:00
Mislav Marohnić 9fc5600205 Merge pull request #1136 from junghans/bash_completion
bashcomp: try to load git comp first (fix #592)
2016-05-09 12:50:33 +02:00
Mislav Marohnić 525ee53e28 Merge branch 'ghe-api-prefix'
Closes #1139, fixes #1100
2016-05-03 17:49:17 +02:00
Mislav Marohnić b346fe0cf8 Teach `simpleApi` how to apply `/api/v3` prefix consistently for GHE
Instead of per-request approach of invoking `client.requestURL()`
manually whenever we're constructing a request path, simply define the
`/api/v3` prefix when configuring the API root URL for `simpleApi` client.
2016-05-03 17:48:30 +02:00
Mislav Marohnić f07b5fbbda Add tests for `ci-status` and `releases` in Enterprise mode 2016-05-03 16:59:19 +02:00
Simon Aquino 02923f31f3 Fix request_url variable to comply with camelCase 2016-05-03 15:29:13 +01:00
Mislav Marohnić 80da4d047d Merge pull request #1165 from github/cmn/head-pasta
Fix copy-pasta
2016-04-21 15:10:08 +02:00
Carlos Martín Nieto 9413795ec7 Fix copy-pasta
The description for --head said it was the head branch instead of head branch.
2016-04-21 12:15:07 +02:00
Simon Aquino 5c0280b313 Fix #1100: Append /api/v3/ to request when using GHE
Git Hub Enterprise requests should always include /api/v3 in the URL
in order to hit the correct API endpoint. The ci-status and release
commands were producing the wrong request URL. As result, an LDAP
authentication page was returned rather than the expected JSON. A
parsing error could be seen: "invalid character '<' looking for beginning
of value".

This commit changes the construction of the request URL for the
ci-status and release commands, making sure the existing client.requestURL
function is called. This makes sure the API request hits always hits the
right endpoint in Git Hub Enterprise.
2016-03-08 10:16:19 +00:00
Christoph Junghans 57f1ff3981 bashcomp: try to load git comp first (fix #592) 2016-03-04 19:18:25 -07:00
Mislav Marohnić aa4611dd9a Merge branch 'root-dir' 2016-02-28 20:57:00 +09:00
Mislav Marohnić 0d3617fd25 Infer project name from git workdir root name instead of PWD
The `create` and `remote` commands needs to infer the current project
name from the project's directory. Instead of using the current working
directory, which doesn't necessarily match the project's toplevel
directory, use `git rev-parse --show-toplevel` which also respects the
`-C` global flag setting.

Fixes #1105, closes #1114
2016-02-28 20:51:21 +09:00
Mislav Marohnić 77a7b059cf Remove dependecy of `github.Project` to `utils.DirName()` 2016-02-28 19:46:11 +09:00
Pascal Corpet becb9ad00c Add test for root dir name in combination with `-C` flag 2016-02-28 19:25:49 +09:00
Mislav Marohnić 20f3b0a088 Update go-isatty to latest for netbsd support
Fixes #1125, closes #1126
2016-02-28 00:15:56 +09:00
Mislav Marohnić e046b8db5a Merge pull request #1103 from glennpratt/release-download
Add `hub release download` command that downloads all assets.
2016-02-27 21:30:20 +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
Mislav Marohnić 5b3aa70614 Merge pull request #1113 from pcorpet/fix-clone
Prompt for user when the config has a token but no user. Fixes #1007
2016-02-16 12:34:19 +13:00
Mislav Marohnić 481d04d8b4 Merge pull request #1116 from pcorpet/less-octokit
Don't use octokit in GhLatestTagName.
2016-02-16 12:15:34 +13:00
Pascal Corpet 8cb93a8887 Don't use octokit in GhLatestTagName. 2016-02-15 23:34:46 +01: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ć 7d5a40b271 Merge branch 'preserve-global-flags'
Fixes #1105
2016-02-15 18:21:53 +13:00
Mislav Marohnić 40e0cd22fd Preserve git global flags when executing final git command
For git commands that are extended by hub, such as `git remote`, the
final git command would get executed without the git global flags
provided when executing hub in the first place.

This most notably broke the usage of `-C <dir>` flag.
2016-02-15 17:42:40 +13: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
Mislav Marohnić 224ba2bb8b Merge pull request #1096 from cornwe19/feature/issues_by_assignee
Filter project issues by assignee
2016-02-02 09:00:54 +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
Mislav Marohnić f4b37170cc Encapsulate similarities between making requests within simpleApi 2016-02-02 00:47:32 +11:00
Mislav Marohnić aa41494184 Document synopsis for `--include-drafts` 2016-02-02 00:16:11 +11:00
Dennis Cornwell d7f7d6480c Update issue usage docs 2016-01-31 21:14:08 -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ć 32ed6e0358 Implement `script/github-release` with bash + `hub release` 2016-02-01 12:43:47 +11:00
Mislav Marohnić 5992fd1b61 Encapsulate HTTP error handling for simpleApi calls 2016-02-01 12:13:02 +11:00