Skip to content

Commit 47b7811

Browse files
committed
Merge branch 'main' into fix-repo-topic-edit
2 parents da39792 + f521e88 commit 47b7811

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+528
-190
lines changed

.drone.yml

Lines changed: 83 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ steps:
12061206
- git fetch --tags --force
12071207

12081208
- name: publish
1209-
image: techknowlogick/drone-docker:latest
1209+
image: plugins/docker:latest
12101210
pull: always
12111211
settings:
12121212
auto_tag: true
@@ -1218,13 +1218,17 @@ steps:
12181218
from_secret: docker_password
12191219
username:
12201220
from_secret: docker_username
1221+
environment:
1222+
PLUGIN_MIRROR:
1223+
from_secret: plugin_mirror
1224+
DOCKER_BUILDKIT: 1
12211225
when:
12221226
event:
12231227
exclude:
12241228
- pull_request
12251229

12261230
- name: publish-rootless
1227-
image: techknowlogick/drone-docker:latest
1231+
image: plugins/docker:latest
12281232
settings:
12291233
dockerfile: Dockerfile.rootless
12301234
auto_tag: true
@@ -1236,6 +1240,10 @@ steps:
12361240
from_secret: docker_password
12371241
username:
12381242
from_secret: docker_username
1243+
environment:
1244+
PLUGIN_MIRROR:
1245+
from_secret: plugin_mirror
1246+
DOCKER_BUILDKIT: 1
12391247
when:
12401248
event:
12411249
exclude:
@@ -1276,7 +1284,7 @@ steps:
12761284
- git fetch --tags --force
12771285

12781286
- name: publish
1279-
image: techknowlogick/drone-docker:latest
1287+
image: plugins/docker:latest
12801288
pull: always
12811289
settings:
12821290
tags: ${DRONE_TAG##v}-linux-amd64
@@ -1287,13 +1295,17 @@ steps:
12871295
from_secret: docker_password
12881296
username:
12891297
from_secret: docker_username
1298+
environment:
1299+
PLUGIN_MIRROR:
1300+
from_secret: plugin_mirror
1301+
DOCKER_BUILDKIT: 1
12901302
when:
12911303
event:
12921304
exclude:
12931305
- pull_request
12941306

12951307
- name: publish-rootless
1296-
image: techknowlogick/drone-docker:latest
1308+
image: plugins/docker:latest
12971309
settings:
12981310
dockerfile: Dockerfile.rootless
12991311
tags: ${DRONE_TAG##v}-linux-amd64-rootless
@@ -1304,6 +1316,10 @@ steps:
13041316
from_secret: docker_password
13051317
username:
13061318
from_secret: docker_username
1319+
environment:
1320+
PLUGIN_MIRROR:
1321+
from_secret: plugin_mirror
1322+
DOCKER_BUILDKIT: 1
13071323
when:
13081324
event:
13091325
exclude:
@@ -1341,7 +1357,7 @@ steps:
13411357
- git fetch --tags --force
13421358

13431359
- name: publish
1344-
image: techknowlogick/drone-docker:latest
1360+
image: plugins/docker:latest
13451361
pull: always
13461362
settings:
13471363
auto_tag: false
@@ -1353,13 +1369,17 @@ steps:
13531369
from_secret: docker_password
13541370
username:
13551371
from_secret: docker_username
1372+
environment:
1373+
PLUGIN_MIRROR:
1374+
from_secret: plugin_mirror
1375+
DOCKER_BUILDKIT: 1
13561376
when:
13571377
event:
13581378
exclude:
13591379
- pull_request
13601380

13611381
- name: publish-rootless
1362-
image: techknowlogick/drone-docker:latest
1382+
image: plugins/docker:latest
13631383
settings:
13641384
dockerfile: Dockerfile.rootless
13651385
auto_tag: false
@@ -1371,6 +1391,10 @@ steps:
13711391
from_secret: docker_password
13721392
username:
13731393
from_secret: docker_username
1394+
environment:
1395+
PLUGIN_MIRROR:
1396+
from_secret: plugin_mirror
1397+
DOCKER_BUILDKIT: 1
13741398
when:
13751399
event:
13761400
exclude:
@@ -1407,7 +1431,7 @@ steps:
14071431
- git fetch --tags --force
14081432

14091433
- name: publish
1410-
image: techknowlogick/drone-docker:latest
1434+
image: plugins/docker:latest
14111435
pull: always
14121436
settings:
14131437
auto_tag: false
@@ -1419,13 +1443,17 @@ steps:
14191443
from_secret: docker_password
14201444
username:
14211445
from_secret: docker_username
1446+
environment:
1447+
PLUGIN_MIRROR:
1448+
from_secret: plugin_mirror
1449+
DOCKER_BUILDKIT: 1
14221450
when:
14231451
event:
14241452
exclude:
14251453
- pull_request
14261454

14271455
- name: publish-rootless
1428-
image: techknowlogick/drone-docker:latest
1456+
image: plugins/docker:latest
14291457
settings:
14301458
dockerfile: Dockerfile.rootless
14311459
auto_tag: false
@@ -1437,6 +1465,10 @@ steps:
14371465
from_secret: docker_password
14381466
username:
14391467
from_secret: docker_username
1468+
environment:
1469+
PLUGIN_MIRROR:
1470+
from_secret: plugin_mirror
1471+
DOCKER_BUILDKIT: 1
14401472
when:
14411473
event:
14421474
exclude:
@@ -1445,7 +1477,7 @@ steps:
14451477
---
14461478
kind: pipeline
14471479
type: docker
1448-
name: docker-linux-arm64-dry-run
1480+
name: docker-linux-amd64-dry-run
14491481

14501482
platform:
14511483
os: linux
@@ -1463,7 +1495,7 @@ trigger:
14631495

14641496
steps:
14651497
- name: dryrun
1466-
image: techknowlogick/drone-docker:latest
1498+
image: plugins/docker:latest
14671499
pull: always
14681500
settings:
14691501
dry_run: true
@@ -1474,6 +1506,7 @@ steps:
14741506
environment:
14751507
PLUGIN_MIRROR:
14761508
from_secret: plugin_mirror
1509+
DOCKER_BUILDKIT: 1
14771510
when:
14781511
event:
14791512
- pull_request
@@ -1516,7 +1549,7 @@ steps:
15161549
- git fetch --tags --force
15171550

15181551
- name: publish
1519-
image: techknowlogick/drone-docker:latest
1552+
image: plugins/docker:latest
15201553
pull: always
15211554
settings:
15221555
auto_tag: true
@@ -1528,13 +1561,17 @@ steps:
15281561
from_secret: docker_password
15291562
username:
15301563
from_secret: docker_username
1564+
environment:
1565+
PLUGIN_MIRROR:
1566+
from_secret: plugin_mirror
1567+
DOCKER_BUILDKIT: 1
15311568
when:
15321569
event:
15331570
exclude:
15341571
- pull_request
15351572

15361573
- name: publish-rootless
1537-
image: techknowlogick/drone-docker:latest
1574+
image: plugins/docker:latest
15381575
settings:
15391576
dockerfile: Dockerfile.rootless
15401577
auto_tag: true
@@ -1546,6 +1583,10 @@ steps:
15461583
from_secret: docker_password
15471584
username:
15481585
from_secret: docker_username
1586+
environment:
1587+
PLUGIN_MIRROR:
1588+
from_secret: plugin_mirror
1589+
DOCKER_BUILDKIT: 1
15491590
when:
15501591
event:
15511592
exclude:
@@ -1586,7 +1627,7 @@ steps:
15861627
- git fetch --tags --force
15871628

15881629
- name: publish
1589-
image: techknowlogick/drone-docker:latest
1630+
image: plugins/docker:latest
15901631
pull: always
15911632
settings:
15921633
tags: ${DRONE_TAG##v}-linux-arm64
@@ -1597,13 +1638,17 @@ steps:
15971638
from_secret: docker_password
15981639
username:
15991640
from_secret: docker_username
1641+
environment:
1642+
PLUGIN_MIRROR:
1643+
from_secret: plugin_mirror
1644+
DOCKER_BUILDKIT: 1
16001645
when:
16011646
event:
16021647
exclude:
16031648
- pull_request
16041649

16051650
- name: publish-rootless
1606-
image: techknowlogick/drone-docker:latest
1651+
image: plugins/docker:latest
16071652
settings:
16081653
dockerfile: Dockerfile.rootless
16091654
tags: ${DRONE_TAG##v}-linux-arm64-rootless
@@ -1614,6 +1659,10 @@ steps:
16141659
from_secret: docker_password
16151660
username:
16161661
from_secret: docker_username
1662+
environment:
1663+
PLUGIN_MIRROR:
1664+
from_secret: plugin_mirror
1665+
DOCKER_BUILDKIT: 1
16171666
when:
16181667
event:
16191668
exclude:
@@ -1654,7 +1703,7 @@ steps:
16541703
- git fetch --tags --force
16551704

16561705
- name: publish
1657-
image: techknowlogick/drone-docker:latest
1706+
image: plugins/docker:latest
16581707
pull: always
16591708
settings:
16601709
auto_tag: false
@@ -1666,13 +1715,17 @@ steps:
16661715
from_secret: docker_password
16671716
username:
16681717
from_secret: docker_username
1718+
environment:
1719+
PLUGIN_MIRROR:
1720+
from_secret: plugin_mirror
1721+
DOCKER_BUILDKIT: 1
16691722
when:
16701723
event:
16711724
exclude:
16721725
- pull_request
16731726

16741727
- name: publish-rootless
1675-
image: techknowlogick/drone-docker:latest
1728+
image: plugins/docker:latest
16761729
settings:
16771730
dockerfile: Dockerfile.rootless
16781731
auto_tag: false
@@ -1684,6 +1737,10 @@ steps:
16841737
from_secret: docker_password
16851738
username:
16861739
from_secret: docker_username
1740+
environment:
1741+
PLUGIN_MIRROR:
1742+
from_secret: plugin_mirror
1743+
DOCKER_BUILDKIT: 1
16871744
when:
16881745
event:
16891746
exclude:
@@ -1720,7 +1777,7 @@ steps:
17201777
- git fetch --tags --force
17211778

17221779
- name: publish
1723-
image: techknowlogick/drone-docker:latest
1780+
image: plugins/docker:latest
17241781
pull: always
17251782
settings:
17261783
auto_tag: false
@@ -1732,13 +1789,17 @@ steps:
17321789
from_secret: docker_password
17331790
username:
17341791
from_secret: docker_username
1792+
environment:
1793+
PLUGIN_MIRROR:
1794+
from_secret: plugin_mirror
1795+
DOCKER_BUILDKIT: 1
17351796
when:
17361797
event:
17371798
exclude:
17381799
- pull_request
17391800

17401801
- name: publish-rootless
1741-
image: techknowlogick/drone-docker:latest
1802+
image: plugins/docker:latest
17421803
settings:
17431804
dockerfile: Dockerfile.rootless
17441805
auto_tag: false
@@ -1750,6 +1811,10 @@ steps:
17501811
from_secret: docker_password
17511812
username:
17521813
from_secret: docker_username
1814+
environment:
1815+
PLUGIN_MIRROR:
1816+
from_secret: plugin_mirror
1817+
DOCKER_BUILDKIT: 1
17531818
when:
17541819
event:
17551820
exclude:

docs/content/doc/usage/labels.en-us.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,15 @@ For repositories, labels can be created by going to `Issues` and clicking on `La
2323

2424
For organizations, you can define organization-wide labels that are shared with all organization repositories, including both already-existing repositories as well as newly created ones. Organization-wide labels can be created in the organization `Settings`.
2525

26-
Labels have a mandatory name, a mandatory color, an optional description, and must either be exclusive or not (see `Scoped labels` below).
26+
Labels have a mandatory name, a mandatory color, an optional description, and must either be exclusive or not (see `Scoped Labels` below).
2727

2828
When you create a repository, you can ensure certain labels exist by using the `Issue Labels` option. This option lists a number of available label sets that are [configured globally on your instance](../customizing-gitea/#labels). Its contained labels will all be created as well while creating the repository.
2929

3030
## Scoped Labels
3131

32-
A scoped label is a label that contains `/` in its name (not at either end of the name). For example labels `kind/bug` and `kind/enhancement` both have scope `kind`. Such labels will display the scope with slightly darker color.
32+
Scoped labels are used to ensure at most a single label with the same scope is assigned to an issue or pull request. For example, if labels `kind/bug` and `kind/enhancement` have the Exclusive option set, an issue can only be classified as a bug or an enhancement.
3333

34-
The scope of a label is determined based on the **last** `/`, so for example the scope of label `scope/subscope/item` is `scope/subscope`.
35-
36-
Scoped labels can be marked as exclusive. This ensures at most a single label with the same scope is assigned to an issue or pull request. For example, if `kind/bug` and `kind/enhancement` are marked exclusive, an issue can only be classified as a bug or an enhancement.
34+
A scoped label must contain `/` in its name (not at either end of the name). The scope of a label is determined based on the **last** `/`, so for example the scope of label `scope/subscope/item` is `scope/subscope`.
3735

3836
## Filtering by Label
3937

modules/templates/helper.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ func RenderLabel(ctx context.Context, label *issues_model.Label) string {
834834
// Make scope and item background colors slightly darker and lighter respectively.
835835
// More contrast needed with higher luminance, empirically tweaked.
836836
luminance := (0.299*r + 0.587*g + 0.114*b) / 255
837-
contrast := 0.01 + luminance*0.06
837+
contrast := 0.01 + luminance*0.03
838838
// Ensure we add the same amount of contrast also near 0 and 1.
839839
darken := contrast + math.Max(luminance+contrast-1.0, 0.0)
840840
lighten := contrast + math.Max(contrast-luminance, 0.0)
@@ -859,12 +859,10 @@ func RenderLabel(ctx context.Context, label *issues_model.Label) string {
859859

860860
return fmt.Sprintf("<span class='ui label scope-parent' title='%s'>"+
861861
"<div class='ui label scope-left' style='color: %s !important; background-color: %s !important'>%s</div>"+
862-
"<div class='ui label scope-middle' style='background: linear-gradient(-80deg, %s 48%%, %s 52%% 0%%);'>&nbsp;</div>"+
863862
"<div class='ui label scope-right' style='color: %s !important; background-color: %s !important''>%s</div>"+
864863
"</span>",
865864
description,
866865
textColor, scopeColor, scopeText,
867-
itemColor, scopeColor,
868866
textColor, itemColor, itemText)
869867
}
870868

options/locale/locale_cs-CZ.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,7 @@ remove_account_link=Odstranit propojený účet
883883
remove_account_link_desc=Odstraněním propojeného účtu zrušíte jeho přístup k vašemu Gitea účtu. Pokračovat?
884884
remove_account_link_success=Propojený účet byl odstraněn.
885885

886+
886887
orgs_none=Nejste členem žádné organizace.
887888
repos_none=Nevlastníte žádné repozitáře
888889

options/locale/locale_de-DE.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,7 @@ remove_account_link=Verknüpften Account entfernen
792792
remove_account_link_desc=Wenn du den verknüpften Account entfernst, wirst du darüber nicht mehr auf deinen Gitea-Account zugreifen können. Fortfahren?
793793
remove_account_link_success=Der verknüpfte Account wurde entfernt.
794794

795+
795796
orgs_none=Du bist kein Mitglied in einer Organisation.
796797
repos_none=Du besitzt keine Repositories
797798

0 commit comments

Comments
 (0)