Files
gitea-MIRROR/tests
Corey Estey 95032ff039 fix(pull): link the pending pull request when reopen is blocked (#40300)
When reopening or creating a pull request is blocked by an existing one
between the same branches, the error now links to it. Previously the
reopen error only showed the number and the create error didn't mention
it. Retargeting, which already linked it, now shares the same message.

The link is built in Go instead of in the translations, under new
translation keys, so other locales fall back to English instead of
garbling the link until they are retranslated.

Before:
<img width="800" height="597" alt="before"
src="https://github.com/user-attachments/assets/9f65d65e-0c62-4f1f-93bb-9021437b0d37"
/>

After:
<img width="800" height="600" alt="after"
src="https://github.com/user-attachments/assets/2aca79d2-473d-4c4d-8435-8d2c00ded00e"
/>

Fixes: https://github.com/go-gitea/gitea/issues/33800

Assisted-by: Claude Code:claude-opus-5-5

---------

Signed-off-by: Corey Estey <147874433+kernelius-glitch@users.noreply.github.com>
Co-authored-by: silverwind <me@silverwind.io>
2026-11-30 16:02:37 +00:00
..