Bash script for batch unwatching GitHub repositories.
Target name is specified by regular expression.
Generate token on https://github.com/settings/tokens .
If treating private repositories, needs repo scope checked.
If treating only public repositories, needs any checks.
Execute dry-run.
./github-unwatch.bash [repository name pattern] [your account name] [token]
example:
./github-unwatch.bash ^yukihane/ yukihane xxxxxxxx
When succeeded, target repositories are listed.
Next, unwatch actually, with run
argument.
./github-unwatch.bash [repository name pattern] [your account name] [token] run