mirror of
https://github.com/stCarolas/setup-maven.git
synced 2025-02-10 23:28:13 +00:00
11 lines
273 B
JavaScript
11 lines
273 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;
|
||
|
}
|