repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

ignore release changelog commits in changelog generation

05a60aaa61627996dbb47fe7658651cf2b0a17aa

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (1)

pi/scripts/extensions.py

Modified
269 269 cmd.append(f"{since}..HEAD")
270 270 cmd.extend(["--", str(ext.relative_to(ROOT))])
271 271 proc = subprocess.run(cmd, cwd=ROOT, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True)
272 - return [line.strip() for line in proc.stdout.splitlines() if line.strip()]
272 + ignored_subjects = ("update extension release changelogs",)
273 + lines = [line.strip() for line in proc.stdout.splitlines() if line.strip()]
274 + return [line for line in lines if not any(line.endswith(subject) for subject in ignored_subjects)]
275 277 def latest_release_tag(pkg_name: str, latest: str | None) -> str | None: