hfest
is a tool that adds the hacktoberfest
topic to every public repository
associated with a user or a GitHub org. It can also create the invalid
, spam
and hacktoberfest-accepted
labels in your repos.
- Download the latest release from the releases page.
- Either move the binary to
/usr/local/bin
or run it locally.
You will need a GitHub token to perform these actions on your repositories. Follow the instructions for creating a personal access token and be sure to give it repo
access.
To use hfest-repo
, run:
hfest-repo -t <GITHUB_TOKEN>
If you don't specify your GitHub token, the tool will look for an environment variable named GITHUB_ACCESS_TOKEN
.
hfest-repo -t <GITHUB_TOKEN> -u <GITHUB_USER> --labels
hfest-repo -t <GITHUB_TOKEN> -u <GITHUB_USER> --labels --dry-run
hfest-repo -t <GITHUB_TOKEN> -u <GITHUB_USER>
hfest-repo -t <GITHUB_TOKEN> -o <GITHUB_ORG>
hfest-repo -t <GITHUB_TOKEN> -u <GITHUB_USER> --labels
hfest-repo -t <GITHUB_TOKEN> -o <GITHUB_ORG> --labels
hfest-repo -t <GITHUB_TOKEN> -u <GITHUB_USER>/-o <GITHUB_ORG> --remove
hfest-repo -t <GITHUB_TOKEN> -u <GITHUB_USER>/-o <GITHUB_ORG> -p fun
hfest-repo -t <GITHUB_TOKEN> -u <GITHUB_USER> --include-forkes --include-private
usage: hfest-repo [<flags>]
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-t, --access-token=ACCESS-TOKEN
GitHub API Token - if unset, attempts to use this tool's stored token of its current default context. env var: GITHUB_ACCESS_TOKEN
-u, --gh-user=GH-USER github user to fetch repos of
-o, --gh-org=GH-ORG github org to fetch repos of
-p, --topic="hacktoberfest" topic to add to repos
-r, --remove Remove hacktoberfest topic from all repos
-l, --labels Add spam, invalid, and hacktoberfest-accepted labels to repo
--include-forks Include forks
--include-private Include private repos
-d, --dry-run Show more or less what will be done without doing anything