Actionable References Not Triggering on Manually Merges

Hi Gitea team,

I’ve encountered a bug with the actionable references feature. When a pull request is manually merged, the automatic closing behavior of referenced issues is not triggered as expected.

For example, I had a pull request with the description “This PR closes #1234”. After manually merging the pull request, issue #1234 was not automatically closed, and no notification was created on the issue as the documentation suggests should happen.

This behavior is inconsistent with the feature’s description, which states that issues should be closed if the merger of the pull request has the necessary permissions. I do have the permissions to close the issue, but the actionable reference did not take effect upon merging.

This bug affects the workflow for issue tracking and resolution, as it requires manual intervention to update the issue status after merging a PR. It could lead to inconsistencies in the issue tracking system and additional workload for the team.

Could you please look into this issue and advise on how it can be resolved? It’s an important feature for maintaining our issue tracking efficiency.

Thank you for your attention to this matter. Keep up the great work.