An open API service indexing awesome lists of open source software.

https://github.com/yukihane/github-unwatch-repositories

Batch script for unwatching GitHub repositories targeting by regex
https://github.com/yukihane/github-unwatch-repositories

github

Last synced: about 1 month ago
JSON representation

Batch script for unwatching GitHub repositories targeting by regex

Awesome Lists containing this project

README

          

== What's This

Bash script for batch unwatching GitHub repositories.

Target name is specified by regular expression.

== Usage

=== Generate Token

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

Execute dry-run.

[source, sh]
----
./github-unwatch.bash [repository name pattern] [your account name] [token]
----

example:
[source, sh]
----
./github-unwatch.bash ^yukihane/ yukihane xxxxxxxx
----

When succeeded, target repositories are listed.

Next, unwatch actually, with `run` argument.

[source, sh]
----
./github-unwatch.bash [repository name pattern] [your account name] [token] run
----