https://github.com/getsentry/action-fast-revert
quickly revert a merged PR (bypassing CI)
https://github.com/getsentry/action-fast-revert
tag-non-production
Last synced: 3 months ago
JSON representation
quickly revert a merged PR (bypassing CI)
- Host: GitHub
- URL: https://github.com/getsentry/action-fast-revert
- Owner: getsentry
- Created: 2022-10-14T18:43:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-11T17:48:05.000Z (9 months ago)
- Last Synced: 2025-03-22T06:47:06.103Z (3 months ago)
- Topics: tag-non-production
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 36
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
action-fast-revert
==================revert a PR directly on the primary branch
**NOTE**: this assumes PRs are merged via squash
## usage
```yaml
on:
pull_request_target:
types: [labeled]jobs:
fast-revert:
runs-on: ubuntu-latest
if: |
github.event.label.name == 'Trigger: Revert'
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.BOT_TOKEN }}
- uses: getsentry/[email protected]
with:
pr: ${{ github.event.number }}
co_authored_by: ${{ github.event.sender.login }} <${{ github.event.sender.id }}+${{ github.event.sender.login }}@users.noreply.github.com>
# use the identity of the token
committer_name: getsentry-bot
committer_email: [email protected]
token: ${{ secrets.BOT_TOKEN }}
```