Socket
Socket
Sign inDemoInstall

octokit-plugin-get-open-repository-issues-count-by-assignees

Package Overview
Dependencies
10
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    octokit-plugin-get-open-repository-issues-count-by-assignees

Get the number of open repository issues assigned to a list of users


Version published
Weekly downloads
648
increased by13.29%
Maintainers
1
Install size
19.9 kB
Created
Weekly downloads
 

Readme

Source

octokit-plugin-get-open-repository-issues-count-by-assignees

Get the number of open repository issues assigned to a list of users

@latest Build Status

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

name type description
owner string Required. Repository owner login
repo string Required. Repository name
assignees string[] Required. Array of GitHub user account logins

Contributing

See CONTRIBUTING.md

License

MIT

Keywords

FAQs

Last updated on 15 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc