Coder Social home page Coder Social logo

octogas's Introduction

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:

  • Author of the Issue/Pull Request
  • Direct @mentions
  • Team @mentions
  • Watched repositories
  • Meta notifications (added to team, SSH key added, etc...)

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

Because Google Apps Scripts run on Google's infrastructure, you will need to set this script up to run on Google Scripts.

  1. Go here
  2. Go to "File > Make Copy..."
  3. Adjust the MY_TEAMS variable in the labler.gs file to list GitHub teams that you care about. (i.e. ["@myorg/myteam"])
  4. Go to "Resources > Current Project's Triggers"
  5. Create a new trigger to run the main function of labler.gs, muter.gs, or both however often you want. If you set it to run every minute you will hit a Google rate limit.

Hacking

You can build the source by running script/compile. The generated output in labler.gs and muter.gs can be copied directly into a Google Apps Script.

octogas's People

Contributors

btoews avatar jasonrudolph avatar mastahyeti avatar muan avatar parkr avatar tmm1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.