diff options
author | 6543 <6543@obermui.de> | 2020-04-14 15:53:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 09:53:34 -0400 |
commit | 10e2f291442fdc7efc31c02f5ffcba79a36db9ac (patch) | |
tree | 5dbda60a983caf8d83ad7202755587acd692c212 /templates | |
parent | c571c5bb286b925297f4eb32d130a5496126c3cb (diff) | |
download | gitea-10e2f291442fdc7efc31c02f5ffcba79a36db9ac.tar.gz gitea-10e2f291442fdc7efc31c02f5ffcba79a36db9ac.zip |
Cache PullRequest Divergence (#10914)
* Cache PullRequest Divergence
* only re-calc divergence if AddTestPullRequestTask() is exec
* migrate already open pulls
* finalize
* take care of closed¬-merged+deleted-branch pull requests
* fix nil pointer exeption
Signed-off-by: 6543 <6543@obermui.de>
* try this
* no error its a warn
* init gitea-repositories-meta
* dont use gitDivergence type
* CI.restart()
* CI.restart()
* CI.restart()
* CI.restart()
* check IsUserAllowedToUpdate independend from CommitsBehind
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/view_content/pull.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl index e580d95586..03ac1b6cd7 100644 --- a/templates/repo/issue/view_content/pull.tmpl +++ b/templates/repo/issue/view_content/pull.tmpl @@ -305,7 +305,7 @@ </div> {{end}} {{end}} - {{if and .Divergence (gt .Divergence.Behind 0)}} + {{if gt .Issue.PullRequest.CommitsBehind 0}} <div class="ui very compact branch-update grid"> <div class="row"> <div class="item text gray eleven wide left floated column"> |