Skip to content

Commit 3f3b0ed

Browse files
committed
Add rebased patches done by Brecht for 1.23.x
I removed the renaming utility script and left the default patch names for easier lookup.
1 parent 4893370 commit 3f3b0ed

19 files changed

+371
-406
lines changed

patches/2024-05-10_13-28-51_d4a41bc0eb.patch renamed to patches/0001-BLENDER-Blender-ID-goth-provider.patch

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
From d4a41bc0ebbb015e97e076e6040a3349ee0dab33 Mon Sep 17 00:00:00 2001
1+
From 8b5a296990a67b35b5fcd9047d79418e31b37f60 Mon Sep 17 00:00:00 2001
22
From: Brecht Van Lommel <[email protected]>
33
Date: Fri, 10 May 2024 13:28:51 +0200
4-
Subject: [PATCH] BLENDER: Blender ID goth provider
4+
Subject: [PATCH 01/14] BLENDER: Blender ID goth provider
55

66
Provider authored by Matti Ranta and Arnd Marijnissen.
77
---
88
go.mod | 1 +
9-
go.sum | 2 +
9+
go.sum | 3 +
1010
public/assets/img/blenderid.png | 0
1111
.../auth/source/oauth2/blenderid/blenderid.go | 181 ++++++++++++++++++
1212
.../source/oauth2/blenderid/blenderid_test.go | 70 +++++++
@@ -15,7 +15,7 @@ Provider authored by Matti Ranta and Arnd Marijnissen.
1515
.../auth/source/oauth2/blenderid/session.go | 66 +++++++
1616
.../source/oauth2/blenderid/session_test.go | 51 +++++
1717
.../auth/source/oauth2/providers_custom.go | 11 ++
18-
10 files changed, 490 insertions(+)
18+
10 files changed, 491 insertions(+)
1919
create mode 100644 public/assets/img/blenderid.png
2020
create mode 100644 services/auth/source/oauth2/blenderid/blenderid.go
2121
create mode 100644 services/auth/source/oauth2/blenderid/blenderid_test.go
@@ -25,36 +25,37 @@ Provider authored by Matti Ranta and Arnd Marijnissen.
2525
create mode 100644 services/auth/source/oauth2/blenderid/session_test.go
2626

2727
diff --git a/go.mod b/go.mod
28-
index 8752e6d196a8b..0bfd9342c7fe8 100644
28+
index d8e7e37152..af00e05199 100644
2929
--- a/go.mod
3030
+++ b/go.mod
31-
@@ -235,6 +235,7 @@ require (
32-
github.com/mitchellh/reflectwalk v1.0.2 // indirect
31+
@@ -258,6 +258,7 @@ require (
32+
github.com/mmcloughlin/avo v0.6.0 // indirect
3333
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3434
github.com/modern-go/reflect2 v1.0.2 // indirect
3535
+ github.com/mozillazg/go-unidecode v0.2.0 // indirect
3636
github.com/mrjones/oauth v0.0.0-20190623134757-126b35219450 // indirect
3737
github.com/mschoch/smat v0.2.0 // indirect
38-
github.com/nwaples/rardecode v1.1.3 // indirect
38+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
3939
diff --git a/go.sum b/go.sum
40-
index 6a3e6dc7f645c..d59c282ce0411 100644
40+
index 968001e7f9..bce9ba2fd7 100644
4141
--- a/go.sum
4242
+++ b/go.sum
43-
@@ -586,6 +586,8 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJ
43+
@@ -590,6 +590,9 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w
44+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
4445
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
4546
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
46-
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc=
47+
+github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc=
4748
+github.com/mozillazg/go-unidecode v0.2.0 h1:vFGEzAH9KSwyWmXCOblazEWDh7fOkpmy/Z4ArmamSUc=
4849
+github.com/mozillazg/go-unidecode v0.2.0/go.mod h1:zB48+/Z5toiRolOZy9ksLryJ976VIwmDmpQ2quyt1aA=
4950
github.com/mrjones/oauth v0.0.0-20190623134757-126b35219450 h1:j2kD3MT1z4PXCiUllUJF9mWUESr9TWKS7iEKsQ/IipM=
5051
github.com/mrjones/oauth v0.0.0-20190623134757-126b35219450/go.mod h1:skjdDftzkFALcuGzYSklqYd8gvat6F1gZJ4YPVbkZpM=
5152
github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg=
5253
diff --git a/public/assets/img/blenderid.png b/public/assets/img/blenderid.png
5354
new file mode 100644
54-
index 0000000000000..e69de29bb2d1d
55+
index 0000000000..e69de29bb2
5556
diff --git a/services/auth/source/oauth2/blenderid/blenderid.go b/services/auth/source/oauth2/blenderid/blenderid.go
5657
new file mode 100644
57-
index 0000000000000..671e5e4f541a5
58+
index 0000000000..671e5e4f54
5859
--- /dev/null
5960
+++ b/services/auth/source/oauth2/blenderid/blenderid.go
6061
@@ -0,0 +1,181 @@
@@ -241,7 +242,7 @@ index 0000000000000..671e5e4f541a5
241242
+}
242243
diff --git a/services/auth/source/oauth2/blenderid/blenderid_test.go b/services/auth/source/oauth2/blenderid/blenderid_test.go
243244
new file mode 100644
244-
index 0000000000000..2bf4c443d86ff
245+
index 0000000000..2bf4c443d8
245246
--- /dev/null
246247
+++ b/services/auth/source/oauth2/blenderid/blenderid_test.go
247248
@@ -0,0 +1,70 @@
@@ -317,7 +318,7 @@ index 0000000000000..2bf4c443d86ff
317318
+}
318319
diff --git a/services/auth/source/oauth2/blenderid/gitealize_usernames.go b/services/auth/source/oauth2/blenderid/gitealize_usernames.go
319320
new file mode 100644
320-
index 0000000000000..880516c8e28f1
321+
index 0000000000..880516c8e2
321322
--- /dev/null
322323
+++ b/services/auth/source/oauth2/blenderid/gitealize_usernames.go
323324
@@ -0,0 +1,65 @@
@@ -388,7 +389,7 @@ index 0000000000000..880516c8e28f1
388389
+}
389390
diff --git a/services/auth/source/oauth2/blenderid/gitealize_usernames_test.go b/services/auth/source/oauth2/blenderid/gitealize_usernames_test.go
390391
new file mode 100644
391-
index 0000000000000..7d633198e8886
392+
index 0000000000..7d633198e8
392393
--- /dev/null
393394
+++ b/services/auth/source/oauth2/blenderid/gitealize_usernames_test.go
394395
@@ -0,0 +1,43 @@
@@ -437,7 +438,7 @@ index 0000000000000..7d633198e8886
437438
+}
438439
diff --git a/services/auth/source/oauth2/blenderid/session.go b/services/auth/source/oauth2/blenderid/session.go
439440
new file mode 100644
440-
index 0000000000000..52a2d2174584c
441+
index 0000000000..52a2d21745
441442
--- /dev/null
442443
+++ b/services/auth/source/oauth2/blenderid/session.go
443444
@@ -0,0 +1,66 @@
@@ -509,7 +510,7 @@ index 0000000000000..52a2d2174584c
509510
+}
510511
diff --git a/services/auth/source/oauth2/blenderid/session_test.go b/services/auth/source/oauth2/blenderid/session_test.go
511512
new file mode 100644
512-
index 0000000000000..ab7fb974a5772
513+
index 0000000000..ab7fb974a5
513514
--- /dev/null
514515
+++ b/services/auth/source/oauth2/blenderid/session_test.go
515516
@@ -0,0 +1,51 @@
@@ -565,15 +566,15 @@ index 0000000000000..ab7fb974a5772
565566
+ a.Equal(s.String(), s.Marshal())
566567
+}
567568
diff --git a/services/auth/source/oauth2/providers_custom.go b/services/auth/source/oauth2/providers_custom.go
568-
index 65cf538ad7386..f6f49ada048aa 100644
569+
index 65cf538ad7..f6f49ada04 100644
569570
--- a/services/auth/source/oauth2/providers_custom.go
570571
+++ b/services/auth/source/oauth2/providers_custom.go
571572
@@ -5,6 +5,7 @@ package oauth2
572-
573+
573574
import (
574575
"code.gitea.io/gitea/modules/setting"
575576
+ "code.gitea.io/gitea/services/auth/source/oauth2/blenderid"
576-
577+
577578
"github.com/markbates/goth"
578579
"github.com/markbates/goth/providers/azureadv2"
579580
@@ -120,4 +121,14 @@ func init() {
@@ -591,3 +592,6 @@ index 65cf538ad7386..f6f49ada048aa 100644
591592
+ return blenderid.NewCustomisedURL(clientID, secret, callbackURL, custom.AuthURL, custom.TokenURL, custom.ProfileURL, scopes...), nil
592593
+ }))
593594
}
595+
--
596+
2.45.2
597+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From d29a40511fe4390c5d846eb2be28d1e5791c0aae Mon Sep 17 00:00:00 2001
2+
From: Brecht Van Lommel <[email protected]>
3+
Date: Fri, 10 May 2024 13:31:35 +0200
4+
Subject: [PATCH 02/14] BLENDER: Show warning for target branch switching
5+
6+
---
7+
templates/repo/issue/view_title.tmpl | 2 ++
8+
1 file changed, 2 insertions(+)
9+
10+
diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl
11+
index bf2ede58e4..610a4e4a3e 100644
12+
--- a/templates/repo/issue/view_title.tmpl
13+
+++ b/templates/repo/issue/view_title.tmpl
14+
@@ -118,6 +118,8 @@
15+
</div>
16+
</div>
17+
</div>
18+
+ <br/>
19+
+ <div class="desc" style="display: flex;"><br/>Remember to rebase the branch in your fork, see&nbsp;<a href="https://wiki.blender.org/wiki/Tools/Pull_Requests">documentation</a>.</div>
20+
</span>
21+
{{end}}
22+
{{else}}
23+
--
24+
2.45.2
25+

patches/2024-05-10_13-32-53_f9da0329b6.patch renamed to patches/0003-BLENDER-Workaround-LFS-files-not-being-available-in-.patch

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
From f9da0329b6346178355e6337215882e1a0cc0369 Mon Sep 17 00:00:00 2001
1+
From 37d72a57067e955cdc886ddd527a55c371b01bde Mon Sep 17 00:00:00 2001
22
From: Brecht Van Lommel <[email protected]>
33
Date: Fri, 10 May 2024 13:32:53 +0200
4-
Subject: [PATCH] BLENDER: Workaround LFS files not being available in pull
5-
requests
4+
Subject: [PATCH 03/14] BLENDER: Workaround LFS files not being available in
5+
pull requests
66

77
Patch taken from issue number 17715, associating the LFS pointer when the
88
file is downloaded.
@@ -12,11 +12,11 @@ file is downloaded.
1212
2 files changed, 21 insertions(+), 1 deletion(-)
1313

1414
diff --git a/models/git/lfs.go b/models/git/lfs.go
15-
index 837dc9fd312f5..b52208a77f5d8 100644
15+
index bb6361050a..83a2e7883d 100644
1616
--- a/models/git/lfs.go
1717
+++ b/models/git/lfs.go
18-
@@ -238,7 +238,7 @@ func CountLFSMetaObjects(ctx context.Context, repoID int64) (int64, error) {
19-
18+
@@ -236,7 +236,7 @@ func CountLFSMetaObjects(ctx context.Context, repoID int64) (int64, error) {
19+
2020
// LFSObjectAccessible checks if a provided Oid is accessible to the user
2121
func LFSObjectAccessible(ctx context.Context, user *user_model.User, oid string) (bool, error) {
2222
- if user.IsAdmin {
@@ -25,10 +25,10 @@ index 837dc9fd312f5..b52208a77f5d8 100644
2525
return count > 0, err
2626
}
2727
diff --git a/services/lfs/server.go b/services/lfs/server.go
28-
index ace501e15f0df..e5873e8c38a86 100644
28+
index a77623fdc1..c45c1937ec 100644
2929
--- a/services/lfs/server.go
3030
+++ b/services/lfs/server.go
31-
@@ -246,6 +246,26 @@ func BatchHandler(ctx *context.Context) {
31+
@@ -251,6 +251,26 @@ func BatchHandler(ctx *context.Context) {
3232
responseObject = buildObjectResponse(rc, p, false, !exists, err)
3333
} else {
3434
var err *lfs_module.ObjectError
@@ -55,3 +55,6 @@ index ace501e15f0df..e5873e8c38a86 100644
5555
if !exists || meta == nil {
5656
err = &lfs_module.ObjectError{
5757
Code: http.StatusNotFound,
58+
--
59+
2.45.2
60+

patches/2024-05-10_13-33-32_8d0600f7eb.patch renamed to patches/0004-BLENDER-Don-t-allow-assigning-large-teams-as-reviewe.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 8d0600f7eb914d9629e78b8f5250fb9307d2dd43 Mon Sep 17 00:00:00 2001
1+
From ff4fd9166ac3c8cc099ab35968e23096ec0525a4 Mon Sep 17 00:00:00 2001
22
From: Brecht Van Lommel <[email protected]>
33
Date: Fri, 10 May 2024 13:33:32 +0200
4-
Subject: [PATCH] BLENDER: Don't allow assigning large teams as reviewers
4+
Subject: [PATCH 04/14] BLENDER: Don't allow assigning large teams as reviewers
55

66
To avoid accidentally spamming hundreds of people.
77
---
@@ -35,10 +35,10 @@ index fb7f0c0493..be56a0428e 100644
3535
+ return smallTeams, nil
3636
+}
3737
diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go
38-
index 3fdf594045..2f3660178c 100644
38+
index 5397411b59..abf7f457e9 100644
3939
--- a/routers/web/repo/issue.go
4040
+++ b/routers/web/repo/issue.go
41-
@@ -3670,13 +3670,13 @@ func handleTeamMentions(ctx *context.Context) {
41+
@@ -661,13 +661,13 @@ func handleMentionableAssigneesAndTeams(ctx *context.Context, assignees []*user_
4242
}
4343

4444
if isAdmin {
Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
From 6d833f20e2bff71d1a7bce47a934700fdfc15738 Mon Sep 17 00:00:00 2001
2+
From: Brecht Van Lommel <[email protected]>
3+
Date: Fri, 10 May 2024 13:58:05 +0200
4+
Subject: [PATCH 05/14] BLENDER: Support both exclusive and non-exclusive scope
5+
for labels
6+
7+
---
8+
models/issues/label.go | 15 ++++++++++-----
9+
modules/templates/util_render.go | 2 +-
10+
templates/repo/issue/filter_actions.tmpl | 10 +++++-----
11+
templates/repo/issue/filter_item_label.tmpl | 10 +++++-----
12+
templates/repo/issue/sidebar/label_list.tmpl | 14 ++++++++------
13+
5 files changed, 29 insertions(+), 22 deletions(-)
14+
15+
diff --git a/models/issues/label.go b/models/issues/label.go
16+
index b9d24bbe99..6eb8a888e9 100644
17+
--- a/models/issues/label.go
18+
+++ b/models/issues/label.go
19+
@@ -183,11 +183,8 @@ func (l *Label) BelongsToRepo() bool {
20+
return l.RepoID > 0
21+
}
22+
23+
-// ExclusiveScope returns scope substring of label name, or empty string if none exists
24+
-func (l *Label) ExclusiveScope() string {
25+
- if !l.Exclusive {
26+
- return ""
27+
- }
28+
+// Return scope substring of label name, or empty string if none exists
29+
+func (l *Label) Scope() string {
30+
lastIndex := strings.LastIndex(l.Name, "/")
31+
if lastIndex == -1 || lastIndex == 0 || lastIndex == len(l.Name)-1 {
32+
return ""
33+
@@ -195,6 +192,14 @@ func (l *Label) ExclusiveScope() string {
34+
return l.Name[:lastIndex]
35+
}
36+
37+
+// ExclusiveScope returns scope substring of label name, or empty string if none exists
38+
+func (l *Label) ExclusiveScope() string {
39+
+ if !l.Exclusive {
40+
+ return ""
41+
+ }
42+
+ return l.Scope()
43+
+}
44+
+
45+
// NewLabel creates a new label
46+
func NewLabel(ctx context.Context, l *Label) error {
47+
color, err := label.NormalizeColor(l.Color)
48+
diff --git a/modules/templates/util_render.go b/modules/templates/util_render.go
49+
index 1800747f48..ee1b231f2b 100644
50+
--- a/modules/templates/util_render.go
51+
+++ b/modules/templates/util_render.go
52+
@@ -126,7 +126,7 @@ func (ut *RenderUtils) RenderLabel(label *issues_model.Label) template.HTML {
53+
locale := ut.ctx.Value(translation.ContextKey).(translation.Locale)
54+
var extraCSSClasses string
55+
textColor := util.ContrastColor(label.Color)
56+
- labelScope := label.ExclusiveScope()
57+
+ labelScope := label.Scope()
58+
descriptionText := emoji.ReplaceAliases(label.Description)
59+
60+
if label.IsArchived() {
61+
diff --git a/templates/repo/issue/filter_actions.tmpl b/templates/repo/issue/filter_actions.tmpl
62+
index 8e2410393d..0d196d1f87 100644
63+
--- a/templates/repo/issue/filter_actions.tmpl
64+
+++ b/templates/repo/issue/filter_actions.tmpl
65+
@@ -22,15 +22,15 @@
66+
<div class="item issue-action" data-action="clear" data-url="{{$.RepoLink}}/issues/labels">
67+
{{ctx.Locale.Tr "repo.issues.new.clear_labels"}}
68+
</div>
69+
- {{$previousExclusiveScope := "_no_scope"}}
70+
+ {{$previousScope := "_no_scope"}}
71+
{{range .Labels}}
72+
- {{$exclusiveScope := .ExclusiveScope}}
73+
- {{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}}
74+
+ {{$scope := .Scope}}
75+
+ {{if and (ne $previousScope "_no_scope") (ne $previousScope $scope)}}
76+
<div class="divider"></div>
77+
{{end}}
78+
- {{$previousExclusiveScope = $exclusiveScope}}
79+
+ {{$previousScope = $scope}}
80+
<div class="item issue-action tw-flex tw-justify-between" data-action="toggle" data-element-id="{{.ID}}" data-url="{{$.RepoLink}}/issues/labels">
81+
- {{if SliceUtils.Contains $.SelLabelIDs .ID}}{{svg (Iif $exclusiveScope "octicon-dot-fill" "octicon-check")}}{{end}} {{ctx.RenderUtils.RenderLabel .}}
82+
+ {{if SliceUtils.Contains $.SelLabelIDs .ID}}{{svg (Iif .ExclusiveScope "octicon-dot-fill" "octicon-check")}}{{end}} {{ctx.RenderUtils.RenderLabel .}}
83+
{{template "repo/issue/labels/label_archived" .}}
84+
</div>
85+
{{end}}
86+
diff --git a/templates/repo/issue/filter_item_label.tmpl b/templates/repo/issue/filter_item_label.tmpl
87+
index 88e2e43120..ee569b4fd0 100644
88+
--- a/templates/repo/issue/filter_item_label.tmpl
89+
+++ b/templates/repo/issue/filter_item_label.tmpl
90+
@@ -26,19 +26,19 @@
91+
{{/* The logic here is not the same as the label selector in the issue sidebar.
92+
The one in the issue sidebar renders "repo labels | divider | org labels".
93+
Maybe the logic should be updated to be consistent.*/}}
94+
- {{$previousExclusiveScope := "_no_scope"}}
95+
+ {{$previousScope := "_no_scope"}}
96+
{{range .Labels}}
97+
- {{$exclusiveScope := .ExclusiveScope}}
98+
- {{if and (ne $previousExclusiveScope $exclusiveScope)}}
99+
+ {{$scope := .Scope}}
100+
+ {{if and (ne $previousScope $scope)}}
101+
<div class="divider" data-scope="{{.ExclusiveScope}}"></div>
102+
{{end}}
103+
- {{$previousExclusiveScope = $exclusiveScope}}
104+
+ {{$previousScope = $scope}}
105+
<a class="item label-filter-query-item" data-label-id="{{.ID}}" data-scope="{{.ExclusiveScope}}" {{if .IsArchived}}data-is-archived{{end}}
106+
href="{{QueryBuild $queryLink "labels" .QueryString}}">
107+
{{if .IsExcluded}}
108+
{{svg "octicon-circle-slash"}}
109+
{{else if .IsSelected}}
110+
- {{Iif $exclusiveScope (svg "octicon-dot-fill") (svg "octicon-check")}}
111+
+ {{Iif .ExclusiveScope (svg "octicon-dot-fill") (svg "octicon-check")}}
112+
{{end}}
113+
{{ctx.RenderUtils.RenderLabel .}}
114+
<p class="tw-ml-auto">{{template "repo/issue/labels/label_archived" .}}</p>
115+
diff --git a/templates/repo/issue/sidebar/label_list.tmpl b/templates/repo/issue/sidebar/label_list.tmpl
116+
index 9dd83ba188..124e3a1bc6 100644
117+
--- a/templates/repo/issue/sidebar/label_list.tmpl
118+
+++ b/templates/repo/issue/sidebar/label_list.tmpl
119+
@@ -18,23 +18,25 @@
120+
</div>
121+
<a class="item clear-selection" href="#">{{ctx.Locale.Tr "repo.issues.new.clear_labels"}}</a>
122+
<div class="scrolling menu">
123+
- {{$previousExclusiveScope := "_no_scope"}}
124+
+ {{$previousScope := "_no_scope"}}
125+
{{range $data.RepoLabels}}
126+
+ {{$scope := .Scope}}
127+
{{$exclusiveScope := .ExclusiveScope}}
128+
- {{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}}
129+
+ {{if and (ne $previousScope "_no_scope") (ne $previousScope $scope)}}
130+
<div class="divider" data-scope="{{.ExclusiveScope}}"></div>
131+
{{end}}
132+
- {{$previousExclusiveScope = $exclusiveScope}}
133+
+ {{$previousScope = $scope}}
134+
{{template "repo/issue/sidebar/label_list_item" dict "Label" .}}
135+
{{end}}
136+
{{if and $data.RepoLabels $data.OrgLabels}}<div class="divider"></div>{{end}}
137+
- {{$previousExclusiveScope = "_no_scope"}}
138+
+ {{$previousScope = "_no_scope"}}
139+
{{range $data.OrgLabels}}
140+
+ {{$scope := .Scope}}
141+
{{$exclusiveScope := .ExclusiveScope}}
142+
- {{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}}
143+
+ {{if and (ne $previousScope "_no_scope") (ne $previousScope $scope)}}
144+
<div class="divider" data-scope="{{.ExclusiveScope}}"></div>
145+
{{end}}
146+
- {{$previousExclusiveScope = $exclusiveScope}}
147+
+ {{$previousScope = $scope}}
148+
{{template "repo/issue/sidebar/label_list_item" dict "Label" .}}
149+
{{end}}
150+
</div>
151+
--
152+
2.45.2
153+

0 commit comments

Comments
 (0)