File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
13
13
"time"
14
14
15
15
"code.gitea.io/gitea/modules/base"
16
+ "code.gitea.io/gitea/modules/git"
16
17
"code.gitea.io/gitea/modules/log"
17
18
"code.gitea.io/gitea/modules/setting"
18
19
"code.gitea.io/gitea/modules/timeutil"
@@ -238,7 +239,7 @@ func (a *Action) getCommentLink(e Engine) string {
238
239
239
240
// GetBranch returns the action's repository branch.
240
241
func (a * Action ) GetBranch () string {
241
- return a .RefName
242
+ return strings . TrimPrefix ( a .RefName , git . BranchPrefix )
242
243
}
243
244
244
245
// GetContent returns the action's content.
Original file line number Diff line number Diff line change 160
160
</div>
161
161
<div class="extra content">
162
162
{{ range .Labels }}
163
- <a class="ui label has-emoji " href="{{$.RepoLink}}/issues?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}; margin-bottom: 3px;" title="{{.Description}}">{{.Name}}</a>
163
+ <a class="ui label" href="{{$.RepoLink}}/issues?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}; margin-bottom: 3px;" title="{{.Description | RenderEmojiPlain }}">{{.Name | RenderEmoji }}</a>
164
164
{{ end }}
165
165
</div>
166
166
</div>
You can’t perform that action at this time.
0 commit comments