Skip to content

Add automatic version bumping for sphinx_airflow_theme#1464

Merged
potiuk merged 2 commits intomainfrom
auto-theme-version-bump
Mar 16, 2026
Merged

Add automatic version bumping for sphinx_airflow_theme#1464
potiuk merged 2 commits intomainfrom
auto-theme-version-bump

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Mar 16, 2026

Summary

  • Add a pre-commit hook (check_and_bump_version.sh) that detects changes to sphinx_airflow_theme files and automatically bumps the patch version
  • Update CI workflow to skip theme build, upload, demo, and PyPI publish steps when the theme version hasn't changed
  • Bump theme version from 0.3.1 to 0.3.2

Test plan

  • Verify pre-commit hook runs and passes when no theme files change
  • Verify pre-commit hook bumps version when theme files are modified
  • Verify CI skips theme steps when version is unchanged
  • Verify CI builds and uploads theme when version changes

🤖 Generated with Claude Code

Add a pre-commit hook that detects changes to theme files and
automatically bumps the patch version. The CI workflow is updated
to skip theme build/upload/publish when the version is unchanged,
avoiding unnecessary work on non-theme commits.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@potiuk
Copy link
Member Author

potiuk commented Mar 16, 2026

Actually let me rewrite the bump script in Python

Replace the bash script with a Python script using PEP 723 inline
script metadata and uv run shebang. Prek handles this natively with
language: script.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@potiuk potiuk merged commit 65b06b0 into main Mar 16, 2026
1 check 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.

3 participants