-
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.
allow hook scripts to execute inside and outside of a monorepo
- Loading branch information
1 parent
8903c3e
commit 686d796
Showing
8 changed files
with
45 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,9 @@ echo -n $NSV_NEXT_TAG > VERSION`) | |
} | ||
|
||
func TestTagSkipsImpersonationIfGitConfigExists(t *testing.T) { | ||
gittest.InitRepository(t) | ||
gittest.InitRepository(t, gittest.WithStagedFiles("metric.go")) | ||
gittest.ConfigSet(t, "user.name", "poison-ivy", "user.email", "[email protected]") | ||
gittest.CommitEmptyWithAuthor(t, "scarecrow", "[email protected]", "feat: capture metrics for populating dashboards") | ||
gittest.CommitWithAuthor(t, "scarecrow", "[email protected]", "feat: capture metrics for populating dashboards") | ||
|
||
cmd := tagCmd(&Options{Out: io.Discard, Err: io.Discard, Logger: noopLogger}) | ||
err := cmd.Execute() | ||
|
@@ -53,8 +53,8 @@ func TestTagSkipsImpersonationIfGitConfigExists(t *testing.T) { | |
} | ||
|
||
func TestTagSkipsImpersonationIfGitEnvVarsExist(t *testing.T) { | ||
gittest.InitRepository(t) | ||
gittest.CommitEmptyWithAuthor(t, "penguin", "[email protected]", "feat(data): support data export from mongodb") | ||
gittest.InitRepository(t, gittest.WithStagedFiles("export.go")) | ||
gittest.CommitWithAuthor(t, "penguin", "[email protected]", "feat(data): support data export from mongodb") | ||
|
||
t.Setenv("GIT_COMMITTER_NAME", "joker") | ||
t.Setenv("GIT_COMMITTER_EMAIL", "[email protected]") | ||
|
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
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