want-js-plugin.pr
v1.1.0
Published
Plugin for want-js-helper which allows open pull-requests on Github.com
Downloads
6
Readme
want-js-plugin.pr
Plugin for want-js-helper which allows open pull-requests on Github.com
Usage
- Install want-js-helper
$ npm install want-js-helper --global- Install current plugin global
$ npm install want-js-plugin.pr --globalor in some project
$ npm install want-js-plugin.pr --save-dev- If you use github.com, then simply enter:
$ want pull-requrestor
$ want prIf you use other github installation, уou can customise you project adding config .want-js.config.js in the root of the project.
For example:
module.exports = {
commandParams: {
'my-command': {
// redefined options
githubApiUrl: 'example.github.com',
githubApiPath: '/api/some/path',
githubApiOauthTokenName: 'SPECIAL_GITHUB_OAUTH_TOKEN'
}
}
};SPECIAL_GITHUB_OAUTH_TOKEN must be present in enviroment as a variable.
Or you can create you own redefined plugin, where will .want-js.config.js.
const wantJSCfg = require('want-js-plugin.pr/.want-js.config');
module.exports = {
commandParams: {
'my-command': {
executor: wantJSCfg.commandParams['pull-request'].executor,
summary: 'Open pull request on example.github.com.',
aliases: wantJSCfg.commandParams['pull-request'].aliases,
githubApiUrl: 'example.github.com',
githubApiPath: '/api/some/path',
githubApiOauthTokenName: 'SPECIAL_GITHUB_OAUTH_TOKEN'
}
}
};This way is better then previous when you use other installation project in different projects. But you may create config fastly like previos in common project directory. The main disadvantage of this approach is lack of opportunity to share config with other.
Current plugin will detect all pull requests by branch name.
