File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 <title>{{.Subject }}</title>
99</head>
1010
11- {{$repo_url := printf " <a href='%s '>%s </a>" (Escape .Issue.Repo.Link ) (Escape .Issue.Repo.FullName )}}
11+ {{$repo_url := printf " <a href='%s '>%s </a>" (Escape .Issue.Repo.HTMLURL ) (Escape .Issue.Repo.FullName )}}
1212{{$link := printf " <a href='%s '>#%d </a>" (Escape .Link ) .Issue.Index }}
1313<body>
1414 <p>
Original file line number Diff line number Diff line change 2020 {{if eq .ActionName " push" }}
2121 <p>
2222 {{if .Comment.IsForcePush }}
23- {{$oldCommitUrl := printf " %s /commit/%s " .Comment.Issue.PullRequest.BaseRepo.Link .Comment.OldCommit }}
23+ {{$oldCommitUrl := printf " %s /commit/%s " .Comment.Issue.PullRequest.BaseRepo.HTMLURL .Comment.OldCommit }}
2424 {{$oldShortSha := ShortSha .Comment.OldCommit }}
2525 {{$oldCommitLink := printf " <a href='%[1]s '><b>%[2]s </b></a>" (Escape $oldCommitUrl ) (Escape $oldShortSha )}}
2626
27- {{$newCommitUrl := printf " %s /commit/%s " .Comment.Issue.PullRequest.BaseRepo.Link .Comment.NewCommit }}
27+ {{$newCommitUrl := printf " %s /commit/%s " .Comment.Issue.PullRequest.BaseRepo.HTMLURL .Comment.NewCommit }}
2828 {{$newShortSha := ShortSha .Comment.NewCommit }}
2929 {{$newCommitLink := printf " <a href='%[1]s '><b>%[2]s </b></a>" (Escape $newCommitUrl ) (Escape $newShortSha )}}
3030
7272 <ul>
7373 {{range .Comment.Commits }}
7474 <li>
75- <a href= " {{$.Comment.Issue.PullRequest.BaseRepo.Link }}/commit/{{.ID}}" >
75+ <a href= " {{$.Comment.Issue.PullRequest.BaseRepo.HTMLURL }}/commit/{{.ID}}" >
7676 {{ShortSha .ID.String }}
7777 </a> - {{.Summary }}
7878 </li>
Original file line number Diff line number Diff line change 1111
1212</head>
1313
14- {{$release_url := printf " <a href='%s '>%s </a>" (.Release.Link | Escape) (.Release.TagName | Escape)}}
15- {{$repo_url := printf " <a href='%s '>%s </a>" (.Release.Repo.Link | Escape) (.Release.Repo.FullName | Escape)}}
14+ {{$release_url := printf " <a href='%s '>%s </a>" (.Release.HTMLURL | Escape) (.Release.TagName | Escape)}}
15+ {{$repo_url := printf " <a href='%s '>%s </a>" (.Release.Repo.HTMLURL | Escape) (.Release.Repo.FullName | Escape)}}
1616<body>
1717 <p>
1818 {{.locale.Tr " mail.release.new.text" .Release.Publisher.Name $release_url $repo_url | Str2html}}
You can’t perform that action at this time.
0 commit comments