This commit is contained in:
Jesse Duffield 2022-09-22 09:03:11 -07:00
parent ac8e76bee0
commit 79a72fe7a6
17 changed files with 294 additions and 211 deletions

View file

@ -9,10 +9,12 @@ type GithubPullRequest struct {
}
func (pr *GithubPullRequest) UserName() string {
// e.g. 'jesseduffield'
return pr.HeadRepositoryOwner.Login
}
func (pr *GithubPullRequest) BranchName() string {
// e.g. 'feature/my-feature'
return pr.HeadRefName
}