-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missed auto merge feed message on dashboard #33309
base: main
Are you sure you want to change the base?
Conversation
templates/user/dashboard/feeds.tmpl
Outdated
{{else if .GetOpType.InActions "auto_merge_pull_request"}} | ||
{{$index := index .GetIssueInfos 0}} | ||
{{$title := index .GetIssueInfos 1}} | ||
{{ctx.Locale.Tr "action.auto_merge_pull_request" (printf "%s/pulls/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx) $title}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just copied and pasted the code without checking it?
auto_merge_pull_request = `automatically merged pull request <a href="%[1]s">%[3]s#%[2]s</a>`
But you put 4 arguments here?
(printf "%s/pulls/%s" (.GetRepoLink ctx) $index)
$index
(.ShortRepoPath ctx)
$title
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
799ac4f The last argument $title
should be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see how really you fixed the copy-paste code.
If $title
should be removed, why there is still {{$title := index .GetIssueInfos 1}}
in the new commit?
No description provided.