You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOC] changelog-sync: also see PRs merged with a merge commit or by rebase - #10867
The changelog-sync agent finds recent changes with git log --since="8 days ago" --name-only. That command lists no files for a merge commit, and it drops branch commits older than the 8-day window. So the agent misses the changes of a PR that was merged with a merge commit: that is 65 of the 646 first-parent commits on develop between 2026-08-11 and 2026-11-09. Another 36 commits in that period come from rebase merges or direct pushes (e.g. #9800, #9769). They carry no PR number, so the agent cannot tell which PR they belong to.
Example: #10847 was merged on 2026-11-07 from a branch commit dated 2026-10-15. For a window starting on the merge day, the old command does not list its src/openms/source/SYSTEM/SysInfo.cpp, while git log --first-parent --diff-merges=first-parent --name-only does. A replay of 13 weekly windows (2026-08-17 to 2026-11-09, in the review) found 54 more files with the new command and none lost that the PRs' net diffs touch.
Changes in .github/workflows/changelog-sync.md:
The file list uses --first-parent --diff-merges=first-parent, which lists what each commit on develop brought in.
The PR list uses --first-parent and names both subject forms: (#N) for a squash merge, Merge pull request #N for a merge commit.
For a commit with neither form, the agent searches pull requests for its SHA (repo:OpenMS/OpenMS is:pr is:merged <sha>) and takes the PR merged in the window.
The workflow checks out the full history (fetch-depth: 0), so the flags work there. Only the prompt body changed: the frontmatter and its hash are unchanged, and the lock file imports the body at runtime, so no recompile is needed.
This was deferred from the review of #10838. The workflow itself is still disabled.
Checklist
Make sure that you are listed in the AUTHORS file
I have commented my code, particularly in hard-to-understand areas (no code changes)
New and existing unit tests pass locally with my changes (documentation only)
Updated or added python bindings for changed or new classes (no updates necessary)
git log --name-only lists no files for a merge commit and drops branch
commits older than the 8-day window, so the agent missed the changes of a PR
merged with a merge commit (31 of 321 commits on develop in 90 days), e.g.
#10847: merged 2026-11-07 from a commit of 2026-10-15, its SysInfo.cpp was
not listed. --first-parent --diff-merges=first-parent lists what each commit
on develop brought in; the PR list uses --first-parent too and names both
subject forms. Deferred from the review of #10838.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HJitekJKm6HFXbNXbrdeof
The changelog instructions now use first-parent history and first-parent merge diffs to identify files changed in the last eight days. They describe how to find related pull requests, trace rebased or direct-push commits by SHA, and include packaging-only pull requests in review.
Changes: Changelog history discovery
Layer / File(s)
Summary
First-parent history commands .github/workflows/changelog-sync.md
The instructions use first-parent history and merge diffs for file discovery. They explain how to identify merged pull requests, find pull requests for commits by SHA, and review packaging-only changes.
Possibly related PRs
OpenMS/OpenMS#10646: Sets the changelog agent’s weekly schedule and eight-day lookback.
OpenMS/OpenMS#10695: Adds changelog entries from recently merged pull requests.
A rabbit checks the branch’s first trail, Finds changed files in the recent tale. Merge commits and SHAs align, Packaging changes join the line. The changelog hops along just fine.
The reason will be displayed to describe this comment to others. Learn more.
AI-generated initial review
This is an automated, AI-generated first review. It looks only for high- and medium-priority issues (no nits) and checks whether the PR has tests and measurements. Please double-check anything before acting on it; a maintainer will follow up. I reviewed c8e3ce76 against develop (90e5a006).
CodeRabbit left no inline comments.
What I ran:
CI: everything had passed when I looked, except build-and-test (clang++ and Windows) and the Windows wheel, which were still running. The PR changes only the agent prompt, so CI doesn't exercise it.
Lock file: I confirmed what the description says. changelog-sync.lock.yml:169 imports the body at runtime ({{#runtime-import .github/workflows/changelog-sync.md}}), and the frontmatter is unchanged, so no recompile is needed. The agent job's checkout uses fetch-depth: 0 (:270), so --first-parent sees the real history. --diff-merges needs git ≥ 2.31; I used 2.43.
Replay on the real develop history: I fetched develop back to 2026-06-01 and replayed the step as 13 weekly runs, from 2026-08-17 to 2026-11-09. Each run used the tip of develop at that date, the 8-day window and the prompt's filter. I compared the old command with the new one:
The new command lists every file the old one lists, plus 54 more in 6 of the 13 weeks. Examples are the PeptDeep inference sources (week of 08-31), FFIDAlgoExternalIDHandler/PosteriorErrorProbabilityModel (09-07), the TMT 32/35-plex methods (10-19) and S3InputSource.h with 24 more files (10-26).
The only file the new command loses: 3 files in the week of 08-17 (PeakFileOptions.h/.cpp, bind_kernel.cpp). #9903 changed them and reverted the change on its branch, so its net diff into develop doesn't touch them. Not listing them is correct.
The #10847 example holds for a window that starts on the merge day: the old command lists 0 matches, the new one 1. In the real weekly window, the old command did list SysInfo.cpp, but only because #10815 also touched it. So the agent would have tied the file to #10815 alone.
Description figure: between 2026-08-11 and 2026-11-09 I count 65 merge commits among 646 first-parent commits on develop (926 commits in total), not 31 of 321. Your figure may come from a shallow clone or a different window. The conclusion is the same, but you may want to update the number.
Verdict:
High priority: none.
Medium priority: one. PRs merged by rebase or by a direct push still can't be tied to a PR number. This PR didn't cause it, but the new text lists two subject forms as if that covered every case.
Checked and fine: the file list and the PR list now walk the same first-parent history, and for a squash merge the output is unchanged.
Medium priority
1. PRs merged by rebase or a direct push have neither subject form
Where:.github/workflows/changelog-sync.md:64.
Why: in the same 90 days, 36 first-parent commits on develop carry neither (#N) nor Merge pull request #N. They come from 5 PRs that landed by rebase or a direct push:
#9800 "Vcpkg Windows and macOS Integration" (19 commits)
The new file list does include their files, because they are first-parent commits. The PR list doesn't give the agent a number for them. #9800 and #9769 are exactly the packaging and installer changes that the next sentence asks the agent to read.
Mitigation: tell the agent how to find the PR for such a commit. The agent's default GitHub toolset includes pull request search, and GitHub search accepts a commit SHA. I tested it on one commit from each of the 5 PRs. It found the right PR each time. For 3 of them it also returned #10447, whose branch carried old develop history, so the text should say to take the PR merged in the window:
-Then list the merged pull requests of the same period (`git log --since="8 days ago" --first-parent --oneline`; a squash merge ends with `(#<number>)`, a merge commit reads `Merge pull request #<number>`) and read the description of each one that touched those files.+Then list the merged pull requests of the same period (`git log --since="8 days ago" --first-parent --oneline`; a squash merge ends with `(#<number>)`, a merge commit reads `Merge pull request #<number>`). A commit with neither form came from a rebase merge or a direct push: search pull requests for its SHA (`repo:OpenMS/OpenMS is:pr is:merged <sha>`) and take the one merged in this period. Read the description of each pull request that touched those files.
Tests
None apply: the PR changes only the agent's prompt text. You checked the #10847 example locally, and the replay above confirms the change on 13 weeks of real history.
Measurements
The replay above serves as the measurement on real data. The new file discovery finds more of the changes that matter (54 files in 13 weeks) and loses none.
timosachsenberg
changed the title
[DOC] changelog-sync: also see PRs merged with a merge commit
[DOC] changelog-sync: also see PRs merged with a merge commit or by rebase
Nov 9, 2026
The initial review's medium finding is fixed in e87b0f0, with the suggested text. A commit that has neither subject form came from a rebase merge or a direct push, and the agent now searches pull requests for its SHA and takes the one merged in the window. I confirmed the counts on the full history from 2026-08-11 to 2026-11-09: 646 first-parent commits, of which 65 are merges and 36 have neither form. The description now uses these figures; my earlier 31 of 321 came from a shallow clone.
The reason will be displayed to describe this comment to others. Learn more.
Additional comments: 1
.github/workflows/changelog-sync.md: 1
59-59: Minor · Functional Correctness · Quick win
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Include installer templates in discovery.
PR #9769 changed only cmake/Windows/NSIS.template.in. The filter excludes that file, and the packaging exceptions on Line 64 do not include it. The new SHA lookup can identify the PR, but the agent still has no instruction to review it. Include installer templates in discovery or in the packaging exceptions. (github.com)
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: a24fa4d9-0fc2-4ff2-9e34-b9a204b3a3e7
Commits
Reviewing files that changed from the base of the PR and between c8e3ce7 and e87b0f0.
Files selected for processing: 1
.github/workflows/changelog-sync.md
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.
On CodeRabbit's additional comment, "Minor", that installer templates such as cmake/Windows/NSIS.template.in (#9769) are left out: the point is fair. The file filter keeps .cmake files but not the .in templates, and the packaging list doesn't name cmake/ either. I'm leaving it as it is for now, because it is marked minor and not verified, and this PR is about the history walk. If this PR gets another code push, cmake/ packaging templates go into the packaging list with it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The changelog-sync agent finds recent changes with
git log --since="8 days ago" --name-only. That command lists no files for a merge commit, and it drops branch commits older than the 8-day window. So the agent misses the changes of a PR that was merged with a merge commit: that is 65 of the 646 first-parent commits ondevelopbetween 2026-08-11 and 2026-11-09. Another 36 commits in that period come from rebase merges or direct pushes (e.g. #9800, #9769). They carry no PR number, so the agent cannot tell which PR they belong to.Example: #10847 was merged on 2026-11-07 from a branch commit dated 2026-10-15. For a window starting on the merge day, the old command does not list its
src/openms/source/SYSTEM/SysInfo.cpp, whilegit log --first-parent --diff-merges=first-parent --name-onlydoes. A replay of 13 weekly windows (2026-08-17 to 2026-11-09, in the review) found 54 more files with the new command and none lost that the PRs' net diffs touch.Changes in
.github/workflows/changelog-sync.md:--first-parent --diff-merges=first-parent, which lists what each commit ondevelopbrought in.--first-parentand names both subject forms:(#N)for a squash merge,Merge pull request #Nfor a merge commit.repo:OpenMS/OpenMS is:pr is:merged <sha>) and takes the PR merged in the window.The workflow checks out the full history (
fetch-depth: 0), so the flags work there. Only the prompt body changed: the frontmatter and its hash are unchanged, and the lock file imports the body at runtime, so no recompile is needed.This was deferred from the review of #10838. The workflow itself is still disabled.
Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01HJitekJKm6HFXbNXbrdeof
Summary by CodeRabbit