Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
github-adapter
Advanced tools
A small javascript adapter library to help other javascript projects to use Github API.
Install using npm
$ npm install github-adapter --save
Install using yarn
$ yarn add github-adapter
// es6
import GithubAdapter from 'github-adapter';
// es5
var GithubAdapter = require('github-adapter');
Initialize the adapter using the github token
var adapter = new GithubAdapter(token);
Following API calls are supported
Gets the current rate limit status set by the rate-limit-rules using this method
Parameters
callback
requestCallbackGets the current user for the token passed
Parameters
callback
requestCallbackPosts the issue
Parameters
owner
string Github username or orgnamerepo
string Github repository namebody
object Body of the issuecallback
requestCallbackGets a issue
Parameters
owner
string Github username or orgnamerepo
string Github repository namenumber
number Issue numbercallback
requestCallbackGets a pull request
Parameters
owner
string Github username or orgnamerepo
string Github repository namenumber
number Pull Request numbercallback
requestCallbackGets the diff version of a pull request
Parameters
owner
string Github username or orgnamerepo
string Github repository namenumber
number Pull Request numbercallback
requestCallbackGets the list of files created/updated in the pull request. This also contains the patch which can be used to know the changes made to the file.
Parameters
owner
string Github username or orgnamerepo
string Github repository namenumber
number Pull Request numbercallback
requestCallbackGets the raw content for a given full URL
Parameters
url
string Absolute full url. Generally the value of property raw_url
callback
requestCallbackCreates a comment on a given line of a given PR
Parameters
owner
string Github username or orgnamerepo
string Github repository namenumber
number Pull Request numberbody
object Comment Inputcallback
requestCallbackThis callback is displayed as part of the Requester class.
Parameters
FAQs
Adapter for calling github API.
The npm package github-adapter receives a total of 6 weekly downloads. As such, github-adapter popularity was classified as not popular.
We found that github-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.