-
-
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 codeowners feature #24910
Add codeowners feature #24910
Conversation
Co-authored-by: techknowlogick <matti@mdranta.net>
services/pull/pull.go
Outdated
Users []*user_model.User | ||
} | ||
|
||
func parseCodeOwnersLine(ctx context.Context, tokens []string) (*CodeOwnerRule, []string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it needs some tests to cover the code, to make sure the logic won't be broken by future changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added test for file parser
|
…into WinnerSoftLab-feature/code_owners
Sent 7ddd654 to fix th lint |
@cl-bvl can you allow push access to your branch? Otherwise this will be hard to merge on UI at least with our branch protection rules in place. |
I guess that's GitHub's limitation, GitHub doesn't work that way. Since this PR is from a org (WinnerSoftLab), so no "Allow maintainer edit". Only the author can update the PR unless someone is added as the fork's collaborator. |
So effectively, this can likely only be merged manually on the CLI. In any case, lint needs to be fixed first. |
What about #24910 (comment) ? |
I in fact sent a PR to that fork repository, they just need to review and merge it. |
Branch needs manual merge as we can not push merges to it. |
* main: Modify OAuth login ui and fix display name, iconurl related logic (go-gitea#25030) Fix open redirect check for more cases (go-gitea#25143) Update js dependencies (go-gitea#25137) Remove duplicated functions when deleting a branch (go-gitea#25128) Add codeowners feature (go-gitea#24910) Fix strange UI behavior of cancelling dismiss review modal (go-gitea#25133) Fix `MilestoneIDs` when querying issues (go-gitea#25125) Fix incorrect git ignore rule and add missing license files (go-gitea#25135) Change branch name from master to main in some documents' links (go-gitea#25126) Remove incorrect element ID on "post-install" page (go-gitea#25104) [skip ci] Updated translations via Crowdin Improve notification icon and navbar (go-gitea#25111) fix swagger documentation for multiple files API endpoint (go-gitea#25110)
* upstream/main: [skip ci] Updated translations via Crowdin Modify OAuth login ui and fix display name, iconurl related logic (go-gitea#25030) Fix open redirect check for more cases (go-gitea#25143) Update js dependencies (go-gitea#25137) Remove duplicated functions when deleting a branch (go-gitea#25128) Add codeowners feature (go-gitea#24910) Fix strange UI behavior of cancelling dismiss review modal (go-gitea#25133) Fix `MilestoneIDs` when querying issues (go-gitea#25125) Fix incorrect git ignore rule and add missing license files (go-gitea#25135) Change branch name from master to main in some documents' links (go-gitea#25126) Remove incorrect element ID on "post-install" page (go-gitea#25104) [skip ci] Updated translations via Crowdin Improve notification icon and navbar (go-gitea#25111) fix swagger documentation for multiple files API endpoint (go-gitea#25110) Fix webauthn regression and improve code (go-gitea#25113) Add details summary for vertical menus in settings to allow toggling (go-gitea#25098) Fix 500 error caused by notifications without an issue such as repo transfers (go-gitea#25101)
Hello, I'm experimenting with this feature on a build of Gitea as of commit 4fc4f6e. Unfortunately I cannot seem to make it work, adding a
Does not give the user Going through the changes in this patch, there does not seem to be anything else that needs to be configured. |
I think this PR just adds a "request for review" and not the ability to approve or merge (?) |
I see, thank you. |
Hello.
This PR adds a github like configuration for the CODEOWNERS file.
Resolves: #10161