setup-node/node_modules/@octokit/rest/lib/register-plugin.js
Danny McCormick 5273d0df9c Add auth
2019-08-06 18:29:44 -04:00

7 lines
219 B
JavaScript

module.exports = registerPlugin
const factory = require('./factory')
function registerPlugin (plugins, pluginFunction) {
return factory(plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction))
}