mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-26 21:33:05 +07:00
11 lines
268 B
JavaScript
11 lines
268 B
JavaScript
module.exports = factory
|
|
|
|
const Octokit = require('./constructor')
|
|
const registerPlugin = require('./register-plugin')
|
|
|
|
function factory (plugins) {
|
|
const Api = Octokit.bind(null, plugins || [])
|
|
Api.plugin = registerPlugin.bind(null, plugins || [])
|
|
return Api
|
|
}
|