Auto-closing of issues via PR doesn't work #1163

Closed
opened 2025-11-02 03:50:51 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @SnowMB on GitHub (Oct 18, 2017).

  • Gitea version (or commit ref): 1.2.0+6-g46bb1cf
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I've tried a few things to automatically close issues when a PR is merged. I haven't found a way to do it.
Neither a commit with the message containing closes #xx nor using closes #xx as title or pr message has any effect.

This is problematic because gitea doesn't display references that are made to the pr / issue in the discussion tab like github does. So there is no indicator if the issue was discussed / handled in another issue / pr.

Screenshots

Originally created by @SnowMB on GitHub (Oct 18, 2017). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.2.0+6-g46bb1cf - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description I've tried a few things to automatically close issues when a PR is merged. I haven't found a way to do it. Neither a commit with the message containing `closes #xx` nor using `closes #xx` as title or pr message has any effect. This is problematic because gitea doesn't display references that are made to the pr / issue in the discussion tab like github does. So there is no indicator if the issue was discussed / handled in another issue / pr. ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/confirmedtype/enhancement labels 2025-11-02 03:50:51 -06:00
Author
Owner

@lunny commented on GitHub (Oct 19, 2017):

@lafriks this should be a bug, but not an enhancement.

@lunny commented on GitHub (Oct 19, 2017): @lafriks this should be a bug, but not an enhancement.
Author
Owner

@SnowMB commented on GitHub (Oct 19, 2017):

@lunny It might be both. A bug for not recognizing the "closes #xx" in a commit message after the pr is merged.

Feature request for also supporting closing issues by title / description of the PR.

@SnowMB commented on GitHub (Oct 19, 2017): @lunny It might be both. A bug for not recognizing the "closes #xx" in a commit message after the pr is merged. Feature request for also supporting closing issues by title / description of the PR.
Author
Owner

@krrutkow commented on GitHub (Jan 10, 2018):

Any update on when this issue might be addressed?

@krrutkow commented on GitHub (Jan 10, 2018): Any update on when this issue might be addressed?
Author
Owner

@finalex commented on GitHub (Mar 8, 2018):

Is there any plan for this issue?

@finalex commented on GitHub (Mar 8, 2018): Is there any plan for this issue?
Author
Owner

@stale[bot] commented on GitHub (Feb 7, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Feb 7, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@mrsdizzie commented on GitHub (Sep 7, 2020):

Fixed since #8866

@mrsdizzie commented on GitHub (Sep 7, 2020): Fixed since #8866
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1163