Custom label set not picked up in all places #7555

Closed
opened 2025-11-02 07:29:43 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @pixelspark on GitHub (Jul 7, 2021).

  • Gitea version (or commit ref): 1.14.4
  • Git version: 2.30.2 (seems irrelevant)
  • Operating system: Linux (Docker on Debian)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:

Description

After adding a custom label file to $GITEA_CUSTOM/options/label, the label set becomes available in the 'create repository' screen, but not as a preset on a repository's "labels" page.

Screenshots

In the below screenshot, the 'Dialogic' set is custom:

image

Nevertheless, it doesn't show up on the repository's label page:

image

I do not expect the label file itself to be the issue, nevertheless here it is:

#EC0000 bug ; Something is not working as it should
#CCCCCC duplicate ; This issue already exists
#27A581 feature ; A new feature is requested
#93BA5A user-request ; This was requested by an end-user
#1A7789 ui-ux ; This issue is related to a UI/UX issue
#DE8C3F chore ; This issue is related to non-user-facing changes (e.g. maintenance of code, tooling)
#003764 paid ; There is a direct budget to resolve this issue
#E8B63C performance ; This issue is related to performance
#f00eca easy ; This issue is probably easy to fix (a good first issue!)
Originally created by @pixelspark on GitHub (Jul 7, 2021). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.14.4 - Git version: 2.30.2 (seems irrelevant) - Operating system: Linux (Docker on Debian) <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [ ] PostgreSQL - [X] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X] No - Log gist: <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini --> ## Description <!-- If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please disable the proxy/CDN fully and connect to gitea directly to confirm the issue still persists without those services. --> After adding a custom label file to `$GITEA_CUSTOM/options/label`, the label set becomes available in the 'create repository' screen, but not as a preset on a repository's "labels" page. ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** --> In the below screenshot, the 'Dialogic' set is custom: ![image](https://user-images.githubusercontent.com/181337/124791896-c88b1a00-df4c-11eb-9ab5-80a4d5d904ea.png) Nevertheless, it doesn't show up on the repository's label page: ![image](https://user-images.githubusercontent.com/181337/124791855-bc06c180-df4c-11eb-9aa1-8ae714650349.png) I do not expect the label file itself to be the issue, nevertheless here it is: ```` #EC0000 bug ; Something is not working as it should #CCCCCC duplicate ; This issue already exists #27A581 feature ; A new feature is requested #93BA5A user-request ; This was requested by an end-user #1A7789 ui-ux ; This issue is related to a UI/UX issue #DE8C3F chore ; This issue is related to non-user-facing changes (e.g. maintenance of code, tooling) #003764 paid ; There is a direct budget to resolve this issue #E8B63C performance ; This issue is related to performance #f00eca easy ; This issue is probably easy to fix (a good first issue!) ````
GiteaMirror added the type/enhancementtopic/ui labels 2025-11-02 07:29:43 -06:00
Author
Owner

@pixelspark commented on GitHub (Jul 7, 2021):

Note that saving my custom label set as $GITEA_CUSTOM/options/label/Default does replace the default set presented on the repository's label screen.

While this might be by design, it is a bit confusing. Suggestions for fixing:

  • Document this behaviour (tell users that the Default file is probably where they want to save labels, and that other labels will only be available for creation of new repositories)
  • Also present other label sets in the repository labels screen (and possibly also the organisation-wide screen, which also suggests the Default label set when there are no labels)
@pixelspark commented on GitHub (Jul 7, 2021): Note that saving my custom label set as `$GITEA_CUSTOM/options/label/Default` does replace the default set presented on the repository's label screen. While this might be by design, it is a bit confusing. Suggestions for fixing: * Document this behaviour (tell users that the `Default` file is probably where they want to save labels, and that other labels will only be available for creation of new repositories) * Also present other label sets in the repository labels screen (and possibly also the organisation-wide screen, which also suggests the Default label set when there are no labels)
Author
Owner

@pixelspark commented on GitHub (Jul 7, 2021):

Okay, I feel stupid. I simply didn't notice the 'default' rectangle is actually dropdown menu. This correctly shows my custom label set:

image

image

Maybe change the styling of the dropdown? (I am using Edge on a Mac, not sure how it looks elsewhere).

@pixelspark commented on GitHub (Jul 7, 2021): Okay, I feel stupid. I simply didn't notice the 'default' rectangle is actually dropdown menu. This correctly shows my custom label set: ![image](https://user-images.githubusercontent.com/181337/124793011-dab98800-df4d-11eb-8a00-f304fac22a57.png) ![image](https://user-images.githubusercontent.com/181337/124792833-aa71e980-df4d-11eb-8a2d-a045ae5616c3.png) Maybe change the styling of the dropdown? (I am using Edge on a Mac, not sure how it looks elsewhere).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7555