
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@studyportals/github
Advanced tools
Ease the process of interacting with GitHub (commenting on a Pull Request)
This package aims to ease the process of interacting with GitHub.
export interface IGitHub {
getComments(owner: string, repository: string, issueNumber?: string): Promise<IGitHubComment[]>;
deleteComment(owner: string, repository: string, commentId: string): Promise<any>;
postComment(owner: string, repository: string, issueNumber: string, body: string): Promise<IGitHubComment>;
}
npm install --save @studyportals/github
TypeScript
import {GitHub} from "@studyportals/github";
const GH = new GitHub(process.env.GITHUB_TOKEN);
return GH.postComment("studyportals", "github", "1", "Comment description")
.then((comment) => { });
Node
const github = require("@studyportals/github");
const GH = new github.GitHub(process.env.GITHUB_TOKEN);
return GH.postComment("studyportals", "github", "1", "Comment description")
.then((comment) => { });
This package can be compiled and tested locally.
npm install - Install the dependenciesnpm test - Runs the test suite (will lint and compile first)npm compile - Compiles the entire projectnpm run setup-hooks - Install Git hooks. This will add a pre-commit hook to ensure code quality.npm run watch - Watch the project and compile on the fly.Please have a look at package.json scripts section.
This package is automatically published by TravisCI for every commit on master.
# Draft a new version
# @see: https://docs.npmjs.com/cli/version
# @see: https://semver.org/
npm version [<newversion> | major | minor | patch | prerelease ]
# Push the commit and tags
git push --follow-tags
FAQs
Ease the process of interacting with GitHub (commenting on a Pull Request)
We found that @studyportals/github demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.