Commit graph

162 commits

Author SHA1 Message Date
Paul Irish f0bcdd200a
update readme for (gitlab) config (#99) 2017-12-01 13:41:45 -08:00
Frank Fesevur 734517991a Update support for open.default.remote config (#79) 2017-12-01 13:41:32 -08:00
Frank Fesevur d97b7f36aa Fix BATS testing on WSL (#104)
The $openopt resulted in unexpected results during testing
2017-12-01 12:30:50 -08:00
Paul Irish 3a423e11a6
allow command to be run in git repo subdirectory (#105) 2017-12-01 12:18:07 -08:00
Edward Thomson e3ce014bfa Add support for Visual Studio Team Services and Team Foundation Server (#93)
* Parse remotes as URLs or SCP-style paths

Instead of trying to strip on ':' and '/' to simplify a URL, actually
switch based on whether the remote path is a URL ("scheme://host:port/path")
or an SCP-style path (user@host:path) and parse them separately.

This allows us to handle custom ports in HTTP and HTTPS, but ignore
custom ports in an SSH url and HTTP remotes, instead of always upgrading
them to HTTPS.

* Introduce tests for Visual Studio Team Services

Add tests for Visual Studio Team Services (VSTS) and Team Foundation
Server (TFS).  VSTS suggests remote paths in two formats: HTTPS URLs
or SSH URLs (including port number).  TFS is an on-premises product
which - when running as an HTTP endpoint - defaults to port 8080.

* Branch selection in Visual Studio Team Services

VSTS and TFS URLs end in '/_git/RepositoryName` (with 0 or more leading
folders of hierarchy in front of that.)  Detect these from the `_git` in
the penultimate folder of the path.  Append branch information to VSTS
and TFS URLs.

Since VSTS and TFS use a query string to select a branch, instead of
including it in the server path, the `providerBranchRef` for other
services was changed to include the leading `/`, and now the `openurl`
and `providerBranchRef` are simply concatenated, to avoid an incorrect
trailing `/` for the VSTS and TFS branch URLs.

* Issues for Visual Studio Team Services

Provide issue support for VSTS and TFS, modifying the URL from the
`_git` endpoint to the `_workitems` endpoint and appending the `id`
query string.

* README: add VSTS and TFS support
2017-11-30 16:23:52 -08:00
Love F 363d054386 Git styled -h and --issue options (#94) 2017-10-31 16:15:50 -07:00
Frank Fesevur 80cb34169a Add support for WSL (#101) 2017-10-30 16:28:39 -07:00
Paul Irish 07d75b2e1e
add test for bitbucket server (#83)
* add test for bitbucket server
* add branch test for bb server.
* updated assertions from discussion.
* remove 'git/' from test cases
2017-10-27 14:18:02 -07:00
Paul Irish 3e237d4006 v1.5.0 2017-10-27 14:13:23 -07:00
Paul Irish fa49deeb17
default to tracked remote (#88) 2017-10-27 13:56:29 -07:00
Paul Irish f3dbce975f
readme tweaks 2017-10-27 13:49:30 -07:00
Alex Rock Ancelet a15d53b6a8 Add windows doc for non-powershell users (#97) 2017-10-26 15:00:31 -07:00
Dave Wikoff e68eee6a44 Strip ports based on protocol properly. Adding config for custom domains and protocols. (#92) 2017-10-26 12:52:33 -07:00
Marko Kunic c2654071a6 replace Oh-My-Zsh git clone url in README.md (#98) 2017-10-26 12:49:07 -07:00
Frank Fesevur 3be1c00f36 Fix opening final URL on MSYS (#91) 2017-06-23 13:49:00 -07:00
Frank Fesevur daa19636c6 Add license file (#90)
The project is licensed under MIT, but that is quite hidden
in the README. Adding a LICENSE files makes it more visible.
2017-06-23 06:51:58 -07:00
Paul Irish 0a43af82ab skip failing tests temporarily. see #87 2017-06-21 13:27:34 -07:00
Paul Irish 15421e8fb4 readme: fix echo mode note 2017-06-21 10:25:22 -07:00
Paul Irish fd2258f77b readme: npm run unit for unit tests 2017-06-21 10:23:34 -07:00
Paul Irish c9ba476e71 fix shellcheck failure https://github.com/koalaman/shellcheck/wiki/SC2004 2017-06-21 10:19:31 -07:00
Paul Irish 06b74c4821 update test expectations 2017-06-21 10:04:55 -07:00
Paul Irish 494c54e1c6 test: safety check to confirm we're in the sandbox repo. 2017-06-20 18:42:38 -07:00
Paul Irish 2bb36a36cd git open issue: add assertion 2017-06-20 18:03:36 -07:00
Dave Wikoff 79501d6f11 Add issues support 2017-06-20 18:02:52 -07:00
Paul Irish 75ced59719 Merge branch 'master' into rewrite 2017-06-20 17:59:19 -07:00
Frank Fesevur 3f1d4e84b6 Not necessary anymore to skip the test 2017-06-20 17:57:52 -07:00
Paul Irish 73b460f582 add 'npm run unit' for bats tests. 2017-06-20 17:49:44 -07:00
Paul Irish 21d370175d add tests for gitlab: ssh://git@host:port origin (#82) 2017-06-18 17:47:46 -07:00
Paul Irish 53e91d130b export BROWSER variable, and test that its set. 2017-06-18 17:14:31 -07:00
Dave Wikoff c2c7830514 Bitbucket server, and minor tweaks to BROWSER 2017-06-18 16:52:12 -07:00
Paul Irish fd8b0aa991 sandboxrepo: set origin url differently for git 2.12.1? 2017-06-18 16:43:54 -07:00
Paul Irish e4970897f8 update test expectations 2017-06-18 13:53:43 -07:00
Paul Irish 9e9fee04de import revised git-open from @dermagia
62e17bfcb9/config/zsh/bin/git-open
2017-06-18 13:51:53 -07:00
Paul Irish fbc508a940 add issue_template 2017-06-18 13:43:58 -07:00
Paul Irish b449cd0cbc Add BB sourceview tests from PR #26 (#81) 2017-06-18 13:38:43 -07:00
Paul Irish 42a4a0ee70 v1.3.1 2017-06-16 16:04:16 -07:00
Paul Irish 628d75faa8 readme: travis badge and changelog bump
[skip ci]
2017-06-16 16:02:52 -07:00
Paul Irish 927517adb9 Add a test suite (#78) 2017-06-16 15:57:49 -07:00
Frank Fesevur 661a4cb20b Merge pull request #76 from xasx/gitlab-urls
Normalize ssh+port URLs to match default style
2017-06-16 08:58:32 +02:00
Andreas Schoeneck ac027a8d00 Normalize ssh+port URLs to match default style
This will make `ssh://git@<host>:<port>/<user>/<repo>` URLs
intermediately look like `git@<host>:<user>/<repo>` and
expose these to further processing/substitution.

Properties required for proper working are:
* `gitopen.gitlab.domain`
* `gitopen.gitlab.ssh.port`
2017-06-12 12:56:31 +02:00
Frank Fesevur 054772bed6 Fix trailing spaces
CI checks because of it
Leftover of #63
2017-06-01 13:01:34 +02:00
Frank Fesevur cf2c289692 Merge pull request #63 from freekmurze/master
Handle GitHub urls without the git user
2017-05-31 20:55:35 +02:00
Paul Irish abd822a486 Merge pull request #74 from paulirish/shellcheck
Add Shellcheck to CI tests
2017-05-29 12:47:11 -07:00
Paul Irish 92dc862c02 correct shellcheck issues. 2017-05-29 12:41:01 -07:00
Paul Irish 33f34fa516 run shellcheck in CI 2017-05-29 12:37:35 -07:00
Paul Irish 75c61f13e6 Add eclint to assert editorconfig settings (#72) 2017-05-29 12:34:10 -07:00
Paul Irish d2147824ec add travis config (#73) 2017-05-29 12:28:48 -07:00
Frank Fesevur 6da04ca3bc Add EditorConfig file (#70) 2017-05-29 12:11:49 -07:00
Trent Rand 176f1b8f96 Remove username from <giturl> for BitBucket (#69)
The username prefix ‘username@bitbucket.org/*’ caused a phishing error
on Safari which persisted across page visits on BitBucket, unless the
username was manually deleted from url.
2017-05-26 19:16:03 -07:00
Gilad Peleg 1abbb405f9 Correct usage for new versions of zplug (#66) 2017-04-23 08:21:59 -07:00