Skip to content

blamattina/github-hotline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-hotline Build Status npm

Simple command line utility for commenting on pull requests

Getting Started

npm install -g github-hotline

Commands

issue-comment

Usage

USAGE: issue-comment [--once] USER/REPO#NUMBER COMMENT...
       issue-comment [--once] -u USER -r REPO -n NUMBER COMMENT...

  Issue a comment on a pull request.

  USER        github user name
  REPO        github repository name
  NUMBER      pull request number
  COMMENT     comment to leave

  Options:

  --once      create this comment if it does not already exist

Example:

  issue-comment blamattina/github-hotline#3400 This works great!

Example

# Create a comment on an issue
$ export GITHUB_USERNAME=username
$ export GITHUB_PASSWORD=personal-access-token
$ issue-comment blamattina/github-hotline#13 Looks good :zap:
Comment Created.
# Create a comment on an issue if one with the same body does not exist
$ issue-comment --once blamattina/github-hotline#1 Looks good
Comment created.
$ issue-comment --once blamattina/github-hotline#1 Looks good
Not created. A comment with this message already exists.