git-web 0.2.1 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/helpers/git/remote-to-url.js +1 -1
- package/lib/providers/ci/bitbucket.js +2 -2
- package/lib/providers/hostname/bitbucket.js +4 -1
- package/lib/providers/hostname/index.js +11 -4
- package/man/git-ci.1 +1 -1
- package/man/git-fork.1 +1 -1
- package/man/git-issues.1 +1 -1
- package/man/git-pr.1 +1 -1
- package/man/git-prs.1 +1 -1
- package/man/git-web.1 +1 -1
- package/package.json +11 -11
- package/CHANGELOG.md +0 -25
|
@@ -6,7 +6,7 @@ const hostnameMapper = require('../../providers/hostname');
|
|
|
6
6
|
|
|
7
7
|
module.exports = (providers, remote, extraParams) => {
|
|
8
8
|
|
|
9
|
-
const urlData = gitUp(remote);
|
|
9
|
+
const urlData = gitUp(remote.replace('\n', ''), false);
|
|
10
10
|
|
|
11
11
|
// If only one provider is recevied, just use it
|
|
12
12
|
if(providers.mapRemoteToUrl)
|
|
@@ -4,7 +4,7 @@ const { getBaseUrl } = require('../base/bitbucket');
|
|
|
4
4
|
|
|
5
5
|
const fileExists = require('../../helpers/fs/file-exists');
|
|
6
6
|
|
|
7
|
-
const ciPath = '/
|
|
7
|
+
const ciPath = '/pipelines';
|
|
8
8
|
|
|
9
9
|
module.exports.isSetup = () => fileExists('bitbucket-pipelines.yml');
|
|
10
10
|
|
|
@@ -15,5 +15,5 @@ module.exports.mapRemoteToUrl = (remoteUrlData, { executionId }) => {
|
|
|
15
15
|
if(!executionId)
|
|
16
16
|
return `${baseUrl}${ciPath}`;
|
|
17
17
|
|
|
18
|
-
return `${baseUrl}${ciPath}results/${executionId}`;
|
|
18
|
+
return `${baseUrl}${ciPath}/results/${executionId}`;
|
|
19
19
|
};
|
|
@@ -5,12 +5,19 @@ const gitlab = require('./gitlab');
|
|
|
5
5
|
const bitbucket = require('./bitbucket');
|
|
6
6
|
const codecommit = require('./codecommit');
|
|
7
7
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const providersHostnames = {
|
|
9
|
+
github,
|
|
10
|
+
gitlab,
|
|
11
|
+
bitbucket
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
+
const providersMap = Object.entries(providersHostnames).reduce((map, [provider, hostnames]) => {
|
|
15
|
+
[].concat(hostnames).forEach(hostname => {
|
|
16
|
+
map[hostname] = provider;
|
|
17
|
+
});
|
|
18
|
+
return map;
|
|
19
|
+
}, {});
|
|
20
|
+
|
|
14
21
|
module.exports = hostname => {
|
|
15
22
|
|
|
16
23
|
if(providersMap[hostname])
|
package/man/git-ci.1
CHANGED
package/man/git-fork.1
CHANGED
package/man/git-issues.1
CHANGED
package/man/git-pr.1
CHANGED
package/man/git-prs.1
CHANGED
package/man/git-web.1
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A CLI utility to interact with git providers on the web",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -48,20 +48,20 @@
|
|
|
48
48
|
"author": "Joaquín Ormaechea <https://github.com/jormaechea>",
|
|
49
49
|
"license": "MIT",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"git-up": "^
|
|
52
|
-
"open": "^
|
|
53
|
-
"yargs": "^
|
|
51
|
+
"git-up": "^7.0.0",
|
|
52
|
+
"open": "^8.4.1",
|
|
53
|
+
"yargs": "^17.6.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"eslint": "^
|
|
57
|
-
"eslint-config-airbnb-base": "^
|
|
58
|
-
"eslint-plugin-import": "^2.
|
|
59
|
-
"husky": "^
|
|
60
|
-
"lint-staged": "^
|
|
56
|
+
"eslint": "^8.34.0",
|
|
57
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
58
|
+
"eslint-plugin-import": "^2.27.5",
|
|
59
|
+
"husky": "^8.0.3",
|
|
60
|
+
"lint-staged": "^13.1.2",
|
|
61
61
|
"marked": "^0.7.0",
|
|
62
62
|
"marked-man": "^0.7.0",
|
|
63
|
-
"mocha": "^
|
|
63
|
+
"mocha": "^10.2.0",
|
|
64
64
|
"nyc": "^15.1.0",
|
|
65
|
-
"sinon": "^
|
|
65
|
+
"sinon": "^15.0.1"
|
|
66
66
|
}
|
|
67
67
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
6
|
-
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
## [0.2.0] - 2021-03-09
|
|
11
|
-
### Fixed
|
|
12
|
-
- Issue with `fs.access` flags in node 14+
|
|
13
|
-
|
|
14
|
-
## [0.2.0] - 2020-08-31
|
|
15
|
-
### Added
|
|
16
|
-
- New commmands: `git fork`, `git issue`, `git issues`, `git pr` and `git prs`.
|
|
17
|
-
- Man pages for all the commands
|
|
18
|
-
- Documentation in README
|
|
19
|
-
- Stability improved with unit testing
|
|
20
|
-
|
|
21
|
-
## [0.1.0] - 2020-08-29
|
|
22
|
-
### Added
|
|
23
|
-
- `git web` command with origin and commit modifiers with support for bitbucket, codecommit, github and gitlab.
|
|
24
|
-
- `git ci` command with origin and commit modifiers with support for bitbucket, circleci, github, gitlab and travis.
|
|
25
|
-
- Pending commands `git issues`, `git fork` , `git prs` and `git pr`.
|