{"id":17347201,"url":"https://github.com/ianmitchell/prisma-migration-warning-action","last_synced_at":"2025-04-14T20:43:49.104Z","repository":{"id":37792440,"uuid":"457642672","full_name":"IanMitchell/prisma-migration-warning-action","owner":"IanMitchell","description":"Checks PRs for potentially unsafe prisma migrations","archived":false,"fork":false,"pushed_at":"2023-03-03T20:04:56.000Z","size":2541,"stargazers_count":6,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T13:15:57.911Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IanMitchell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-10T05:27:09.000Z","updated_at":"2023-02-28T17:09:57.000Z","dependencies_parsed_at":"2025-02-26T02:33:27.493Z","dependency_job_id":"c0a3135f-ce45-4a44-84e1-fecb3d5cbfda","html_url":"https://github.com/IanMitchell/prisma-migration-warning-action","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"b200ee07ef2debd96a3695937f9feb3beb94818e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanMitchell%2Fprisma-migration-warning-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanMitchell%2Fprisma-migration-warning-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanMitchell%2Fprisma-migration-warning-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanMitchell%2Fprisma-migration-warning-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IanMitchell","download_url":"https://codeload.github.com/IanMitchell/prisma-migration-warning-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248960150,"owners_count":21189979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T16:47:56.279Z","updated_at":"2025-04-14T20:43:49.072Z","avatar_url":"https://github.com/IanMitchell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A very simple action that checks PRs to see if a Prisma schema has lines removed and if there are non Prisma file changes in the PR. If both conditions are true, it will post a configurable message or fail the check.\n\nYou may want this to ensure minimal downtime or deploy errors, but it isn't always accurate. It should be used as a loose rule. This is my first stab at the action; it could definitely be improved!\n\n## Usage\n\n```yaml\nname: Migration Warning\n\non: [pull_request]\n\njobs:\n  Warning:\n    name: Unsafe Migration Check\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n        with:\n          fetch-depth: 0\n      - uses: ianmitchell/prisma-migration-warning-action@main\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        with:\n          # Options go here\n          fail: true\n```\n\n## Options\n\n- `main-branch` [OPTIONAL] - the name of the main branch (sometimes master). Defaults to `main`.\n- `path` [OPTIONAL] - the path to the Prisma directory. Defaults to `prisma`.\n- `warning` [OPTIONAL] - whether to post a warning comment or not in the PR. Defaults to `true`.\n- `message` [OPTIONAL] - the message to post in the PR. Defaults to a generic warning message.\n- `repeat` [OPTIONAL] - whether to post a warning comment every time the action is run. Defaults to `false`.\n- `fail` [OPTIONAL] - whether to fail the PR check if the action fails. Defaults to `false`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianmitchell%2Fprisma-migration-warning-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianmitchell%2Fprisma-migration-warning-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianmitchell%2Fprisma-migration-warning-action/lists"}