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:
@mentions
@mentions
Archives the messages after applying the labels. Disabled by default. Enable by setting SHOULD_ARCHIVE
to true
.
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.
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.
You can also manually install OctoGAS by following the instructions in the Hacking section.
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:
1B7FSrk5Zi6L1rSxxTDgDEUsPzlukDsi4KGuTMorsTQHhGBzBkMun4iDF
. Use version 7. github_client_secret
& github_client_id
and set them to the corresponding values from the OAuth application page that you just created. teams.gs
file, and look for the line that begins return OAuth2.createService
- examine this line for the call to setProjectKey()
. Insert the aforementioned project key here.https://script.google.com/macros/d/<projectKey>/usercallback
.