Skip to content

Latest commit

 

History

History

gh-watch

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

gh-watch

Manage notification subscriptions across GitHub repositories.

Installation

cd
GO111MODULE=on go get github.com/pmatseykanets/gh-tools/cmd/gh-watch@latest

Usage

Usage: gh-watch [flags] [owner][/repo]
  owner         Repository owner (user or organization)
  repo          Repository name

Flags:
  -help         Print this information and exit
  -no-repo=     The pattern to reject repository names
  -repo=        The pattern to match repository names
  -token        Prompt for an Access Token
  -unwatch      Unsubscribe from repository notifications
  -version      Print the version and exit
  -watch        Subscribe to repository notifications

Environment variables

GHTOOLS_TOKEN and GITHUB_TOKEN in the order of precedence can be used to set a GitHub access token.

Examples

List the subscription status for all repositories in the GitHub org foo:

gh-watch foo

Unsubscribe from all repositories in the GitHub org foo:

gh-watch -unwatch foo

Subscribe to notifications for repositories starting with api- in the GitHub org foo:

gh-watch -watch -repo '^api-' foo