Skip to content

Commit d58e2eb

Browse files
Only list new files in changelog tool
This updates the changelog automation tool to only check newly-added files in the diff for changelog entries. This prevents false-positives when changelog entries are removed from `next-release`
1 parent 8718412 commit d58e2eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.changes/smithy_changelog/amend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _get_new_changes(repository_dir: Path, base: str | None) -> dict[Path, Chang
142142
with chdir(repository_dir):
143143
print(f"Running a diff against base branch: {base}")
144144
result = subprocess.run(
145-
f"git diff origin/{base} --name-only",
145+
f"git diff origin/{base} --name-only --diff-filter=A",
146146
check=True,
147147
shell=True,
148148
capture_output=True,

0 commit comments

Comments
 (0)