gh-watch

command
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 13 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL