-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description This PR adds new functionality to this extension, now when browsing the github site you can request review for all reviewers who previously requested changes to a PR. ## Usage Press the `Alt+R` keyboard shortcut while on github.com. This will request review for everyone who previously request changes to a pull request ![Peek 2023-02-24 17-05](https://user-images.githubusercontent.com/7268602/221282174-df49f42a-647b-4c96-a7f5-97b255352e3a.gif)
- Loading branch information
1 parent
c6bb4b8
commit 15a3e57
Showing
4 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
function sendCommandToTab(command) { | ||
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { | ||
chrome.tabs.sendMessage(tabs[0].id, {action: command}); | ||
}); | ||
} | ||
|
||
chrome.commands.onCommand.addListener(function(command) { | ||
console.log('Command:', command) | ||
console.log('Command:', command); | ||
if (command === "close-github-pr-files") { | ||
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { | ||
chrome.tabs.sendMessage(tabs[0].id, {action: "closePRFiles"}); | ||
}); | ||
sendCommandToTab("closePRFiles"); | ||
} | ||
if (command === "re-request-review") { | ||
sendCommandToTab("requestReview"); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters