https://github.com/haytok/gngc
A simple command line application to get GitHub contributions and notify them to IFTTT.
https://github.com/haytok/gngc
cli github go graphql
Last synced: 4 months ago
JSON representation
A simple command line application to get GitHub contributions and notify them to IFTTT.
- Host: GitHub
- URL: https://github.com/haytok/gngc
- Owner: haytok
- Created: 2022-02-05T15:34:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-05T13:51:51.000Z (about 4 years ago)
- Last Synced: 2026-01-14T21:50:01.894Z (5 months ago)
- Topics: cli, github, go, graphql
- Language: Go
- Homepage:
- Size: 114 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gngc (Get and Notify GitHub Contributions)
A simple command line application to get GitHub contributions from [GraphQL API](https://docs.github.com/en/graphql) and notify them to [IFTTT](https://ifttt.com/).

# How to setup
- Create `$HOME/.gngc.toml` for credentials. Or, you can also optionally specify a configuration file. (such as gngc --config config/config.toml)
```bash
cat << EOF > $HOME/.gngc.toml
[GitHub]
UserName = "UserName"
Token = "Token"
[IFTTT]
EventName = "EventName"
Token = "Token"
EOF
```
- Install
```bash
go install github.com/haytok/gngc@latest
```
# How to use
```bash
> 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.
```
```bash
> gngc
2022 年 02 月 07 日のコミット数は 5 です!
```
```bash
> gngc -n
200 OK
Congratulations! You've fired the tools event
```