Skip to content

Bump copyright year on check_changelog_entries.py - #10

Merged
dwoz merged 1 commit into
mainfrom
fix-release-precommit
Nov 21, 2026
Merged

dwoz merged 1 commit into
mainfrom
fix-release-precommit

Conversation

@dwoz

@dwoz dwoz commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Summary

The release-dispatch pre-commit run invokes --all-files instead of the PR-changed-files subset, so it picks up .pre-commit-hooks/check_changelog_entries.py which still carried a # Copyright 2024 header. The copyright hook wants to bump it to 2024-2026, so pre-commit fails on every release dispatch until the file is updated.

This is the fix for the kind=release run that just failed: https://github.com/saltstack/ppbt/actions/runs/44877521198

Test plan

  • copyright_headers.py run locally against the file is now idempotent.
  • Re-dispatch release.yml with kind=release once this merges; the first-upload trusted-publisher flow should then create the two new PyPI projects.

Release-dispatch pre-commit runs `--all-files` instead of just the
PR delta, and tripped on this file which still carried a 2024 header.
The copyright hook now bumps its first match to 2024-2026 so the
non-PR invocation passes.
@dwoz
dwoz merged commit ec2136c into main Nov 21, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant