-
-
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
RepoAssignment ensure to close before overwrite #19449
RepoAssignment ensure to close before overwrite #19449
Conversation
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.
Apart from the two currently open suggestions LGTM
Co-authored-by: delvh <[email protected]>
@wxiaoguang added some smal refactoring - I wont backport this but its good to have in main |
Codecov Report
@@ Coverage Diff @@
## main #19449 +/- ##
=======================================
Coverage ? 47.40%
=======================================
Files ? 951
Lines ? 132339
Branches ? 0
=======================================
Hits ? 62732
Misses ? 62051
Partials ? 7556
Continue to review full report at Codecov.
|
current conclusion ... we need a unified way to inject and get gitRepo from context e.g. either use git.RepositoryFromContextOrOpen() or pass gitRepo as argument, whatever simplify the code in the specific case best |
🚀 |
* giteaofficial/main: Fix logging of Transfer API (go-gitea#19456) RepoAssignment ensure to close before overwrite (go-gitea#19449) node12 is EOL (go-gitea#19451) Add Changelog v1.16.6 (go-gitea#19339) (go-gitea#19450) Fix DELETE request for non-existent public key (go-gitea#19443) [skip ci] Updated translations via Crowdin Don't panic on `ErrEmailInvalid` (go-gitea#19441)
#19461) as per #19449 (comment) pass gitRepo down to GetRawDiff, since its used for main repo and wiki
* check if GitRepo already open and close if * only run RepoAssignment once * refactor context helper for api to open GitRepo
go-gitea#19461) as per go-gitea#19449 (comment) pass gitRepo down to GetRawDiff, since its used for main repo and wiki
as title - to prevent "pipe leaks"