mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
6827196e9e
Warns that a PR involves migrations and pings Markus.
10 lines
314 B
Ruby
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
|