Repository navigation
chore(ci): remove PR Title Check and validate-commit subject-only mode - #447
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR removes the PR-title validation workflow (which was producing false positives) and simplifies validate-commit-msg by dropping the now-unneeded --subject-only/subject_only mode, updating tests and docs accordingly.
Changes:
- Deleted
.github/workflows/pr-title-check.yml(PR title CI check removal). - Removed
--subject-onlysupport frompackages/vig-utilscommit-message validator and updated CLI docs. - Updated unit tests and changelogs to reflect the removal and avoid hardcoding the deleted check name.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/pr-title-check.yml |
Removes the PR Title Check workflow that caused false positives. |
packages/vig-utils/src/vig_utils/validate_commit_msg.py |
Drops subject_only parameter/flag and updates validation flow/comments. |
packages/vig-utils/tests/test_validate_commit_msg.py |
Removes subject_only tests and renames/adjusts chore-minimal test. |
packages/vig-utils/tests/test_gh_issues.py |
Updates status check name in test data to avoid referencing removed check. |
packages/vig-utils/README.md |
Removes --subject-only from CLI reference/examples. |
.github/agent-blocklist.toml |
Updates header comment to remove mention of deleted CI workflow. |
assets/workspace/.github/agent-blocklist.toml |
Same header comment update in workspace template copy. |
CHANGELOG.md |
Documents workflow removal and --subject-only removal under ### Removed. |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors changelog entry for the workspace/devcontainer changelog copy. |
Comments suppressed due to low confidence (1)
packages/vig-utils/src/vig_utils/validate_commit_msg.py:210
- The comment says refs-optional types allow “subject + blank line only”, but
validate_commit_message()usescontent.rstrip().splitlines(), which strips trailing blank lines. In practice, messages likechore: ...\n\nbecome a single line and are accepted via thelen(lines) < 2path, effectively allowing true subject-only commits. Please either adjust parsing/validation to actually preserve and enforce the blank separator (if that’s the intent and to match docs/COMMIT_MESSAGE_STANDARD.md’s “blank line required”), or update the comment/behavior to explicitly state that subject-only is allowed for refs-optional types.
# Require at least one blank line between subject and body/Refs
# For types with optional Refs, subject + blank line only is valid
if len(lines) < 2:
if type_part in refs_optional_types:
return True, None
return False, "Missing blank line and 'Refs: <IDs>' after the subject line."
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Removes the PR Title Check GitHub Actions workflow that produced false positives (e.g. on release PRs) and drops the
--subject-onlymode fromvalidate-commit-msg, which existed only for that CI path. Full commit messages remain validated by pre-commit andvalidate-commit-msgas before.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/workflows/pr-title-check.yml— deleted (workflow removed from CI)..github/agent-blocklist.toml,assets/workspace/.github/agent-blocklist.toml— header comment no longer references removed CI.CHANGELOG.md,assets/workspace/.devcontainer/CHANGELOG.md—### Removedunder## [0.3.1] - TBDdocuments the workflow removal and--subject-onlyremoval.packages/vig-utils/src/vig_utils/validate_commit_msg.py— removesubject_onlyparameter and--subject-onlyCLI flag.packages/vig-utils/tests/test_validate_commit_msg.py— removeTestSubjectOnlyand related coverage; rename chore minimal test for clarity.packages/vig-utils/tests/test_gh_issues.py— dedup CI test uses generic check name instead ofValidate PR Title.packages/vig-utils/README.md— drop--subject-onlyfrom command reference.Changelog Entry
Target section is
## [0.3.1] - TBD(release branch; not## Unreleased).Testing
just test)Manual Testing Details
Ran targeted pytest (not full
just test):uv run pytest packages/vig-utils/tests/test_validate_commit_msg.py— 110 passeduv run pytest packages/vig-utils/tests/test_gh_issues.py— 70 passedChecklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
## [0.3.1] - TBD→### Removed, not## Unreleased, per release-branch rules.packages/vig-utils/README.mdupdated for the CLI; nodocs/templates/change.Refs: #444