Files
openproject/Dangerfile
T
Aaron Contreras 6827196e9e Add Dangerfile
Warns that a PR involves migrations and pings Markus.
2024-02-22 15:40:29 +01:00

10 lines
314 B
Ruby

CORE_OR_MODULE_MIGRATIONS_REGEX = %r{(modules/.*)?db/migrate/.*\.rb}
def added_or_modified_migrations?
(git.modified_files + git.added_files).grep(CORE_OR_MODULE_MIGRATIONS_REGEX)
end
if added_or_modified_migrations?
warn "This PR has migration-related changes on a release branch. Ping @opf/operations"
end