I was hinted on the action at gradle/gradle#32290 (comment).
I am running a project for people not fully aware of GitHub. Therefore, I really like the comment Closed by #1234. My wish is that the message could be modified. In my case
Closed by {{ issue_ref }}.
Head to https://builds.jabref.org/main to try it out.
That should be posted even when merging into main
Alternatives considered: Use ticket-check-action with fix neofinancial/ticket-check-action#58 - and use the output ticket number to generate a comment on a PR. Seems to be more complicated.
Refs #16, which asks for the opposite.