An open API service indexing awesome lists of open source software.

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.

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/).

![gngc](https://user-images.githubusercontent.com/44946173/153080398-7db5ef05-3883-4f6d-a405-0a1e16eb2017.png)

# 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
```