Skip to content
forked from srt32/revert

A GitHub Action to automatically revert a commit on a '/revert' comment

License

Notifications You must be signed in to change notification settings

Stefanos1981/revert

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action to revert a commit via a comment

After installation, comment /revert <commit_sha> to trigger the action.

revert

Installation

name: Automatic Revert

on:
  issue_comment:
    types: [created]

jobs:
  revert-commit:

    runs-on: ubuntu-latest

    if: contains(github.event.comment.body, '/revert')

    steps:
      - name: Checkout latest code
        uses: actions/checkout@v2
      - name: Automatic Revert
        uses: srt32/revert@v0.0.1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This Action is heavily inspired by rebase.

About

A GitHub Action to automatically revert a commit on a '/revert' comment

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 77.8%
  • Dockerfile 22.2%