Trivial helpers to setup and run codespell or shellcheck'ing for a GitHub project.
codespellit-- add codespell workflow, and configshellcheckit-- add shellcheck workflowprit-- submit PR in your fork
All are just script in the top directory ATM, place them into your PATH for convenience or just invoke with full path, e.g.
cd /root/of/project/git
shellcheckit # to generate remote clone, add remote, commit workflow
prit # send a PR
Disclaimer: they are ad-hoc and ugly, but work! Use at your own risk and/or pleasure.
Improvement or proper reimplementation PRs are welcome.
-
Uses GitHub
ghclient (sudo apt-get install ghon Debian-based systems). -
Relies on two config vars being set in your global
~/.gitconfig(pardon for historical inconsistency), optionally:-
github.user-- username on github to use to add remote named after it with prefix gh-, i.e. for me it isgh-yarikoptic. -
hub.oauthtoken-- token to use if noGITHUB_TOKENvariable is set. I would recommend to not store in the default~/.gitconfigwhich you might eventually share with someone. One solution is to have dedicated config like~/.gitconfig-privatewith restricted permissions and outside of any VCS, and then add to your~/.gitconfig[include] path = ~/.gitconfig-private
-