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
if (danger.git.modifiedFiles.count > bigPRThreshold) {
warn("Pull Request size seems relatively large. If this Pull Request contains multiple changes,splitting each into separate PR will helps faster, easier review.");
}
// Make it more obvious that a PR is a work in progress and shouldn't be merged yet
if danger.github?.pullRequest.title.contains("WIP") == true {
warn("PR is marked as Work in Progress")
}
// Warn when files has been updated but not tests.
if hasSourceChanges && !danger.git.modifiedFiles.contains(where: { $0.isInTests }) {
warn("The source files were changed, but the tests remain unmodified. Consider updating or adding to the tests to match the source changes.")