Skip to content

fix: correct backport PR template syntax and clear auto-assignee#798

Merged
RiskeyL merged 1 commit into
mainfrom
fix/backport-pr-template-and-assignee
May 28, 2026
Merged

fix: correct backport PR template syntax and clear auto-assignee#798
RiskeyL merged 1 commit into
mainfrom
fix/backport-pr-template-and-assignee

Conversation

@RiskeyL
Copy link
Copy Markdown
Contributor

@RiskeyL RiskeyL commented May 28, 2026

Two follow-ups after the first real backport (#797).

Template syntax

prTitle used single braces, which the tool renders literally (visible as {commitMessages} in #797's title). The tool uses Handlebars double-brace tokens, switched to {{commitMessages}} / {{targetBranch}}. Also added a custom prDescription that matches the existing body format and drops the "Backport tool documentation" footer.

Auto-assignee workaround

sorenlouv/backport-github-action hardcodes the source PR's author as the backport PR's assignee. The action has no input to disable it and .backportrc.json cannot override it. Added a small companion workflow that listens for pull_request_target: assigned on backport/* head refs and removes the just-added assignee. The assigned → removal cycle does not loop because removal emits unassigned.

Copilot AI review requested due to automatic review settings May 28, 2026 03:50
@mintlify
Copy link
Copy Markdown
Contributor

mintlify Bot commented May 28, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
dify-core-product 🟢 Ready View Preview May 28, 2026, 3:53 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 28, 2026
Copy link
Copy Markdown
Contributor

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

This PR updates the backport automation configuration to render backport PR titles/descriptions correctly and adds a companion workflow to remove automatically assigned users from generated backport PRs.

Changes:

  • Corrects Backport Handlebars template syntax for PR titles.
  • Adds a custom backport PR description template.
  • Adds a workflow that clears assignees from PRs whose head branch starts with backport/.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.backportrc.json Updates backport PR title and body templates.
.github/workflows/backport-clear-assignee.yml Adds automation to remove assignees from backport PRs when assignment events occur.

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

@RiskeyL RiskeyL merged commit ee60e3a into main May 28, 2026
3 checks passed
@RiskeyL RiskeyL deleted the fix/backport-pr-template-and-assignee branch May 28, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants