-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Enhancement] Allow admin to merge pr with protected file changes #12078
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
Conversation
As tilte, show protected message in diff page and merge box. Signed-off-by: a1012112796 <[email protected]>
Co-authored-by: Cirno the Strongest <[email protected]>
You should probably add UI text for singular and plural changed files with |
Codecov Report
@@ Coverage Diff @@
## master #12078 +/- ##
==========================================
- Coverage 42.84% 42.79% -0.06%
==========================================
Files 662 663 +1
Lines 73002 73103 +101
==========================================
+ Hits 31279 31281 +2
- Misses 36652 36737 +85
- Partials 5071 5085 +14
Continue to review full report at Codecov.
|
Co-authored-by: zeripath <[email protected]>
routers/private/hook.go
Outdated
protectedFilePath string | ||
) | ||
|
||
// Check Protected file pattern |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
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.
So I think it's now possible that the result of pull_service.CheckPRReadyToMerge(pr)
may actually be incorrect - in that the changeProtectedFiles
bit of it might be out-of-date. I think we're gonna need to drop that check from CheckPRReadyToMerge or avoid it somehow.
* move pr proteced files check to TestPatch * Call TestPatch when protected branches settings changed
Please resolve the conflicts. |
Please don't add all codes to |
Codecov Report
@@ Coverage Diff @@
## master #12078 +/- ##
==========================================
- Coverage 42.37% 42.32% -0.06%
==========================================
Files 676 677 +1
Lines 74531 74628 +97
==========================================
+ Hits 31584 31585 +1
- Misses 37814 37901 +87
- Partials 5133 5142 +9
Continue to review full report at Codecov.
|
Adds a lot of comments and simplifies the logic Signed-off-by: Andrew Thornton <[email protected]>
Signed-off-by: Andrew Thornton <[email protected]>
Signed-off-by: Andrew Thornton <[email protected]>
…ary repository Signed-off-by: Andrew Thornton <[email protected]>
Signed-off-by: Andrew Thornton <[email protected]>
OK I think I'm done adjusting this now! |
Signed-off-by: Andrew Thornton <[email protected]>
As tilte, show protected message in diff page and merge box.
view:
