Skip to content

Commit 9580a3d

Browse files
committed
chore: remove --first-parent flag globally in release note generator
Removes the --first-parent restriction from all Git commands in the script: - versions.txt history scanning. - Fallback for initial releases. - Commit extraction for release notes. This allows capturing commits from side branches that were not squashed, while relying on prefix filters to remove noise.
1 parent dffcd62 commit 9580a3d

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

.github/release-note-generation/generate_module_notes.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@ def main():
3838

3939
# 1. Scan backwards through git history of versions.txt
4040
# We use -G to find commits that modified lines matching the module name.
41-
# We use --first-parent to ignore merge noise.
4241
log_cmd = [
4342
"git",
4443
"log",
4544
"--oneline",
46-
"--first-parent",
4745
f"-G^{re.escape(module)}:",
4846
"--",
4947
"versions.txt",
@@ -109,7 +107,6 @@ def main():
109107
"log",
110108
"--reverse",
111109
"--oneline",
112-
"--first-parent",
113110
"--",
114111
directory,
115112
]
@@ -130,13 +127,11 @@ def main():
130127
)
131128

132129
# 2. Generate commit history in that range affecting that directory
133-
# Use --first-parent to ignore merge noise.
134130
# Use format that includes hash, subject, and body
135131
notes_cmd = [
136132
"git",
137133
"log",
138134
"--format=%H %s%n%b%n--END_OF_COMMIT--",
139-
"--first-parent",
140135
f"{prev_commit}..{target_commit}" if prev_commit else target_commit,
141136
"--",
142137
directory,

0 commit comments

Comments
 (0)