Skip to content

GitHub Action to prevent merging pull requests with changes in the Rails `db` directory

Notifications You must be signed in to change notification settings

rafbm/action-no-db-change

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

no-db-change

Don’t forget to cherry-pick and run the migration before merging. kthx

Usage

Enable in your Rails app by adding a main.yml file to your repo containing:

on: [push, pull_request]

jobs:
  no_db_change_trigger_job:
    runs-on: ubuntu-latest
    name: no-db-change-trigger
    steps:
    - name: no-db-change
      id: no-db-change
      uses: rafbm/action-no-db-change@master
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}

After the action has run at least once, you may want to enable “no-db-change” as a required status check in your repo settings.

About

GitHub Action to prevent merging pull requests with changes in the Rails `db` directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published