-
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] continuing transition to adapter
- Loading branch information
1 parent
de18a78
commit 5c7d5b5
Showing
6 changed files
with
46 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,7 +179,7 @@ interface CurrentContributionTestSpec : SetupWithOverrides { | |
fun `currentContributionData will include most recent tag range when head is tagged`() { | ||
setupWithDefaults() | ||
|
||
val grgit = initializeGitRepo( | ||
val (grgit, _) = initializeGitRepo( | ||
directory = projectDir.absolutePath, | ||
addFileNames = addFileNames, | ||
commits = listOf( | ||
|
@@ -226,7 +226,7 @@ interface CurrentContributionTestSpec : SetupWithOverrides { | |
fun `when head is tagged currentContributionData will use include tag info`() { | ||
setupWithDefaults() | ||
|
||
val grgit = initializeGitRepo( | ||
val (grgit, _) = initializeGitRepo( | ||
directory = projectDir.absolutePath, | ||
addFileNames = addFileNames, | ||
commits = listOf( | ||
|
@@ -268,19 +268,18 @@ interface CurrentContributionTestSpec : SetupWithOverrides { | |
fun `currentContributionData will not include authors from commits before last tag`() { | ||
setupWithDefaults() | ||
|
||
val grgit = | ||
initializeGitRepo( | ||
directory = projectDir.absolutePath, | ||
addFileNames = addFileNames, | ||
commits = listOf( | ||
"""here's a message | ||
val (grgit, _) = initializeGitRepo( | ||
directory = projectDir.absolutePath, | ||
addFileNames = addFileNames, | ||
commits = listOf( | ||
"""here's a message | ||
| | ||
| | ||
|Co-authored-by: First Guy <[email protected]> | ||
|Co-authored-by: Second Gui <[email protected]> | ||
""".trimMargin(), | ||
), | ||
) | ||
""".trimMargin(), | ||
), | ||
) | ||
|
||
grgit.addTag("release") | ||
grgit.addCommitWithMessage( | ||
|
@@ -396,7 +395,7 @@ interface CurrentContributionTestSpec : SetupWithOverrides { | |
@Test | ||
fun `will handle merge commits on merged branches correctly`() { | ||
setupWithDefaults() | ||
val grgit = initializeGitRepo(listOf("first")) | ||
val (grgit, _) = initializeGitRepo(listOf("first")) | ||
grgit.head() | ||
|
||
grgit.addTag("release") | ||
|
@@ -438,7 +437,7 @@ interface CurrentContributionTestSpec : SetupWithOverrides { | |
setupWithOverrides( | ||
tagRegex = "v(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?", | ||
) | ||
val grgit = initializeGitRepo(listOf("first")) | ||
val (grgit, _) = initializeGitRepo(listOf("first")) | ||
grgit.head() | ||
|
||
grgit.addTag("v1.0.0") | ||
|
@@ -477,7 +476,7 @@ interface CurrentContributionTestSpec : SetupWithOverrides { | |
@Test | ||
fun `will correctly understand longer running branch`() { | ||
setupWithDefaults() | ||
val grgit = initializeGitRepo(listOf("first")) | ||
val (grgit, _) = initializeGitRepo(listOf("first")) | ||
grgit.head() | ||
|
||
grgit.addTag("release") | ||
|
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