Skip to content

Commit 441ebc4

Browse files
davidmotsonDavid Motsonashvili
and
David Motsonashvili
authored
add manual override to avoid releasing everyone with cleanup PRs (#4978)
Co-authored-by: David Motsonashvili <[email protected]>
1 parent b1f2130 commit 441ebc4

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

buildSrc/src/main/java/com/google/firebase/gradle/plugins/ReleaseGenerator.kt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,6 @@ abstract class ReleaseGenerator : DefaultTask() {
120120
.associateWith { getDirChanges(repo, branchRef, headRef, it) }
121121
.toMap()
122122

123-
private fun parseSubProjects(rootDir: File) =
124-
File(rootDir, "subprojects.cfg")
125-
.readLines()
126-
.filterNot { it.startsWith("#") || it.isEmpty() }
127-
.toSet()
128-
129123
@Throws(GitAPIException::class)
130124
private fun getObjectRefForBranchName(repo: Git, branchName: String) =
131125
repo
@@ -183,10 +177,10 @@ abstract class ReleaseGenerator : DefaultTask() {
183177
.log()
184178
.addPath(directory)
185179
.addRange(previousReleaseRef, currentReleaseRef)
186-
.setMaxCount(1)
180+
.setMaxCount(10)
187181
.call()
188-
.iterator()
189-
.hasNext()
182+
.filter { !it.fullMessage.contains("NO_RELEASE_CHANGE") }
183+
.isNotEmpty()
190184

191185
private fun getDirChanges(
192186
repo: Git,

0 commit comments

Comments
 (0)