btoews / OctoGAS

GitHub Email Notifications Google Apps Script for Gmail
100 stars 22 forks source link

GitHub notifications Google Apps Script

Features

Label

Creates/maintains Gmail labels based on GitHub notification metadata.

Adds messages to folders based on the reason for the notification. It will create/manage labels for:

Archive

Archives the messages after applying the labels. Disabled by default. Enable by setting SHOULD_ARCHIVE to true.

Mute

Finds muted Gmail threads from GitHub conversations and unsubscribes from the GitHub conversation. It then unmutes the Gmail Thread. The result is that GitHub's logic of re-subscribing on new @mentions is retained while taking advantage of Gmail's interface for muting conversations.

Installation

OctoGAS can be installed to your Google account from the OctoGAS website. This requires you to authorize OctoGAS to manage your Gmail messages. Installing the labler also requires you to authorize OctoGAS to access your GitHub account, so it knows which teams you are on.

OctoGAS website

You can also manually install OctoGAS by following the instructions in the Hacking section.

Hacking

Make your own copy of the Google Apps Script project by going here and selecting "File > Make Copy..." in the menu bar.

You can build the source by running script/compile. The generated output can be copied directly into a Google Apps Script project.

After copying the project or copying the built artifacts into a new project, take the following steps to get it running: