https://github.com/rafbm/action-no-db-change
GitHub Action to prevent merging pull requests with changes in the Rails `db` directory
https://github.com/rafbm/action-no-db-change
Last synced: over 1 year ago
JSON representation
GitHub Action to prevent merging pull requests with changes in the Rails `db` directory
- Host: GitHub
- URL: https://github.com/rafbm/action-no-db-change
- Owner: rafbm
- Created: 2020-02-03T22:33:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-18T19:21:31.000Z (almost 4 years ago)
- Last Synced: 2025-02-11T11:42:20.485Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 891 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```yaml
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](https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks) in your repo settings.