summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/helpers/host_helper.go
diff options
context:
space:
mode:
authorpikomonde <32364823+pikomonde@users.noreply.github.com>2024-03-20 03:15:20 +0700
committerStefan Haller <stefan@haller-berlin.de>2024-04-12 08:33:47 +0200
commit84333eebc3be466b23627f6709ad6b000ddd21f1 (patch)
tree0dc30763a0afb5abeabbe051e0c17771f4670b67 /pkg/gui/controllers/helpers/host_helper.go
parent7f6eea2a55ee6e17660c893a9322d743c5016caf (diff)
renaming variable to CommitHash
Diffstat (limited to 'pkg/gui/controllers/helpers/host_helper.go')
-rw-r--r--pkg/gui/controllers/helpers/host_helper.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/controllers/helpers/host_helper.go b/pkg/gui/controllers/helpers/host_helper.go
index 77fdd530e..bbd464ba8 100644
--- a/pkg/gui/controllers/helpers/host_helper.go
+++ b/pkg/gui/controllers/helpers/host_helper.go
@@ -8,7 +8,7 @@ import (
type IHostHelper interface {
GetPullRequestURL(from string, to string) (string, error)
- GetCommitURL(commitSha string) (string, error)
+ GetCommitURL(commitHash string) (string, error)
}
type HostHelper struct {
@@ -31,12 +31,12 @@ func (self *HostHelper) GetPullRequestURL(from string, to string) (string, error
return mgr.GetPullRequestURL(from, to)
}
-func (self *HostHelper) GetCommitURL(commitSha string) (string, error) {
+func (self *HostHelper) GetCommitURL(commitHash string) (string, error) {
mgr, err := self.getHostingServiceMgr()
if err != nil {
return "", err
}
- return mgr.GetCommitURL(commitSha)
+ return mgr.GetCommitURL(commitHash)
}
// getting this on every request rather than storing it in state in case our remoteURL changes