Skip to content
Prev Previous commit
Next Next commit
update comments and test names
  • Loading branch information
ecrupper committed Sep 29, 2022
commit c58e56541b9497cdfe496e48c2ac85f21521e41e
2 changes: 1 addition & 1 deletion scm/github/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (c *client) GetRepo(u *library.User, r *library.Repo) (*library.Repo, error
return toLibraryRepo(*repo), nil
}

// GetRepoName returns the name of the repository in the SCM.
// GetOrgAndRepoName returns the name of the org and the repository in the SCM.
func (c *client) GetOrgAndRepoName(u *library.User, o string, r string) (string, string, error) {
c.Logger.WithFields(logrus.Fields{
"org": o,
Expand Down
4 changes: 2 additions & 2 deletions scm/github/repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ func TestGithub_GetRepo_Fail(t *testing.T) {
}
}

func TestGithub_GetRepoName(t *testing.T) {
func TestGithub_GetOrgAndRepoName(t *testing.T) {
// setup context
gin.SetMode(gin.TestMode)

Expand Down Expand Up @@ -1060,7 +1060,7 @@ func TestGithub_GetRepoName(t *testing.T) {
}
}

func TestGithub_GetRepoName_Fail(t *testing.T) {
func TestGithub_GetOrgAndRepoName_Fail(t *testing.T) {
// setup context
gin.SetMode(gin.TestMode)

Expand Down