This Chrome extension adds a button to GitHub pull request pages that allows users to rerun failed GitHub Actions checks with a single click. It checks if there are any required checks that have failed, and if so, it enables a Rerun Failed Checks button. When clicked, the button sends a request to the GitHub API to automatically rerun the failed checks.
Follow these steps to set up the extension locally in Chrome:
Make sure you have the following files in a folder:
content.js
popup.html
popup.js
manifest.json
- Open Chrome and navigate to
chrome://extensions/
. - Enable Developer mode by toggling the switch in the top-right corner.
- Click on the Load unpacked button.
- Select the folder that contains the extension files.
- Once loaded, you should see the extension listed in the Chrome extensions page.
- A new icon for the extension will also appear in the Chrome toolbar.
- Click on the extension icon in the Chrome toolbar to open the popup.
- In the popup, enter your GitHub Personal Access Token. This token is required to authenticate API requests to rerun failed checks.
- Click the Save Token button. You will see a confirmation message once the token is saved successfully.
Click here for instructions on how to create a GitHub Personal Access Token.
- Navigate to any GitHub pull request page.
- The extension will automatically detect if the page is a pull request page.
- If there are any required checks that have failed, a Rerun Failed Checks button will appear next to the pull request's merge options.
- Click the button to rerun the failed checks. The extension will send the necessary API requests to GitHub to trigger the rerun.
Ensure that your GitHub Personal Access Token has the following permissions:
repo
workflow
These permissions are required to rerun workflows using the GitHub API.