Github Notifier
Project description
.. image:: https://github.com/FFY00/discord-github-release-notifier/raw/master/logo.png
=======================
Discord Github Release Notifier
=======================
.. image:: https://img.shields.io/github/release/FFY00/discord-github-release-notifier.svg
:alt: latest release
:target: http://github.com/FFY00/discord-github-release-notifier/releases
.. image:: https://img.shields.io/pypi/v/discord-github-release-notifier.svg
:alt: latest release
:target: https://pypi-hypernode.com/project/discord-github-release-notifier/
This a fork of [femtopixel](https://github.com/femtopixel)'s [Github Release Notifier](https://github.com/femtopixel/github-release-notifier) with the notifications adapted to Discord.
Installation
------------
.. code::
pip3 install discord-github-release-notifier
Usage
-----
.. code::
usage: discord-github-release-notifier [-h] [--action {cron,subscribe,unsubscribe}]
[--package PACKAGE] [--webhook WEBHOOK] [--uuid UUID]
optional arguments:
-h, --help show this help message and exit
--action {cron,subscribe,unsubscribe}, -a {cron,subscribe,unsubscribe}
Action to do (default: cron)
--package PACKAGE, -p PACKAGE
Github package name / url (required for
subscribe/unsubscribe) - prints uuid on subscription
--webhook WEBHOOK, -w WEBHOOK
URL to your webhook (required for
subscribe/unsubscribe)
--uuid UUID, -u UUID UUID of your webhook (required for unsubscribe)
Example
~~~~~~~
First, I register my webhook :
.. code::
discord github-release-notifier --action subscribe --webhook https://discordapp.com/api/webhooks/{webhook.id}/{webhook.token} --package jaymoulin/google-music-manager
an UUID is printed. this UUID will be required to unsubscribe the webhook.
When `jaymoulin/google-music-manager` releases a new version, `https://discordapp.com/api/webhooks/{webhook.id}/{webhook.token}` will be called with the release details.
For this to happen, the system should check if a new version have been released.
We can do that by calling `discord-github-release-notifier` without any parameter or setting `--action` to `cron` (which is default).
To automate this process, we could add this process in a cronjob:
.. code::
(crontab -l ; echo "0 0 * * * discord-github-release-notifier") | sort - | uniq - | crontab -
This will check every day at midnight if new versions have been released.
Submitting bugs and feature requests
------------------------------------
Bugs and feature request are tracked on GitHub
Author
------
Jay MOULIN jaymoulin+github-release-notifier@gmail.com See also the list of contributors which participated in this program.
Filipe LAÍNS filipe.lains@gmail.com (adaptatiion to discord)
License
-------
Discord Github Release Notifier is licensed under the MIT License
=======================
Discord Github Release Notifier
=======================
.. image:: https://img.shields.io/github/release/FFY00/discord-github-release-notifier.svg
:alt: latest release
:target: http://github.com/FFY00/discord-github-release-notifier/releases
.. image:: https://img.shields.io/pypi/v/discord-github-release-notifier.svg
:alt: latest release
:target: https://pypi-hypernode.com/project/discord-github-release-notifier/
This a fork of [femtopixel](https://github.com/femtopixel)'s [Github Release Notifier](https://github.com/femtopixel/github-release-notifier) with the notifications adapted to Discord.
Installation
------------
.. code::
pip3 install discord-github-release-notifier
Usage
-----
.. code::
usage: discord-github-release-notifier [-h] [--action {cron,subscribe,unsubscribe}]
[--package PACKAGE] [--webhook WEBHOOK] [--uuid UUID]
optional arguments:
-h, --help show this help message and exit
--action {cron,subscribe,unsubscribe}, -a {cron,subscribe,unsubscribe}
Action to do (default: cron)
--package PACKAGE, -p PACKAGE
Github package name / url (required for
subscribe/unsubscribe) - prints uuid on subscription
--webhook WEBHOOK, -w WEBHOOK
URL to your webhook (required for
subscribe/unsubscribe)
--uuid UUID, -u UUID UUID of your webhook (required for unsubscribe)
Example
~~~~~~~
First, I register my webhook :
.. code::
discord github-release-notifier --action subscribe --webhook https://discordapp.com/api/webhooks/{webhook.id}/{webhook.token} --package jaymoulin/google-music-manager
an UUID is printed. this UUID will be required to unsubscribe the webhook.
When `jaymoulin/google-music-manager` releases a new version, `https://discordapp.com/api/webhooks/{webhook.id}/{webhook.token}` will be called with the release details.
For this to happen, the system should check if a new version have been released.
We can do that by calling `discord-github-release-notifier` without any parameter or setting `--action` to `cron` (which is default).
To automate this process, we could add this process in a cronjob:
.. code::
(crontab -l ; echo "0 0 * * * discord-github-release-notifier") | sort - | uniq - | crontab -
This will check every day at midnight if new versions have been released.
Submitting bugs and feature requests
------------------------------------
Bugs and feature request are tracked on GitHub
Author
------
Jay MOULIN jaymoulin+github-release-notifier@gmail.com See also the list of contributors which participated in this program.
Filipe LAÍNS filipe.lains@gmail.com (adaptatiion to discord)
License
-------
Discord Github Release Notifier is licensed under the MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for discord_github_release_notifier-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5904d80c9f0a37686da25710c30ddc54079067107e8630a597a8ccec272bada6 |
|
MD5 | 4fd349d9e524c437e3165cd3c479c9b5 |
|
BLAKE2b-256 | 0dbb79a6382910dd490cde129dff666beb2671e7c1612b881bf7c2fc42b5ffbe |
Close
Hashes for discord_github_release_notifier-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65eadc31a806f7a28b883f11bcdd9016b2cb0ff3fa00bd749ce251439db2ebac |
|
MD5 | c4792c93a974832d8f02109752f5826a |
|
BLAKE2b-256 | 4b5ac884a6c60eb832541c316179cc06bc94bfa09bba69453292182ecd81f56e |