Skip to content

Commit 1e270a4

Browse files
committed
Docs and logs cleanup
1 parent c7f03bb commit 1e270a4

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

custom/conf/app.example.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ ROUTER = console
10631063
;; In addition to testing patches using the three-way merge method, re-test conflicting patches with git apply
10641064
;TEST_CONFLICTING_PATCHES_WITH_GIT_APPLY = false
10651065
;;
1066-
;; Retarget the child pull request to the parent pull request branch target
1066+
;; Retarget child pull requests to the parent pull request branch target on merge of parent pull request
10671067
;RETARGET_CHILDREN_ON_MERGE = false
10681068

10691069
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

docs/content/doc/administration/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ In addition there is _`StaticRootPath`_ which can be set as a built-in at build
137137
- `POPULATE_SQUASH_COMMENT_WITH_COMMIT_MESSAGES`: **false**: In default squash-merge messages include the commit message of all commits comprising the pull request.
138138
- `ADD_CO_COMMITTER_TRAILERS`: **true**: Add co-authored-by and co-committed-by trailers to merge commit messages if committer does not match author.
139139
- `TEST_CONFLICTING_PATCHES_WITH_GIT_APPLY`: **false**: PR patches are tested using a three-way merge method to discover if there are conflicts. If this setting is set to **true**, conflicting patches will be retested using `git apply` - This was the previous behaviour in 1.18 (and earlier) but is somewhat inefficient. Please report if you find that this setting is required.
140-
- `RETARGET_CHILDREN_ON_MERGE`: **false**: Retarget the child pull request to the parent pull request branch target.
140+
- `RETARGET_CHILDREN_ON_MERGE`: **false**: Retarget child pull requests to the parent pull request branch target on merge of parent pull request.
141141

142142
### Repository - Issue (`repository.issue`)
143143

routers/api/v1/repo/pull.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,6 @@ func MergePullRequest(ctx *context.APIContext) {
905905
defer headRepo.Close()
906906
}
907907
if err := pull_service.RetargetChildrenOnMerge(ctx, ctx.Doer, pr); err != nil {
908-
log.Error("RetargetChildrenOnMerge: %v", err)
909908
ctx.Error(http.StatusInternalServerError, "RetargetChildrenOnMerge", err)
910909
return
911910
}

routers/web/repo/pull.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,6 @@ func deleteBranch(ctx *context.Context, pr *issues_model.PullRequest, gitRepo *g
14011401
fullBranchName := pr.HeadRepo.FullName() + ":" + pr.HeadBranch
14021402

14031403
if err := pull_service.RetargetChildrenOnMerge(ctx, ctx.Doer, pr); err != nil {
1404-
log.Error("RetargetChildrenOnMerge: %v", err)
14051404
ctx.Flash.Error(ctx.Tr("repo.branch.deletion_failed", fullBranchName))
14061405
return
14071406
}

0 commit comments

Comments
 (0)