[Feature Request] Make linked PRs on a 3rd-Party Repo able to auto-close the related Issue on a own Repo. #195000
-
🏷️ Discussion TypeQuestion BodyHello! I want to see the Availability of this Case:
For Me it didn't work, so I'm requesting it. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
|
As far as I know, automatic Issue closing only works reliably when the PR and Issue are in repositories where GitHub can resolve the relationship directly. For cross-repository cases (especially third-party repos), the closing keywords like: may not automatically close the Issue. You may need to:
This would definitely be useful for multi-repository workflows and external contribution tracking. |
Beta Was this translation helpful? Give feedback.
-
|
After looking into this behavior, it seems GitHub currently treats “cross-repository referencing” and “automatic issue closure” as two separate systems internally. When keywords such as: Fixes #123
Closes #123
Resolves #123are used inside the same repository, GitHub can safely associate the pull request, commit history, permissions, and issue state together. However, the behavior appears to change when the target issue belongs to an unrelated 3rd-party repository. In those cases, GitHub still parses the keyword correctly and creates the cross-reference successfully, but it does not perform the final automatic closure action. So the current behavior is effectively:
Example: Fixes owner/repository#123Result:
From a platform-design perspective, this is likely intentional rather than accidental. GitHub probably restricts automatic state changes across unrelated repositories to prevent scenarios such as:
So based on the current workflow model, what you are seeing looks like an existing platform limitation/safety restriction rather than a missing setting or syntax mistake. Your suggestion actually makes a lot of sense for modern multi-repository development workflows, especially in cases involving:
Having optional or permission-based support for trusted external auto-closing would definitely improve cross-repository collaboration workflows. |
Beta Was this translation helpful? Give feedback.
This comment was marked as low quality.
This comment was marked as low quality.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Custom GitHub Action/Workflow does wonders!