-
-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Description
There's always a gotoaction! ⚡
github-gmail/chrome/src/inject/inject.js
Lines 114 to 130 in acecf67
| } 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}) | |
| } | |
| } |
Metadata
Metadata
Assignees
Labels
No labels