Skip to content

chore(logging): include PR number when detecting existing branch PR#40832

Merged
viceice merged 1 commit intorenovatebot:mainfrom
ZackKanter:feat/log-pr-number-in-branch-processing
Feb 2, 2026
Merged

chore(logging): include PR number when detecting existing branch PR#40832
viceice merged 1 commit intorenovatebot:mainfrom
ZackKanter:feat/log-pr-number-in-branch-processing

Conversation

@ZackKanter
Copy link
Copy Markdown
Contributor

Changes

Include the PR number in debug log messages when detecting existing PRs during branch processing:

  1. Open PR detected (index.ts:305):
- Found existing branch PR
+ Found existing branch PR #123
  1. Closed PR detected (index.ts:197):
- Closed PR already exists. Skipping branch.
+ Closed PR #123 already exists. Skipping branch.    

This aligns with other PR-related log messages that already include the number (e.g., PR has been edited, PrNo:123, Matching PR #123 was merged previously) and aids debugging by making it easier to correlate log entries with specific PRs.

Context

Please select one of the following:

  • This closes an existing Issue, Closes: #
  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests, but ran on a real repository, or
  • Both unit tests + ran on a real repository

The public repository:

](https://cla-assistant.io/renovatebot/renovate)

Include the PR number in debug log messages when:
- An existing open branch PR is found ("Found existing branch PR renovatebot#123")
- A closed PR already exists ("Closed PR renovatebot#123 already exists")

This aids debugging by making it easier to correlate log entries with
specific PRs when reviewing Renovate logs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions github-actions Bot requested a review from viceice February 1, 2026 16:20
@viceice viceice changed the title feat(logging): include PR number when detecting existing branch PR chore(logging): include PR number when detecting existing branch PR Feb 1, 2026
@viceice
Copy link
Copy Markdown
Member

viceice commented Feb 1, 2026

@jamietanna @nabeelsaabna relevant to mend log parsing?

@nabeelsaabna
Copy link
Copy Markdown
Contributor

@jamietanna @nabeelsaabna relevant to mend log parsing?

All good

@viceice viceice added this pull request to the merge queue Feb 2, 2026
Merged via the queue into renovatebot:main with commit 7373eae Feb 2, 2026
42 checks passed
Copy link
Copy Markdown
Contributor

@jamietanna jamietanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 2, 2026

🎉 This PR is included in version 43.0.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants