-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[patch] adding label to contributions from digger, which defaults to …
…the project name
- Loading branch information
1 parent
c1f2ab8
commit 6f574b3
Showing
7 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ data class Contribution( | |
val ease: Int?, | ||
val storyId: String?, | ||
val semver: String?, | ||
val label: String?, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -359,6 +359,7 @@ class DiggerPluginFunctionalTest { | |
"ease" to null, | ||
"storyId" to null, | ||
"semver" to null, | ||
"label" to projectDir.name, | ||
), | ||
mapOf( | ||
"lastCommit" to firstCommit.id, | ||
|
@@ -373,6 +374,7 @@ class DiggerPluginFunctionalTest { | |
"ease" to null, | ||
"storyId" to null, | ||
"semver" to null, | ||
"label" to projectDir.name, | ||
), | ||
), | ||
parseAll(allOutput.readText()), | ||
|
@@ -416,6 +418,7 @@ class DiggerPluginFunctionalTest { | |
"ease" to 3, | ||
"storyId" to null, | ||
"semver" to null, | ||
"label" to projectDir.name, | ||
), | ||
mapOf( | ||
"authors" to listOf("[email protected]", "[email protected]"), | ||
|
@@ -425,6 +428,7 @@ class DiggerPluginFunctionalTest { | |
"ease" to 4, | ||
"storyId" to null, | ||
"semver" to null, | ||
"label" to projectDir.name, | ||
), | ||
), | ||
parseAll(allOutput.readText()), | ||
|
@@ -460,6 +464,7 @@ class DiggerPluginFunctionalTest { | |
"ease" to 3, | ||
"storyId" to "DOGCOW-18", | ||
"semver" to null, | ||
"label" to projectDir.name, | ||
), | ||
mapOf( | ||
"authors" to listOf("[email protected]", "[email protected]"), | ||
|
@@ -469,6 +474,7 @@ class DiggerPluginFunctionalTest { | |
"ease" to null, | ||
"storyId" to "DOGCOW-17", | ||
"semver" to null, | ||
"label" to projectDir.name, | ||
), | ||
), | ||
parseAll(allOutput.readText()), | ||
|
@@ -503,6 +509,7 @@ class DiggerPluginFunctionalTest { | |
"ease" to 3, | ||
"storyId" to "DOGCOW-17", | ||
"semver" to null, | ||
"label" to projectDir.name, | ||
), | ||
), | ||
parseAll(allOutput.readText()), | ||
|
@@ -516,6 +523,9 @@ class DiggerPluginFunctionalTest { | |
plugins { | ||
id("com.zegreatrob.tools.digger") | ||
} | ||
digger { | ||
label.set("AwesomeProject") | ||
} | ||
""".trimIndent(), | ||
) | ||
val grgit = initializeGitRepo(listOf("[DOGCOW-17] here's a message")) | ||
|
@@ -539,6 +549,7 @@ class DiggerPluginFunctionalTest { | |
"ease" to 3, | ||
"storyId" to "DOGCOW-17, DOGCOW-18", | ||
"semver" to null, | ||
"label" to "AwesomeProject", | ||
), | ||
), | ||
parseAll(allOutput.readText()), | ||
|
@@ -581,6 +592,7 @@ class DiggerPluginFunctionalTest { | |
"firstCommit" to firstCommit.id, | ||
"ease" to 4, | ||
"storyId" to null, | ||
"label" to projectDir.name, | ||
), | ||
), | ||
parseAll(allOutput.readText()), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters