Skip to content

Commit 0e6b64e

Browse files
committed
ci: add action items in the comment when a migration has been added
1 parent fe00c8b commit 0e6b64e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/check-migrations.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Check Migrations
33
on:
44
pull_request:
55
types: [opened, synchronize]
6-
paths:
7-
- 'src/database/migrations/**'
6+
# paths:
7+
# - 'src/database/migrations/**'
88

99
permissions:
1010
issues: write
@@ -38,7 +38,11 @@ jobs:
3838
owner: context.repo.owner,
3939
repo: context.repo.repo,
4040
issue_number: context.issue.number,
41-
body: "It looks like you've made changes to the migrations. Have you run `npm run db:generate-schema` to ensure the updated schemas are included in your PR?"
41+
body: `It looks like you've made changes to the migrations. Thanks for your contribution!
42+
- [ ] Have you run `npm run db:generate-schema` to ensure the updated schemas are included in your PR?
43+
- [ ] Have you run `npm run db:migrate` and then `npm run db:rollback` to confirm that rollbacks are working as expected?
44+
45+
Note: Please avoid making changes to existing migration files, as this will alter the file hash and could break migrations in production environments.`
4246
});
4347
console.log("Comment added");
4448
} else {

0 commit comments

Comments
 (0)