A simple command line application to get GitHub contributions from GraphQL API and notify them to IFTTT.
- Create
$HOME/.gngc.toml
for credentials. Or, you can also optionally specify a configuration file. (such as gngc --config config/config.toml)
cat << EOF > $HOME/.gngc.toml
[GitHub]
UserName = "UserName"
Token = "Token"
[IFTTT]
EventName = "EventName"
Token = "Token"
EOF
- Install
go install github.com/haytok/gngc@latest
> gngc -h
A simple command line application to get GitHub contributions and notify them to IFTTT.
Usage:
gngc [flags]
Flags:
--config string config file (default is $HOME/.gngc.toml)
-h, --help help for gngc
-n, --notify Get GitHub contributions and notify them to IFTTT.
> gngc
2022 年 02 月 07 日のコミット数は 5 です!
> gngc -n
200 OK
Congratulations! You've fired the tools event