mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-29 01:44:08 +01:00
Update services/repository/branch.go
Typo
This commit is contained in:
parent
76d011c4b2
commit
decb673f28
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ func DeleteBranch(ctx context.Context, doer *user_model.User, repo *repo_model.R
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteBranchAfterMerge deletes the head branch after a PR was merged assiociated with the head branch.
|
// DeleteBranchAfterMerge deletes the head branch after a PR was merged associated with the head branch.
|
||||||
func DeleteBranchAfterMerge(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest, headRepo *git.Repository) error {
|
func DeleteBranchAfterMerge(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest, headRepo *git.Repository) error {
|
||||||
// Don't cleanup when there are other PR's that use this branch as head branch.
|
// Don't cleanup when there are other PR's that use this branch as head branch.
|
||||||
exist, err := issues_model.HasUnmergedPullRequestsByHeadInfo(ctx, pr.HeadRepoID, pr.HeadBranch)
|
exist, err := issues_model.HasUnmergedPullRequestsByHeadInfo(ctx, pr.HeadRepoID, pr.HeadBranch)
|
||||||
|
|
Loading…
Reference in a new issue