
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
A Node.js library to interact with the GitHub issues API
import * as ghissues from 'ghissues'
const auth = { token: 'your-github-token' }
// list all issues in a repo
const issues = await ghissues.list(auth, 'rvagg', 'jsonist')
console.log(issues)
// get issue data by number (not internal GitHub id)
const issue = await ghissues.get(auth, 'rvagg', 'nan', 123)
console.log(issue)
// create an issue
const newIssue = await ghissues.create(auth, 'rvagg', 'jsonist', {
title: 'New issue',
body: 'Pretty **slick** `markdown`'
})
console.log(newIssue)
// list all comments in an issue
const comments = await ghissues.listComments(auth, 'rvagg', 'jsonist', 47)
console.log(comments)
// create a comment
const comment = await ghissues.createComment(auth, 'rvagg', 'jsonist', 101, 'Whoa dude!')
console.log(comment)
The auth data is compatible with ghauth so you can connect them together:
import ghauth from 'ghauth'
import * as ghissues from 'ghissues'
const auth = await ghauth({
configName: 'issue-lister',
scopes: ['user']
})
const issues = await ghissues.list(auth, 'rvagg', 'node-levelup')
console.log('Issues in rvagg/node-levelup:')
issues.forEach((i) => {
console.log('#%s: %s', i.number, i.title)
})
All methods return Promises.
List all issues in a repository. Returns an array of issue objects.
Get a single issue by number. Returns the issue object.
Create a new issue. data should contain title and optionally body. Returns the created issue.
List all comments on an issue. Returns an array of comment objects.
Create a comment on an issue. Returns the created comment.
ghissues is Copyright (c) 2014-2025 Rod Vagg @rvagg and licensed under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.
FAQs
Interact with the GitHub issues API
The npm package ghissues receives a total of 1,178 weekly downloads. As such, ghissues popularity was classified as popular.
We found that ghissues demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.