We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 454f8de commit 13782faCopy full SHA for 13782fa
README.md
@@ -20,7 +20,7 @@ const octokit = new Octokit({
20
21
// Values in capitals are the default behaviour
22
// Only `owner` is required
23
-const repos = await octokit.repos.fetchAll({
+const repos = await octokit.fetchAllRepos({
24
owner: "user OR org OR org/team",
25
visibility: "ALL/public/private",
26
minimum_access: "PULL/push/admin",
index.js
@@ -1,5 +1,7 @@
1
-const plugin = require("./fetch-repos.js");
+import plugin from "./fetch-repos.js";
2
3
module.exports = function (octokit) {
4
- octokit.repos.fetchAll = plugin.bind(null, octokit);
+ return {
5
+ fetchAllRepos: plugin.bind(null, octokit),
6
+ };
7
};
0 commit comments