-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FWI-5332 - CI plugin - Remove .git suffix from repo name (#833)
* fix removing git suffix * bump version and changelog * trigger-ci * fix go mod * bump version.txt * add more tests
- Loading branch information
1 parent
3e310e6
commit 9a9042b
Showing
4 changed files
with
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# Changelog | ||
|
||
## 5.2.5 | ||
* Fix removing `.git` from repository name | ||
|
||
## 5.2.4 | ||
* Update to go 1.21 | ||
|
||
|
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 |
---|---|---|
|
@@ -11,7 +11,9 @@ import ( | |
) | ||
|
||
func TestExtractRepoNameFromOrigin(t *testing.T) { | ||
assert.Equal(t, "FairwindsOps/insights-plugins", extractRepoNameFromOrigin("[email protected]:FairwindsOps/insights-plugins")) | ||
assert.Equal(t, "FairwindsOps/insights-plugins", extractRepoNameFromOrigin("[email protected]:FairwindsOps/insights-plugins.git")) | ||
assert.Equal(t, "FairwindsOps/insights-plugins", extractRepoNameFromOrigin("[email protected]:FairwindsOps/insights-plugins.git\n")) | ||
assert.Equal(t, "", extractRepoNameFromOrigin("")) | ||
} | ||
|
||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
5.2.4 | ||
5.2.5 |