diff options
author | Elias Norberg <elias@aisle.se> | 2019-09-30 03:07:43 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-09-30 09:07:43 +0800 |
commit | 49547ea158ff2b028013cdcc12d18efc0556aac0 (patch) | |
tree | a0b48acc4d8707e6c83c07d461169de50fd183c4 /templates | |
parent | 9c2a58456a698eae8a289de67685d4e3e270aaf9 (diff) | |
download | gitea-49547ea158ff2b028013cdcc12d18efc0556aac0.tar.gz gitea-49547ea158ff2b028013cdcc12d18efc0556aac0.zip |
Show correct commit status in PR list (#8316)
* Use correct index when fetching commit status
Signed-off-by: Elias Norberg <elias@aisle.se>
* Compare against base repo to avoid mismatch when merging from fork
Signed-off-by: Elias Norberg <elias@aisle.se>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/list.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 4874d97da4..e64cef2724 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -212,8 +212,8 @@ <a class="title has-emoji" href="{{$.Link}}/{{.Index}}">{{.Title}}</a> {{if .IsPull }} - {{if (index $.CommitStatus .ID)}} - {{template "repo/commit_status" (index $.CommitStatus .ID)}} + {{if (index $.CommitStatus .PullRequest.ID)}} + {{template "repo/commit_status" (index $.CommitStatus .PullRequest.ID)}} {{end}} {{end}} |