You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?"
31
-
})
28
+
const commentExists = comments.some(comment =>
29
+
comment.body.includes("It looks like you've made changes to the migrations.")
30
+
);
31
+
32
+
if (!commentExists) {
33
+
await github.rest.issues.createComment({
34
+
owner: context.repo.owner,
35
+
repo: context.repo.repo,
36
+
issue_number: context.issue.number,
37
+
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?"
0 commit comments