Skip to content

Updates Gmail labels for GitHub notification mails based on GitHub issue tracker labels.

Notifications You must be signed in to change notification settings

anniesullie/GitHubGmailLabels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

GitHubGmailLabels

This is a Google Apps Script that updates Gmail labels for GitHub notification mails based on their corresponding GitHub issue tracker labels.

Setup

  1. Go to script.google.com. It will automatically create a new script. Paste in this script from UpdateLabels.gs.
  2. Edit the CUSTOM_MAPPING variable to establish a mapping between GitHub issue labels and Gmail labels.
  3. Add the Gmail labels that you want to be marked as important in the MARK_IMPORTANT list. (note these are the Gmail labels and not the GitHub labels)
  4. Set either to use a strict_mode or not, if not using strict_mode: All other labels will be mapped as is under a project label.
  5. (Optional, but recommended) Create a GitHub access token and paste its value into the ACCESS_TOKEN variable. This will increase the rate limit on API calls.
  6. Name and save your script.
  7. Install a time-driven trigger by clicking on the clock button, clicking "Click here to add one now", and configuring how often you want the script to run.

Future work

I haven't had time to look at the way apps scripts are published to make this installable, and whether it could be configurable if it was installable.

I think the same approach could also be used to label mails from crbug and rietveld.

About

Updates Gmail labels for GitHub notification mails based on GitHub issue tracker labels.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •