From 81eda5fd057e7d67c34a68f9df84eab5bed6cb63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niko=20K=C3=B6ser?= Date: Tue, 2 Jun 2020 03:45:38 +0200 Subject: [PATCH] refactor: add func that returns branch name --- pkg/proji/repo/gitlab/gitlab.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/proji/repo/gitlab/gitlab.go b/pkg/proji/repo/gitlab/gitlab.go index ba6021c3..f1290586 100644 --- a/pkg/proji/repo/gitlab/gitlab.go +++ b/pkg/proji/repo/gitlab/gitlab.go @@ -85,8 +85,11 @@ func (g *GitLab) LoadTreeEntries() error { return nil } -// GetOwner returns the name of the repo owner +// Owner returns the name of the owner func (g *GitLab) Owner() string { return g.OwnerName } -// GetRepo returns the name of the repo +// Repo returns the name of the repo func (g *GitLab) Repo() string { return g.RepoName } + +// Repo returns the name of the branch +func (g *GitLab) Branch() string { return g.BranchName }