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 an access token to perform these actions on your repositories. Follow the instructions for creating a personal access token on GitHub and be sure to give it repo
access.
If you are using GitLab instead, follow these instructions for creating a personal access token on GitLab instead.
To use hfest-repo
, run:
hfest-repo -t <TOKEN>
If you don't specify your GitHub token, the tool will look for an environment variable named ACCESS_TOKEN
.
To use GitLab instead of GitHub
hfest-repo -vcs Gitlab -t <TOKEN>
if you don't specify your version control system, Github or Gitlab, it will default to Github.
hfest-repo -t <TOKEN> -u <USER> --labels
hfest-repo --vcs Gitlab -t <TOKEN> -u <USER> --labels
hfest-repo -t <TOKEN> -u <USER> --labels --dry-run
hfest-repo -t <TOKEN> -u <USER>
hfest-repo -t <TOKEN> -o <ORG>
hfest-repo -t <TOKEN> -u <USER> --labels
hfest-repo -t <TOKEN> -o <ORG> --labels
hfest-repo -t <TOKEN> -u <USER>/-o <ORG> --remove
hfest-repo -t <TOKEN> -u <USER>/-o <ORG> --remove
hfest-repo -t <TOKEN> -u <USER>/-o <ORG> --labels --remove
hfest-repo -t <TOKEN> -u <USER>/-o <ORG> -p fun
hfest-repo -t <TOKEN> -u <USER> --include-forkes --include-private
usage: hfest-repo [<flags>]
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-V, --vcs="Github" GitHub or GitLab, defaults to GitHub
-t, --access-token=ACCESS-TOKEN
GitHub or GitLab API Token - if unset, attempts to use this tool's stored token of its current default context. env var: ACCESS_TOKEN
-u, --user=USER Github or Gitlab user to fetch repos of
-o, --org=ORG Github org or Gitlab group to fetch repos of
-p, --topic="hacktoberfest" topic to add to repos
-r, --remove Remove topic and labels from all repos. Include -l to
remove labels
-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