You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This scriptofFunction is for GitHub of Pull Request(PR)Add a button on the page,Used to quickly PR Participants added as co-author,This simplifies the collaboration process。
Modified the original script,Make it supportiveTOKENAccess is used to avoidAPIAccess frequency limit
Function description
First run initialization
When the script is first run,The user will be prompted to enter GitHub of Token。Token Will be stored securely,Used for subsequent calls GitHub API。
Dynamic page loading support
The script will listen GitHub Navigation events on the page(turbo:render),To ensure that the button is still available when the page toggles。
user interface
exist PR Add a button to the page "Add co-authors" and status prompt box,Users can add this button with one click co-author information。
Automatically acquire participants
The script will be from the current one PR Extract participants from the following sources:
PR Comment
Review Comment
Audit record
Generate for each participant Co-authored-by Format message。
usage
Installation script
Open GitHub PR page。
Click the script to generate automatically "Add co-authors" Button。
The script will automatically transfer participants’ Co-authored-by Add information to the commit message。
Use effect
Help
Recommended browser and script manager:
Greasemonkey + Waterfox
Tampermonkey/Violentmonkey + Firefox
Tampermonkey/Violentmonkey + Chrome
Userscripts + ios Safari
Violentmonkey/KiWiBrowser + Android
If you need to learn more about how to install user scripts,Click meView the teaching of pictures and texts!