-
Notifications
You must be signed in to change notification settings - Fork 11
docs: add deprecation banner to delete_head_branch action #10790
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,13 @@ description: Delete pull request head branch. Useful to clean pull requests once | |
|
|
||
| import ActionOptionsTable from '../../../../components/Tables/ActionOptionsTable'; | ||
|
|
||
| :::danger | ||
| The `delete_head_branch` action is **deprecated** and will be removed on | ||
| June 30, 2026. Use GitHub's built-in [automatically delete head | ||
| branches](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-the-automatic-deletion-of-branches) | ||
| setting instead. | ||
|
Comment on lines
+9
to
+12
|
||
| ::: | ||
|
|
||
| The `delete_head_branch` action allows Mergify to automatically delete the head | ||
| branch of a pull request once it has been merged. This can be useful for | ||
| maintaining a clean repository and reducing clutter from unused branches. | ||
|
|
||
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.
The banner says this action is deprecated, but the page frontmatter still presents it as an active feature (title/description). To keep search results/navigation consistent with other deprecated action docs (e.g.,
src/content/docs/workflow/actions/post_check.mdx), update the frontmatter to clearly indicate deprecation/removal timeline.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.
@copilot apply changes based on this feedback
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.
Updated the frontmatter to match the
post_check.mdxpattern:Delete Head Branch (Deprecated)