octokit-plugin-get-open-repository-issues-count-by-assignees
v1.0.1
Published
Get the number of open repository issues assigned to a list of users
Downloads
2
Readme
octokit-plugin-get-open-repository-issues-count-by-assignees
Get the number of open repository issues assigned to a list of users
usage
Browsers
Load octokit-plugin-get-open-repository-issues-count-by-assignees
and @octokit/core
(or core-compatible module) directly from cdn.skypack.dev
<script type="module">
import { Octokit } from "https://cdn.skypack.dev/@octokit/core";
import { getOpenRepositoryIssuesCountByAssignees } from "https://cdn.skypack.dev/octokit-plugin-get-open-repository-issues-count-by-assignees";
</script>
Node
Install with npm install @octokit/core octokit-plugin-get-open-repository-issues-count-by-assignees
. Optionally replace @octokit/core
with a compatible module
const { Octokit } = require("@octokit/core");
const {
getOpenRepositoryIssuesCountByAssignees,
} = require("octokit-plugin-get-open-repository-issues-count-by-assignees");
const MyOctokit = Octokit.plugin(getOpenRepositoryIssuesCountByAssignees);
const octokit = new MyOctokit({ auth: "secret123" });
const result = await octokit.getOpenRepositoryIssuesCountByAssignees({
owner: "gr2m",
repo: "octokit-plugin-get-open-repository-issues-count-by-assignees",
assignees: ["user1", "user2", "user3"],
});
// `result` is an object with keys being the user logins and the values being the
// number of open issues assigned to that user. For example:
// { user1: 0, user2: 3, user3: 1 }
Options
Contributing
See CONTRIBUTING.md