This extension improves your productivity.
You can also save data in your local storage, then just click update-button away in your GitHub pull request page.
F2E: React
Design: antd
API: Google Chrome API
Third party:
- Build project.
npm run build
- Go to google extension platform.
chrome://extensions/
- Upload build package.
- Enjoy it.
- Create project
- For example, you can use React, or just simple popup HTML.
- Create or modify manifest.json
- If you use framework, you can find it in public folder.
- Setting attributes
- You can customize its icon.
{
"manifest_version": 2,
"name": "GitHub PR tools",
"description": "Easily add content in your PR form.",
"version": "0.0.1",
"browser_action": {
"default_popup": "index.html",
"default_title": "Open the popup"
},
"icons": {
"16": "logo.png",
"48": "logo.png",
"128": "logo.png"
},
"permissions": [
"tabs",
"storage",
"activeTab",
"<all_urls>"
]
}
- Setting content_security_policy
- It is very important, you need to copy sha256-id to the manifest.json, or you will get error in your console, also not usage.
{
"manifest_version": 2,
"name": "GitHub PR tools",
"description": "Easily add content in your PR form.",
"version": "0.0.1",
"browser_action": {
"default_popup": "index.html",
"default_title": "Open the popup"
},
"icons": {
"16": "logo.png",
"48": "logo.png",
"128": "logo.png"
},
"permissions": [
"tabs",
"storage",
"activeTab",
"<all_urls>"
],
"content_security_policy": "script-src 'self' 'sha256-......='; object-src 'self'"
}
- Setting permissions attribute
- Note that if you want to use chrome API, make sure you have added permissions.
- Build project
- Load and Use it