Skip to content

Reorder the process of repo rename. #17990

Closed
@FlyingOnion

Description

@FlyingOnion

Feature Description

I'm facing a small problem when I implement my own notifier. When I implement NotifyRenameRepository function, I could not find the new repo name (the name in arg repo *models.Repository is the old name). After I check the code I found that repo.Name = newRepoName is called after function repo_service.ChangeRepositoryName.

There are two places:

if err := repo_service.ChangeRepositoryName(ctx.User, repo, newRepoName); err != nil {

if err := repo_service.ChangeRepositoryName(ctx.User, repo, newRepoName); err != nil {

Wait for your opinion.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions