DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH is always true #14994

Closed
opened 2025-11-02 11:27:35 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @OddMorning on GitHub (Oct 1, 2025).

Description

I'm able to close issues with keywords in commit description even despite DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH is not specified in the config.

Then I added this and it still affects nothing:

[repository]
DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH = false

It seems the option is broken.

I'm not able to reproduce it on the demo site though (it's running 1.26.0+dev-2-g53dfbbb2ee, that might be a reason?)

Gitea Version

1.24.6

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Running from docker on linux

Database

None

Originally created by @OddMorning on GitHub (Oct 1, 2025). ### Description I'm able to close issues with keywords in commit description even despite `DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH` is not specified in the config. Then I added this and it still affects nothing: ``` [repository] DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH = false ``` It seems the option is broken. I'm not able to reproduce it on the demo site though (it's running `1.26.0+dev-2-g53dfbbb2ee`, that might be a reason?) ### Gitea Version 1.24.6 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Running from docker on linux ### Database None
GiteaMirror added the issue/needs-feedback label 2025-11-02 11:27:35 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Oct 1, 2025):

It is a per-repo setting

Image
@wxiaoguang commented on GitHub (Oct 1, 2025): It is a per-repo setting <img width="1086" height="492" alt="Image" src="https://github.com/user-attachments/assets/1f2f46fd-afd1-4e2b-aaae-815497c57f32" />
Author
Owner

@pratyush2514 commented on GitHub (Oct 2, 2025):

please assign me this issue to work one, I'd be happy to contribute on it

@pratyush2514 commented on GitHub (Oct 2, 2025): please assign me this issue to work one, I'd be happy to contribute on it
Author
Owner

@wxiaoguang commented on GitHub (Oct 2, 2025):

please assign me this issue to work one, I'd be happy to contribute on it

I don't think you have understood the problem or you know how to work on it. Nothing is broken.

@wxiaoguang commented on GitHub (Oct 2, 2025): > please assign me this issue to work one, I'd be happy to contribute on it I don't think you have understood the problem or you know how to work on it. Nothing is broken.
Author
Owner

@wxiaoguang commented on GitHub (Oct 3, 2025):

It is a per-repo setting

@OddMorning does it explain the root cause? And we can close this as "completed"?

@wxiaoguang commented on GitHub (Oct 3, 2025): > It is a per-repo setting @OddMorning does it explain the root cause? And we can close this as "completed"?
Author
Owner

@OddMorning commented on GitHub (Oct 3, 2025):

It is a per-repo setting

@OddMorning does it explain the root cause? And we can close this as "completed"?

I didn't notice that option, for some reason is was enabled in my repo. Unchecked it and everything is working as expected. So, as you said, nothing is broken.

@OddMorning commented on GitHub (Oct 3, 2025): > > It is a per-repo setting > > [@OddMorning](https://github.com/OddMorning) does it explain the root cause? And we can close this as "completed"? I didn't notice that option, for some reason is was enabled in my repo. Unchecked it and everything is working as expected. So, as you said, nothing is broken.
Author
Owner

@wxiaoguang commented on GitHub (Oct 3, 2025):

Yep, DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH means the default value for a new repo creation. It doesn't affect existing repo settings.

@wxiaoguang commented on GitHub (Oct 3, 2025): Yep, `DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH` means the default value for a new repo creation. It doesn't affect existing repo settings.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14994