Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ and
* [GitLab](https://gitlab.com/)
* [BitBucket](https://bitbucket.org/)
* ~~[GitCafe](https://gitcafe.com/)~~ Merged into coding.net.
* [OSC](https://git.oschina.net/)
* [Coding](https://coding.net/)
* [OSC](https://git.oschina.net/)
* [CSDN](https://code.csdn.net/)
* Custom

If you use [GitBucket](https://github.com/takezoe/gitbucket),
Expand Down Expand Up @@ -85,9 +86,12 @@ $ gitopen @hotoo/gitopen # https://github.com/hotoo/gitopen
## Configuration

Default support [github.com](https://github.com/),
[bitbucket.org](https://bitbucket.org/), [gitlab.com](https://gitlab.com/),
~~[gitcafe.com](https://gitcafe.com/)~~, [git.oschina.net](https://git.oschina.net/)
and [coding.net](https://coding.net/).
[bitbucket.org](https://bitbucket.org/),
[gitlab.com](https://gitlab.com/),
~~[gitcafe.com](https://gitcafe.com/)~~,
[coding.net](https://coding.net/)
[git.oschina.net](https://git.oschina.net/)
and [CSDN](https://code.csdn.net/).

If you use [GitHub Enterprise](https://enterprise.github.com/),
[GitLab Community Edition (CE), GitLab Enterprise Edition (EE)](https://gitlab.org/),
Expand Down
6 changes: 5 additions & 1 deletion lib/gitopenrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ module.exports = {
"coding.com": {
protocol: "https",
type: "coding"
}
},
"code.csdn.net": {
protocol: "https",
type: "csdn"
},
};
31 changes: 31 additions & 0 deletions lib/scheme/csdn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
'use strict';
module.exports = {
'base': '{protocol}://{hostname}/{username}/{reponame}',
'home': '',
'issues': '/issues',
'issues/id': '/issues/{issue-id}',
'issues/new': '/issues/new',
'issues/new?title': '/issues/new?title={title}',
'wiki': '/wikis',
'network': '/graph',
'tree': '/tree/{hash}{path}',
'blob': '/tree/{hash}{path}',
'commit': '/commit/{hash}',
'commits': '/commits',
'commits-with-branch': '/commits/{branch-name}',
'branches': '/repository/branches',
'milestones': '',
'milestones/new': '',
'milestones/id': '',
'tags': '/tags',
'releases': '/releases',
'releases/new': '/releases/new',
'releases/new-with-tag': '/releases/new?tag={tag}',
'releases/edit/tag-id': '/releases/edit/{tag}',
'pulls': '/merge_requests',
'pulls/id': '/merge_requests/{pull-id}',
'pulls/new': '/compare',
'pulls/new-with-compare-branch': '/compare/{branch-B}?expand=1',
'pulls/new-with-base-branch': '/compare/{branch-A}...{branch-B}',
'snippets/new': '{protocol}://{hostname}/snippets_manage',
};
4 changes: 1 addition & 3 deletions lib/scheme/oschina.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
'use strict';

// https://code.csdn.net/
module.exports = {
'base': '{protocol}://{hostname}/{username}/{reponame}',
'home': '',
Expand All @@ -15,7 +13,7 @@ module.exports = {
'commit': '/commit/{hash}',
'commits': '/commits/master',
'commits-with-branch': '/commits/{branch-name}',
'branches': '/repository/branches',
'branches': '/branches',
'milestones': '/milestones',
'milestones/new': '/milestones/new',
'milestones/id': '/milestones/{milestone-id}',
Expand Down