setup-node/node_modules/@octokit/rest/lib/register-plugin.js

8 lines
219 B
JavaScript
Raw Normal View History

2019-08-05 19:18:52 +00:00
module.exports = registerPlugin
const factory = require('./factory')
function registerPlugin (plugins, pluginFunction) {
return factory(plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction))
}