{"id":13895276,"url":"https://github.com/gr2m/octokit-pinned-issues","last_synced_at":"2025-07-09T19:35:44.779Z","repository":{"id":33783559,"uuid":"162044407","full_name":"gr2m/octokit-pinned-issues","owner":"gr2m","description":"Octokit plugin to manage pinned issues for a repository","archived":false,"fork":false,"pushed_at":"2023-10-17T22:11:07.000Z","size":594,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-24T07:16:44.094Z","etag":null,"topics":["issues","octokit","pinned","plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gr2m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"gr2m"}},"created_at":"2018-12-16T21:53:37.000Z","updated_at":"2024-03-21T18:25:57.000Z","dependencies_parsed_at":"2023-11-12T18:42:40.460Z","dependency_job_id":null,"html_url":"https://github.com/gr2m/octokit-pinned-issues","commit_stats":{"total_commits":54,"total_committers":5,"mean_commits":10.8,"dds":0.4444444444444444,"last_synced_commit":"db90761026f964cdc53778dabce48c9fa7977919"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Foctokit-pinned-issues","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Foctokit-pinned-issues/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Foctokit-pinned-issues/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Foctokit-pinned-issues/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gr2m","download_url":"https://codeload.github.com/gr2m/octokit-pinned-issues/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250580751,"owners_count":21453537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["issues","octokit","pinned","plugin"],"created_at":"2024-08-06T18:02:06.217Z","updated_at":"2025-04-24T07:16:49.506Z","avatar_url":"https://github.com/gr2m.png","language":"JavaScript","funding_links":["https://github.com/sponsors/gr2m"],"categories":["JavaScript"],"sub_categories":[],"readme":"# octokit-pinned-issues\n\n\u003e Octokit plugin to manage pinned issues for a repository\n\n[![Test](https://github.com/gr2m/octokit-pinned-issues/actions/workflows/test.yml/badge.svg)](https://github.com/gr2m/octokit-pinned-issues/actions/workflows/test.yml)\n\nThere 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.\n\n## Usage\n\n```js\nconst Octokit = require(\"@octokit/rest\").plugin(\n  require(\"octokit-pinned-issues\")\n);\n\nconst octokit = new Octokit();\n\noctokit\n  .getPinnedIssues({\n    owner: \"repo-name\",\n    repo: \"repo-name\",\n  })\n  .then((issues) =\u003e {});\noctokit\n  .pinIssue({\n    owner: \"repo-name\",\n    repo: \"repo-name\",\n    number: 123,\n  })\n  .then((issue) =\u003e {});\noctokit\n  .unpinIssue({\n    owner: \"repo-name\",\n    repo: \"repo-name\",\n    number: 123,\n  })\n  .then((issue) =\u003e {});\n```\n\nAn `issue` object can have the following properties\n\n```js\n[\n  {\n    id: \"MDU6SXNzdWU...\",\n    number: 71,\n    state: \"OPEN\",\n    title: \"issue title\",\n    body: \"issue description\",\n    locked: false,\n    active_lock_reason: null,\n    milestone: {\n      id: \"MDk6TWlsZXN...\",\n      state: \"OPEN\",\n      title: \"Funk\",\n      description: \"Get Funky!\",\n    },\n    labels: [\n      {\n        id: \"MDU6TGFiZWw...\",\n        name: \"foo\",\n        description: null,\n        color: \"ededed\",\n      },\n    ],\n    assignees: [\n      {\n        login: \"gr2m\",\n        id: \"MDQ6VXNlcj...\",\n        avatar_url: \"https://avatars3.githubusercontent.com/u/39992?v=4\",\n      },\n    ],\n  },\n];\n```\n\n## LICENSE\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Foctokit-pinned-issues","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgr2m%2Foctokit-pinned-issues","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Foctokit-pinned-issues/lists"}