Git Product home page Git Product logo

github-gmail's Introduction

Helper for GitHub notifications in Gmail

A web extension for Chrome and Firefox which adds keyboard shortcuts for opening and muting GitHub notification emails.

Features

Mail View Shortcut

Open your GitHub notifications in mail view:

  • Chrome: shift + g, shift + b in the background
  • Firefox: ctrl + g, ctrl + b in the background

Mail view button

Mute Thread

Mute thread in mail view. It will open a background window to load the mute thread URL, and close itself when done. This only works if you have an active GitHub session.

  • Chrome: shift + h
  • Firefox: ctrl + h

Mute thread button

List View Shortcut

ctrl + return to trigger one the action button when an email is selected using gmail key navigation (when the blue bar appears):

action button in list view

Installation

Shortcuts

Development

Load the extension manually and modify the code accordingly in these places:

Chrome: chrome/src/inject/inject.js.
Firefox: firefox/src/inject/inject.js.

github-gmail's People

Contributors

kbouw avatar lukecaputo avatar muan avatar nikai3d avatar suzyelbow avatar yoloseem avatar zburk avatar zerowidth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

github-gmail's Issues

Duplicated buttons

@muan Apologies if this is a noob mistake 😳, but I somehow have two different buttons.👬

Couldn't find dual installations or anything - any idea why? 😺

screen shot 2014-01-07 at 4 08 48 pm

An issue creation

Can I create an issue from a custom email? It would be very handy

Support for Inbox (A)

So! The successor of Gmail is in the process of getting ready, this featureset is very nice and it would be a waste if it wouldn't be integrated with Inbox somehow.

If you like I can send you an invite, maybe we can work it out!

Only chrome?

Maybe I'm wrong but please notify in the readme or/and in the description it's only for Chrome.

Thanks. :)

Port changes to firefox index.js

The main changes are in chrome/src/inject/inject.js, diff is: https://github.com/muan/github-gmail/compare/0e4b363e8db85649e7ef832b73b9e39c5a29dd9e...master?w=1 but judging by #36 there might be more, so would probably require a run through line by line. (firefox script: https://github.com/muan/github-gmail/blob/master/firefox/data/index.js)

I also removed jQuery from the Chrome extension recently so should do the same with the firefox version.

@ErinCall if you are up for helping out with this please 🙏 don't worry if not though. :) I can probably work on it in the weekend.

Error on Firefox

Says "This add-on could not be installed because it appears to be corrupt"

Adding support for GitLab

Thanks for this project!

I'd like to add support for Gitlab as well.
Is this something you are open to adding and/or merging a PR?

Thanks!

"Visit Thread on GitHub" takes an different link to unsubscribe

@muan

I've found that "Visit Thread on GitHub" takes an different link to unsubscribe instead of the link to an issue itself.

The below is the html code from the chrome dev tool(replaced the hash with a meaningless string though):

<a class="github-link T-I J-J5-Ji lS T-I-ax7 ar7" target="_blank" href="https://github.com/notifications/unsubscribe/xxxhogehogexxxx">Visit Thread on GitHub</a>

So when pushing the "Visit Thread on GitHub" button, then you unsubscribe the thread..

Mute button is broken

:(

GitHub (well, we) changed it so that the unsubscribe link in the footer requires auth, for good reasons, and the list-unsubscribe link is still not in the DOM so again we seem to be stuck.

add-on not installing in firefox

When I try to install xpi file It is giving error. [This add-on could not be install because It has not been verified]

What should I do now?

button duplicated when using compose

When I'm looking at a GH issue email, the button appears.

If I open a compose window with the c shortcut another button appears. When I close that window (esc) another button appears. They'll continue to add on if I repeat this.

If I use the compose button, another "Visit Thread on Github" button only appears when I close the compose window.

screenshot 2014-01-22 11 42 32

I reinstalled the newest version from Chrome and the issue persisted. Seems to be different from #16.

Don't change focus to new tabs (preference?)

I like using the button to open issues on GitHub, but when I triage my notifications I like to go through them quickly and then come back to certain issues that need more attention.

Changing focus to the newly opened tab breaks my flow, I'd like for the new tabs to be opened, but not change focus to them.

If you don't want to change the default behavior, would you be open to adding a preference for this @muan?

Open thread in background tab

Is it possible to make the button open the thread in a new tab without taking focus away from the inbox?

I often find myself opening a bunch of conversations at once and then going through the individual tabs.

Custom domains + github.com mixup

If where are custom domain links and github.com links, it will take people to the github.com link, which is not the expected behavior.

Explore Newsletter Unsubscribe

Github-Gmail opens unsubscribe link on explore newsletter mails. Explore page can be used instead of unsubscribe page on newsletters.

Make it a WebExtension (for Firefox Quantum+ compatibility)

Hello!

Love your extension/add-on on GMail, thank you for the hard work!

I recently switched back from Chrome to Firefox, and realized it could not be installed there:

2018-06-29_10-07-42

It seems Firefox Quantum (57+) only allows "WebExtensions". I have no idea of the work involved into making this a WebExtension, but I'm opening the issue, just in case someone would like to try.

Thank you!

Getting more done in GitHub with ZenHub

Hola! @Vitaminmm has created a ZenHub account for the muan organization. ZenHub is the only project management tool integrated natively in GitHub – created specifically for fast-moving, software-driven teams.


How do I use ZenHub?

To get set up with ZenHub, all you have to do is download the browser extension and log in with your GitHub account. Once you do, you’ll get access to ZenHub’s complete feature-set immediately.

What can ZenHub do?

ZenHub adds a series of enhancements directly inside the GitHub UI:

  • Real-time, customizable task boards for GitHub issues;
  • Multi-Repository burndown charts, estimates, and velocity tracking based on GitHub Milestones;
  • Personal to-do lists and task prioritization;
  • Time-saving shortcuts – like a quick repo switcher, a “Move issue” button, and much more.

Add ZenHub to GitHub

Still curious? See more ZenHub features or read user reviews. This issue was written by your friendly ZenHub bot, posted by request from @Vitaminmm.

ZenHub Board

Remove legacy code

There's always a gotoaction! ⚡

} else if( (title = selected.innerText.match(/\[(.*)\]\s.*\s\(\#(\d*)\)/)) ) {
// If the title looks like a GitHub notification email.
// org name coms from a label
regexp = new RegExp(regexp)
label = selected.querySelectorAll('.av')[0]
if(label) org = label.innerText.toLowerCase().match(regexp)
if(org) {
org = org[1]
repo = title[1]
issue_no = title[2]
url = "https://github.com/" + org + "/" + repo + "/issues/" + issue_no
chrome.extension.sendMessage({url: url})
}
}

A

Can't use capital G's in email's now

Looks like the keybinding to shift + g is preventing me from using uppercase G's when composing emails.

Could we possibly look at either moving the key binding to something like cmd + g or only available when viewing the email?

Nice extension btw!

Wrong link is opened for notification notification

The GitHub notification notifications that it sends out when you are automatically added to notifications for a repo are like

(subject: [GitHub] Subscribed to user/repo notifications)

Hey there, we're just writing to let you know that you've been automatically subscribed to a repository on GitHub.

    user/repo forked by X from origuser/repo
    Description
    https://github.com/user/repo

You'll receive notifications for all issues, pull requests, and comments that happen inside the repository. If you would like to stop watching this repository, you can manage your settings here:

    https://github.com/user/repo/subscription

You can unwatch this repository immediately by clicking here:

    https://github.com/user/repo/unsubscribe_via_email/<long random text>
You were automatically subscribed because you've been given push access to the repository.

Thanks!

When I Shift-G on this, it opens the last link, which unsubscribes me from notifications. I expected it to just open the repo.

Install Link?

Is there a link yet for installing this fine tool?

Cannot determine correct org from multiple labels

I just went to try the ctrl + enter version from the list view, and realised very quickly that it doesn’t work unless the first label is the one that represents the organization.

For example, I have multiple labels on my emails:

2013-11-26 at 10 15 am

With my cursor on any of these, for example the top one in the screenshot, pressing ctrl + enter takes me to https://github.com/gh-issues/github/issues/#… instead of https://github.com/github/github/issues/#…, since GH-Issues is the first label the JS encounters, not the GitHub label which represents the name of the org.

This may not be easily fixable, since knowing which label out of multiple labels is the one to use for the org name is not really something that the JS can determine. The only way I can think of to get around this would be to establish some convention for identifying which label represents the org. One way to do that might be to specify a prefix like org-<orgname> that the JS will look for via a regex match or something. That might make the labels ugly though, so it’s not really ideal.

❤️ the extension though, it’s great to have that shortcut available in email threads!

View on Github button not showing

Dear muan,

Can you please help me investigate why the "View on Github" button is not showing in my interface?

I am attaching a screenshot. Thank you!

image

Unsubscribing from threads?

@muan, awesome extension ✨

Would it be hard to add a shortcut to unsubscribe from the thread (i.e., the equivalent of going to the issue and clicking the "Unsubscribe" button)? That would be really helpful for people like me who watch lots of repositories but are only interested in a small fraction of threads, to help me keep my 📥 from 💣 🔥. Thanks!

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.