-
-
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
fix incorrect repo url when changed the case of ownername #25733
Merged
Merged
Changes from 7 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d12f545
Also update the repo's owner_name when only the apitalization of user…
hiifong 72d41dc
Merge branch 'main' into update_repo_owner_name
hiifong 2917d3c
Merge branch 'go-gitea:main' into update_repo_owner_name
hiifong 85634aa
fix lint
hiifong c60c602
replaced
hiifong 6fed2c4
fix
hiifong 01e4b06
Merge branch 'main' into update_repo_owner_name
hiifong 0115661
Update routers/web/org/setting.go
hiifong 6b94a7a
fix
hiifong 5e482e5
Update user.go
hiifong 631f2d9
Merge branch 'main' into update_repo_owner_name
hiifong a86bfec
fix
hiifong d115776
Merge branch 'main' into update_repo_owner_name
hiifong 47fd002
remove second
hiifong 2f5745d
Merge branch 'main' into update_repo_owner_name
hiifong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
gitea/services/org/org.go
Lines 72 to 74 in 491cc06
RenameOrganization
callRenameUser
, and inRenameUser
we will callUpdateRepositoryOwnerNames
, so it is no need to call it again here?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.
RenameOrganization
->RenameUser
->UpdateRepositoryOwnerNames
, Why call it again?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.
In L70:
RenameOrganization
->RenameUser
->UpdateRepositoryOwnerNames
UpdateRepositoryOwnerNames
will be called for the first time.In L135,
UpdateRepositoryOwnerNames
will be called again.So
UpdateRepositoryOwnerNames
will be called two times.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.
Repeatedly called it
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.
Removed the second call it.
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.
Removed?
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.
now file changed:
When only the case of the user name changes and the new user name is consistent with the lowercase user name of the old user name, update the owner name of the repo, and keep the original logic consistent with other conditions.
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.
yes