refactor: remove redundant merge information text from pull request view#235
refactor: remove redundant merge information text from pull request view#235pieer wants to merge 3 commits into
Conversation
SummaryRemoves the three-line Findings1. 🟡 Removal hardcodes the "branches are always auto-deleted" assumptionFile: Status:
2. ⚪️ The custom locale override
|
| Severity | Count |
|---|---|
| 🔴 High | 0 |
| 🟡 Medium | 1 |
| ⚪️ Low | 2 |
The custom pull_merge_box template no longer references repo.pulls.merged_info_text (and it fully shadows the base template), so this custom locale override is dead. Remove it to avoid implying it's still wired up. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
With the merge-info line removed, the "merged_success" <h3> is the only child of item-section-left, so its tw-mb-2 left dangling whitespace beneath it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Issue: The custom template unconditionally renders "repo.pulls.merged_info_text", which in the custom locale says "The branch %s can now be deleted." — shown after every merge, with no condition on whether the branch is actually deletable.
Here's exactly what's still broken:
custom/templates/repo/issue/view_content/pull_merge_box.tmpl:48-50:
This renders unconditionally after every merge. Since branches are always auto-deleted on this project, it's always wrong.
The fix is simple — remove those 3 lines from the template (the locale key can stay, it's harmless). The comment on issue #187 that said "fixed in #166" was premature; only half the issue was addressed.
Co-author with Claude opus 4.8