Skip to content

ci: reject project version bump if not from release branch#390

Merged
cusma merged 1 commit intomainfrom
ci/protect-version-bump
Feb 17, 2026
Merged

ci: reject project version bump if not from release branch#390
cusma merged 1 commit intomainfrom
ci/protect-version-bump

Conversation

@cusma
Copy link
Collaborator

@cusma cusma commented Feb 17, 2026

This PR addresses #384

@cusma cusma requested a review from Copilot February 17, 2026 09:55
@cusma cusma self-assigned this Feb 17, 2026
@cusma cusma added the ci-cd label Feb 17, 2026
@cusma cusma linked an issue Feb 17, 2026 that may be closed by this pull request
@cusma cusma requested review from bwmx, kylebeee and tasosbit February 17, 2026 09:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements CI validation to prevent version bumps in pyproject.toml from any branch except release, addressing issue #384. The implementation adds a new check-version job that runs on pull requests targeting main and validates that the version field has not been modified unless the PR originates from the release branch.

Changes:

  • Added check-version job to validate version changes are only from release branch
  • Made precheck job depend on check-version to enforce validation before other checks
  • Used git diff to detect version field changes in pyproject.toml

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cusma cusma merged commit 88e545d into main Feb 17, 2026
14 checks passed
@cusma cusma deleted the ci/protect-version-bump branch February 17, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: reject direct change on version on main

2 participants

Comments