
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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 2 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.