Skip to content

Commit d138c36

Browse files
authored
infra: automatically delete branch on pr merge (apache#21033)
Enable automatic deletion of head branches after merging. ## Which issue does this PR close? <!-- We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes apache#123` indicates that this PR will close issue apache#123. --> - Closes #. ## Rationale for this change As described in https://github.com/apache/infrastructure-asfyaml?tab=readme-ov-file#pull_requests ``` github: pull_requests: del_branch_on_merge: true ``` <!-- Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed. Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes. --> ## What changes are included in this PR? <!-- There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR. --> ## Are these changes tested? <!-- We typically require tests for all PRs in order to: 1. Prevent the code from being accidentally broken by subsequent changes 2. Serve as another way to document the expected behavior of the code If tests are not included in your PR, please explain why (for example, are they covered by existing tests)? --> ## Are there any user-facing changes? <!-- If there are user-facing changes then we may require documentation to be updated before approving the PR. --> <!-- If there are any breaking changes to public APIs, please add the `api change` label. -->
1 parent 317052e commit d138c36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.asf.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ github:
6969
# enable updating head branches of pull requests
7070
allow_update_branch: true
7171
allow_auto_merge: true
72+
# auto-delete head branches after being merged
73+
del_branch_on_merge: true
7274

7375
# publishes the content of the `asf-site` branch to
7476
# https://datafusion.apache.org/

0 commit comments

Comments
 (0)