Skip to content

Commit 2437f74

Browse files
committed
fix test and prepare ui (will force push)
1 parent 1c00cc3 commit 2437f74

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

services/pull/check_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func TestPullRequest_AddToTaskQueue(t *testing.T) {
3636
assert.NoError(t, err)
3737

3838
pr := unittest.AssertExistsAndLoadBean(t, &issues_model.PullRequest{ID: 2})
39-
AddToTaskQueue(db.DefaultContext, pr)
39+
StartPullRequestCheckImmediately(db.DefaultContext, pr)
4040

4141
assert.Eventually(t, func() bool {
4242
pr = unittest.AssertExistsAndLoadBean(t, &issues_model.PullRequest{ID: 2})

templates/repo/issue/view_content.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
{{template "repo/issue/view_content/comments" .}}
6969

7070
{{if and .Issue.IsPull (not $.Repository.IsArchived)}}
71-
{{template "repo/issue/view_content/pull".}}
71+
{{template "repo/issue/view_content/pull_merge_box".}}
7272
{{end}}
7373

7474
{{if .IsSigned}}

templates/repo/issue/view_content/pull.tmpl renamed to templates/repo/issue/view_content/pull_merge_box.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{if and .Issue.PullRequest.HasMerged (not .IsPullBranchDeletable)}}
22
{{/* Then the merge box will not be displayed because this page already contains enough information */}}
33
{{else}}
4-
<div class="timeline-item comment merge box">
4+
<div class="timeline-item comment pull-merge-box">
55
<div class="timeline-avatar text {{if .Issue.PullRequest.HasMerged}}purple
66
{{- else if .Issue.IsClosed}}grey
77
{{- else if .IsPullWorkInProgress}}grey

web_src/css/repo.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -476,14 +476,6 @@ td .commit-summary {
476476
margin-right: 5px;
477477
}
478478

479-
.repository.view.issue .merge.box .branch-update.grid .row {
480-
padding-bottom: 1rem;
481-
}
482-
483-
.repository.view.issue .merge.box .branch-update.grid .row .icon {
484-
margin-top: 1.1rem;
485-
}
486-
487479
.repository.view.issue .comment-list:not(.prevent-before-timeline)::before {
488480
display: block;
489481
content: "";

0 commit comments

Comments
 (0)