File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ func (run *ActionRun) PrettyRef() string {
102
102
return refName .ShortName ()
103
103
}
104
104
105
- // RefName return ShortName
106
- func (run * ActionRun ) RefName () string {
105
+ // RefTooltip return a tooltop of run's ref. For pull request, it's the title of the PR, otherwise it's the ShortName.
106
+ func (run * ActionRun ) RefTooltip () string {
107
107
payload , err := run .GetPullRequestEventPayload ()
108
108
if err == nil && payload != nil && payload .PullRequest != nil {
109
109
return payload .PullRequest .Title
Original file line number Diff line number Diff line change 28
28
</div>
29
29
<div class="flex-item-trailing">
30
30
{{if $run.IsRefDeleted}}
31
- <span class="ui label run-list-ref gt-ellipsis tw-line-through" data-tooltip-content="{{$run.RefName }}">{{$run.PrettyRef}}</span>
31
+ <span class="ui label run-list-ref gt-ellipsis tw-line-through" data-tooltip-content="{{$run.RefTooltip }}">{{$run.PrettyRef}}</span>
32
32
{{else}}
33
- <a class="ui label run-list-ref gt-ellipsis" href="{{$run.RefLink}}" data-tooltip-content="{{$run.RefName }}">{{$run.PrettyRef}}</a>
33
+ <a class="ui label run-list-ref gt-ellipsis" href="{{$run.RefLink}}" data-tooltip-content="{{$run.RefTooltip }}">{{$run.PrettyRef}}</a>
34
34
{{end}}
35
35
<div class="run-list-item-right">
36
36
<div class="run-list-meta">{{svg "octicon-calendar" 16}}{{DateUtils.TimeSince $run.Updated}}</div>
You can’t perform that action at this time.
0 commit comments