Skip to content

Commit

Permalink
Update models/action.go
Browse files Browse the repository at this point in the history
Co-authored-by: a1012112796 <[email protected]>
  • Loading branch information
zeripath and a1012112796 authored Dec 14, 2020
1 parent 4d30182 commit 4f42464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func (a *Action) getCommentLink(e Engine) string {

// GetBranch returns the action's repository branch.
func (a *Action) GetBranch() string {
return strings.TrimPrefix(git.BranchPrefix, a.RefName)
return strings.TrimPrefix(a.RefName, git.BranchPrefix)
}

// GetContent returns the action's content.
Expand Down

0 comments on commit 4f42464

Please sign in to comment.