octokit-pinned-issues
Octokit plugin to manage pinned issues for a repository
There is no REST API for the new ["Pinned Issues"] feature. This Octokit plugin uses GraphQL under the hood to provide simple methods to manage a repository’s pinned issues.
Usage
const Octokit = const octokit = octokitoctokitoctokit
An issue
object can have the following properties
id: 'MDU6SXNzdWU...' number: 71 state: 'OPEN' title: 'issue title' body: 'issue description' locked: false active_lock_reason: null milestone: id: 'MDk6TWlsZXN...' state: 'OPEN' title: 'Funk' description: 'Get Funky!' labels: id: 'MDU6TGFiZWw...' name: 'foo' description: null color: 'ededed' assignees: login: 'gr2m' id: 'MDQ6VXNlcj...' avatar_url: 'https://avatars3.githubusercontent.com/u/39992?v=4'