Skip to content

docs: add deprecation banner to delete_head_branch action#10790

Closed
JulianMaurin wants to merge 1 commit intomainfrom
devs/JulianMaurin/deprecate-queue-branch-merge-method/I86761e73de36c68ad13a723a17628acdd39bd221
Closed

docs: add deprecation banner to delete_head_branch action#10790
JulianMaurin wants to merge 1 commit intomainfrom
devs/JulianMaurin/deprecate-queue-branch-merge-method/I86761e73de36c68ad13a723a17628acdd39bd221

Conversation

@JulianMaurin
Copy link
Copy Markdown
Contributor

The delete_head_branch action is deprecated (engine#27721) and will be
removed on June 30, 2026. Users should use GitHub's built-in auto-delete
branches setting instead.

Refs: MRGFY-6799

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

The delete_head_branch action is deprecated (engine#27721) and will be
removed on June 30, 2026. Users should use GitHub's built-in auto-delete
branches setting instead.

Refs: MRGFY-6799

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Change-Id: I86761e73de36c68ad13a723a17628acdd39bd221
Copilot AI review requested due to automatic review settings April 1, 2026 16:42
@mergify mergify bot had a problem deploying to Mergify Merge Protections April 1, 2026 16:42 Failure
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Apr 1, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🔴 👀 Review Requirements

This rule is failing.
  • any of:
    • #approved-reviews-by >= 2
    • author = dependabot[bot]
    • author = mergify-ci-bot

🔴 🔎 Reviews

This rule is failing.
  • #review-requested = 0
  • #review-threads-unresolved = 0
  • #changes-requested-reviews-by = 0

🟢 🤖 Continuous Integration

Wonderful, this rule succeeded.
  • all of:
    • check-success = build
    • check-success = lint
    • check-success = test
    • any of:
      • check-success = test-broken-links
      • label = ignore-broken-links
    • any of:
      • check-success=Cloudflare Pages
      • -head-repo-full-name~=^Mergifyio/

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?:

🟢 📕 PR description

Wonderful, this rule succeeded.
  • body ~= (?ms:.{48,})

@mergify mergify bot requested a review from a team April 1, 2026 16:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a prominent deprecation notice to the delete_head_branch action documentation so users are directed toward GitHub’s built-in automatic branch deletion ahead of the planned removal date.

Changes:

  • Introduces a :::danger deprecation banner at the top of the delete_head_branch action doc.
  • Provides an external link to GitHub documentation for enabling automatic head-branch deletion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +8 to +12
:::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.
Copy link

Copilot AI Apr 1, 2026

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.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown

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.mdx pattern:

  • title: Delete Head Branch (Deprecated)
  • description: mentions deprecation and the June 30, 2026 removal date

Comment on lines +9 to +12
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.
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This banner advises users to use GitHub’s built-in auto-delete setting, but there is an existing doc page (src/content/docs/workflow/delete-head-branches.mdx) that currently recommends delete_head_branch as the ideal tool and contrasts it favorably against GitHub’s setting. Please update that page (or otherwise align cross-links/messaging) to avoid conflicting guidance.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants