Prevent double close comments #8380

Open
opened 2025-11-02 08:04:18 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @qwerty287 on GitHub (Jan 19, 2022).

Feature Description

Gitea should prevent close comments if the issue is already closed (just don't add another comment). This happens while merging a PR with squash merge - one close comment comes from the PR desc (close #...) and one from the merge commit if the PR desc is also the commit message.

Screenshots

This example comes from https://codeberg.org/gitnex/GitNex/issues/985#event-291274

Originally created by @qwerty287 on GitHub (Jan 19, 2022). ### Feature Description Gitea should prevent close comments if the issue is already closed (just don't add another comment). This happens while merging a PR with squash merge - one close comment comes from the PR desc (`close #...`) and one from the merge commit if the PR desc is also the commit message. ### Screenshots ![](https://user-images.githubusercontent.com/80460567/150170740-d533ec00-6007-461e-a195-ba823906ea6a.png) This example comes from https://codeberg.org/gitnex/GitNex/issues/985#event-291274
Author
Owner

@wxiaoguang commented on GitHub (Jan 19, 2022):

That's a long story and duplicated of #17111
We could close this one

update: this seems a new problem.

@wxiaoguang commented on GitHub (Jan 19, 2022): ~~That's a long story and duplicated of #17111~~ ~~We could close this one~~ update: this seems a new problem.
Author
Owner

@wxiaoguang commented on GitHub (Jan 19, 2022):

Hmm ... maybe we could do some backend work for the Close action only.

@wxiaoguang commented on GitHub (Jan 19, 2022): Hmm ... maybe we could do some backend work for the `Close` action only.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8380