This PR allows us to do the following things to an owlbot (automated) PR message:
- Removes the "Updates from OwlBot" and "Co-authored-by Owl Bot" footers
- Deletes the extra whitespace between each line
- Newlines still exist between
PiperOrigin-RevId
blocks
- Newlines still exist between
- Removes the component name and square brackets from the commit title
- This returns the title of the PR to the original piper commit message
- The component name is only important in the PR title, to help differentiate PRs during review.
- Removes the conventional commit in the commit title from the commit body
- This ensures it's not duplicated by release-please
- Usually this line is prefixed by an asterisk
Here is a demo video of the extension being used!
-
Clone this directory locally
git clone [email protected]:bshaffer/format-owlbot-pr-chrome-extension
-
Install the extension
- type
chrome://extensions
in the url bar and press enter. - Turn on the switch on the top right of the page that says "Developer mode";
- Click on the button on the top left of the page that says "Load unpacked".
- Select a folder where you cloned this extension (should be
format-owlbot-pr-chrome-extension
)
- type
-
When you are merging an OwlBot PR, click the icon for this extension and the PR will be formatted