Fix regression with doc dir rename
This commit is contained in:
parent
07a47741a1
commit
dc140145d6
1 changed files with 13 additions and 1 deletions
|
|
@ -39,7 +39,19 @@ object PekkoValidatePullRequest extends AutoPlugin {
|
|||
}, additionalTasks := Seq.empty)
|
||||
|
||||
override lazy val buildSettings = Seq(
|
||||
validatePullRequest / includeFilter := PathGlobFilter("akka-*/**"),
|
||||
validatePullRequest / includeFilter := {
|
||||
val ignoredProjects = List(
|
||||
"pekko", // This is the root project
|
||||
"serialVersionRemoverPlugin")
|
||||
|
||||
loadedBuild.value.allProjectRefs.collect {
|
||||
case (_, project) if !ignoredProjects.contains(project.id) =>
|
||||
val directory = project.base.getPath.split(System.getProperty("file.separator")).last
|
||||
PathGlobFilter(s"$directory/**")
|
||||
}.fold(new FileFilter { // TODO: Replace with FileFilter.nothing when https://github.com/sbt/io/pull/340 gets released
|
||||
override def accept(pathname: File): Boolean = false
|
||||
})(_ || _)
|
||||
},
|
||||
validatePullRequestBuildAll / excludeFilter := PathGlobFilter("project/MiMa.scala"),
|
||||
prValidatorGithubRepository := Some("akka/akka"),
|
||||
prValidatorTargetBranch := "origin/main")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue