Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github-comment-manager

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-comment-manager

Github commenting made easy

  • 1.1.5
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Github Comment Manager npm version

Overview

The Github Comment Manager makes interacting with Github comments easier. This module exposes four functions allowing you to create, read, update and remove comments.

Functions

Create

The create function will create a single review comment on a Github pull request.

import { create } from 'github-comment-manager';

create.comment({account, token, repository, pullRequest, comment});
ParameterDescription
accountGithub account username
tokenGithub account access token
repositoryRepository to comment on
pullRequestPull request number to add the comment to
commentComment text
Read

The read function will return a list of review comments on a pull request.

import { read } from 'github-comment-manager';

read.comments({account, token, repository, pullRequest});
ParameterDescription
accountGithub account username
tokenGithub account access token
repositoryRepository to retrieve comments from
pullRequestPull request number to read comments from

The example response can be found HERE.

Update

The update function will update a specific review comment on a Github pull request.

import { update } from 'github-comment-manager';

update.comment({account, token, repository, commentId, updatedComment});
ParameterDescription
accountGithub account username
tokenGithub account access token
repositoryRepository to update comment on
commentIdId of the comment to be updated
updatedCommentText which the comment will be updated to
Remove

The remove function will remove a specific review comment on a Github pull request.

import { remove } from 'github-comment-manager';

remove.comment({account, token, repository, commentId});
ParameterDescription
accountGithub account username
tokenGithub account access token
repositoryRepository to remove comment from
commentIdId of the comment to be removed

Contributing

Please see the contribution document for further details.

FAQs

Package last updated on 17 Jul 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc