-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Organization Wide Labels #10814
Add Organization Wide Labels #10814
Conversation
Implement organization wide labels similar to organization wide webhooks. This lets you create individual labels for organizations that can be used for all repos under that organization (so being able to reuse the same label across multiple repos). This makes it possible for small organizations with many repos to use labels effectively. Fixes go-gitea#7406
Maybe add blue line not below label for organization labels but on left side? |
I'm not sure what line that is? If it is in the label selection screenshot that is just the label being highlighted when clicked (happens to any label that is the last clicked on) |
Oh ok, I thought it was to distinguish repo vs org labels :D |
I put a new screenshot without that to avoid confusion : ) |
Removed unused translation string
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## master #10814 +/- ##
==========================================
+ Coverage 43.40% 43.48% +0.07%
==========================================
Files 593 596 +3
Lines 83276 83804 +528
==========================================
+ Hits 36146 36440 +294
- Misses 42636 42847 +211
- Partials 4494 4517 +23
Continue to review full report at Codecov.
|
Co-Authored-By: 6543 <6543@obermui.de>
Ping LG-TM |
I was just reading through the 12.0.0 release notes and came across this feature. Just wanted to take a minute to thank @mrsdizzie and anyone else that contributed to this feature. This will save me (and I'm sure others) a bunch of time. Blessings, |
Add organization wide labels
Implement organization wide labels similar to organization wide webhooks. This lets you create individual labels for organizations that can be used for all repos under that organization (so being able to reuse the same label across multiple repos).
This makes it possible for small organizations with many repos to use labels effectively.
Fixes #7406
Combine repo/organization templates to reduce code
Update label selection
Add API endpoints for organization labels that match repo labels
Integrate organization labels in relevant Issues and IssueLabel API calls
Unit Tests
Integration Tests
While I was here I updated the repo labels UI a bit as it had a few layout issues and the current dashed border version didn't look very nice in the organization settings.
Also found that https://try.gitea.io/api/swagger#/issue/issueSearchIssues with multiple labels was broken in dbd9d8d#diff-d5eea3b2c0d4c92d62e12b34eb8da2c0 and fixed that too (and added integration tests).
Screenshots:
Org Labels:
Label Selection:
Repo Label List:
Issue search/list with same label applied to multiple repo issues:
(pagination bugs not mine 😬)