Skip to content

Conversation

@alan-agius4
Copy link
Contributor

When a pull request is merged into a non-main branch, GitHub does not automatically close the linked issues. This change ensures that linked issues are closed when a PR is merged into any branch, not just the main branch.

This is achieved by fetching the closing issue references for a pull request and then iterating through them to close any that are not already closed. This is handled in the merge strategies to ensure it happens after a successful merge.

When a pull request is merged into a non-main branch, GitHub does not automatically close the linked issues. This change ensures that linked issues are closed when a PR is merged into any branch, not just the main branch.

This is achieved by fetching the closing issue references for a pull request and then iterating through them to close any that are not already closed. This is handled in the merge strategies to ensure it happens after a successful merge.
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Oct 24, 2025
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Oct 24, 2025
@alan-agius4 alan-agius4 merged commit 0566e3f into angular:main Oct 24, 2025
8 checks passed
@alan-agius4
Copy link
Contributor Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4 alan-agius4 deleted the close-isses-linked-prs branch October 24, 2025 08:52
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker detected: feature PR contains a feature commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants