Socket
Socket
Sign inDemoInstall

octokit-plugin-get-timeline-assignees-logins

Package Overview
Dependencies
10
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

octokit-plugin-get-timeline-assignees-logins

Retrieve an array of GitHub user logins that have been assigned to a given issue or pull request at some point


Version published
Maintainers
1
Weekly downloads
624
decreased by-3.26%

Weekly downloads

Readme

Source

octokit-plugin-get-timeline-assignees-logins

Retrieve an array of GitHub user logins that have been assigned to a given issue or pull request at some point

@latest Build Status

usage

Browsers

Load octokit-plugin-get-timeline-assignees-logins 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 { getTimelineAssigneesLogins } from "https://cdn.skypack.dev/octokit-plugin-get-timeline-assignees-logins";
</script>

Node

Install with npm install @octokit/core octokit-plugin-get-timeline-assignees-logins. Optionally replace @octokit/core with a compatible module

const { Octokit } = require("@octokit/core");
const {
  getTimelineAssigneesLogins,
} = require("octokit-plugin-get-timeline-assignees-logins");
const MyOctokit = Octokit.plugin(getTimelineAssigneesLogins);
const octokit = new MyOctokit({ auth: "secret123" });

const logins = await octokit.getTimelineAssigneesLogins({
  owner: "gr2m",
  repo: "octokit-plugin-get-timeline-assignees-logins",
  number: 1,
});
// `logins` is `["gr2m", "gr2m-test"]`

If you want to utilize this plugin with an existing octokit instance, use composeGetTimelineAssigneesLogins instead

const logins = await composeGetTimelineAssigneesLogins(octokit, {
  owner: "gr2m",
  repo: "octokit-plugin-get-timeline-assignees-logins",
  number: 1,
});

Note: This plugin only retrieves the first 100 assign events. If you need to retrieve more than 100 assign events, please file an issue. I'm curious to learn about your use case. Retrieving more than 100 is a tad complicated, but not impossible.

Options

name type description
owner string Required. Repository owner
repo string Required. Repository name
number number Required. Issue or pull request number

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