Skip to content

Commit 73b8cf8

Browse files
authored
Merge branch 'main' into fix-submodule-nil
2 parents 09c926f + 3e8aa52 commit 73b8cf8

File tree

8 files changed

+71
-7
lines changed

8 files changed

+71
-7
lines changed

models/actions/run_job.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ func AggregateJobStatus(jobs []*ActionRunJob) Status {
187187
return StatusCancelled
188188
case hasRunning:
189189
return StatusRunning
190-
case hasFailure:
191-
return StatusFailure
192190
case hasWaiting:
193191
return StatusWaiting
192+
case hasFailure:
193+
return StatusFailure
194194
case hasBlocked:
195195
return StatusBlocked
196196
default:

models/actions/run_job_status_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func TestAggregateJobStatus(t *testing.T) {
6464
{[]Status{StatusFailure, StatusSuccess}, StatusFailure},
6565
{[]Status{StatusFailure, StatusSkipped}, StatusFailure},
6666
{[]Status{StatusFailure, StatusCancelled}, StatusCancelled},
67-
{[]Status{StatusFailure, StatusWaiting}, StatusFailure},
67+
{[]Status{StatusFailure, StatusWaiting}, StatusWaiting},
6868
{[]Status{StatusFailure, StatusRunning}, StatusRunning},
6969
{[]Status{StatusFailure, StatusBlocked}, StatusFailure},
7070

models/issues/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ func (pr *PullRequest) getReviewedByLines(ctx context.Context, writer io.Writer)
413413
return committer.Commit()
414414
}
415415

416-
// GetGitRefName returns git ref for hidden pull request branch
416+
// GetGitHeadRefName returns git ref for hidden pull request branch
417417
func (pr *PullRequest) GetGitHeadRefName() string {
418418
return fmt.Sprintf("%s%d/head", git.PullPrefix, pr.Index)
419419
}

modules/migration/pullrequest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (p *PullRequest) IsForkPullRequest() bool {
4949
return p.Head.RepoFullName() != p.Base.RepoFullName()
5050
}
5151

52-
// GetGitRefName returns pull request relative path to head
52+
// GetGitHeadRefName returns pull request relative path to head
5353
func (p PullRequest) GetGitHeadRefName() string {
5454
return fmt.Sprintf("%s%d/head", git.PullPrefix, p.Number)
5555
}

options/locale/locale_ga-IE.ini

Lines changed: 32 additions & 0 deletions
Large diffs are not rendered by default.

options/locale/locale_pt-PT.ini

Lines changed: 32 additions & 0 deletions
Large diffs are not rendered by default.

templates/repo/issue/view_content/pull_merge_instruction.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{{if eq .PullRequest.Flow 0}}
1212
<div>git fetch -u {{if ne .PullRequest.HeadRepo.ID .PullRequest.BaseRepo.ID}}<origin-url data-url="{{.PullRequest.HeadRepo.Link}}"></origin-url>{{else}}origin{{end}} {{.PullRequest.HeadBranch}}:{{$localBranch}}</div>
1313
{{else}}
14-
<div>git fetch -u origin {{.PullRequest.GetGitRefName}}:{{$localBranch}}</div>
14+
<div>git fetch -u origin {{.PullRequest.GetGitHeadRefName}}:{{$localBranch}}</div>
1515
{{end}}
1616
<div>git checkout {{$localBranch}}</div>
1717
</div>

web_src/css/repo.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ td .commit-summary {
141141
align-items: center;
142142
overflow: hidden;
143143
text-overflow: ellipsis;
144-
gap: 0.25em;
144+
gap: 0.5em;
145145
}
146146

147147
@media (max-width: 767.98px) {

0 commit comments

Comments
 (0)