mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Fix check for newer dangerfile
This commit is contained in:
@@ -29,10 +29,10 @@
|
||||
#++
|
||||
CORE_OR_MODULE_MIGRATIONS_REGEX = %r{(modules/.*)?db/migrate/.*\.rb}
|
||||
|
||||
def added_or_modified_migrations?
|
||||
def added_or_modified_migrations
|
||||
(git.modified_files + git.added_files).grep(CORE_OR_MODULE_MIGRATIONS_REGEX)
|
||||
end
|
||||
|
||||
if github.branch_for_base.match?(/^release/) && added_or_modified_migrations?
|
||||
if github.branch_for_base.match?(/^release/) && added_or_modified_migrations.any?
|
||||
warn "This PR has migration-related changes on a release branch. Ping @opf/operations"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user