1.1.5 • Published 6 years ago

github-comment-manager v1.1.5

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
6 years ago

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.

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago