Bitbucket Revert is a chrome extension for Bitbucket pull request merge revert script generation.
- Implemented 2 options:
- Commit reverted changes
- Create branch for reverted changes and bitbucket pull request
- Flexible configuration
- Simple usage
- Windows - using batch script to execute actions
- Git and curl (for pull request option) on PATH Environment Variable
1) Install chrome extension - Download
cd "C:\cms"
git fetch origin
git checkout -b feature/US1234_rev origin/master
git revert -m 1 01234567890
git push origin feature/US1234_rev
curl -H "Content-Type: application/json" -X POST -u admin:password -d "{"""title""":"""Revert feature/US1234""","""description""":"""Revert feature/US1234""","""state""":"""OPEN""","""open""":true,"""closed""":false,"""fromRef""":{"""id""":"""refs/heads/feature/US1234_rev""","""repository""":{"""slug""":"""cms""","""name""":null,"""project""":{"""key""":"""CMS"""}}},"""toRef""":{"""id""":"""refs/heads/master""","""repository""":{"""slug""":"""cms""","""name""":null,"""project""":{"""key""":"""CMS"""}}},"""locked""":false,"""links""":{"""self""":[null]}}" https://git.sbr.com/rest/api/1.0/projects/CMS/repos/cms/pull-requests
set /p END=Hit ENTER to continue...
cd "C:\cms"
git checkout master
git revert -m 1 01234567890
git push origin master
set /p END=Hit ENTER to continue...