Skip to content

chore(ci): remove PR Title Check and validate-commit subject-only mode - #447

Merged
c-vigo merged 3 commits into
release/0.3.1from
chore/444-remove-pr-title-check-ci
Mar 26, 2026
Merged

c-vigo merged 3 commits into
release/0.3.1from
chore/444-remove-pr-title-check-ci

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

Description

Removes the PR Title Check GitHub Actions workflow that produced false positives (e.g. on release PRs) and drops the --subject-only mode from validate-commit-msg, which existed only for that CI path. Full commit messages remain validated by pre-commit and validate-commit-msg as before.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes 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 — ### Removed under ## [0.3.1] - TBD documents the workflow removal and --subject-only removal.
  • packages/vig-utils/src/vig_utils/validate_commit_msg.py — remove subject_only parameter and --subject-only CLI flag.
  • packages/vig-utils/tests/test_validate_commit_msg.py — remove TestSubjectOnly and related coverage; rename chore minimal test for clarity.
  • packages/vig-utils/tests/test_gh_issues.py — dedup CI test uses generic check name instead of Validate PR Title.
  • packages/vig-utils/README.md — drop --subject-only from command reference.

Changelog Entry

Target section is ## [0.3.1] - TBD (release branch; not ## Unreleased).

### Removed

- **PR Title Check GitHub Actions workflow** ([#444](https://github.com/vig-os/devcontainer/issues/444))
  - Remove `.github/workflows/pr-title-check.yml`; commit message rules remain enforced via local hooks and `validate-commit-msg`
  - Remove `--subject-only` from `validate-commit-msg` (it existed only for PR title CI)

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

Ran targeted pytest (not full just test):

  • uv run pytest packages/vig-utils/tests/test_validate_commit_msg.py — 110 passed
  • uv run pytest packages/vig-utils/tests/test_gh_issues.py — 70 passed

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

  • Changelog updates are under ## [0.3.1] - TBD → ### Removed, not ## Unreleased, per release-branch rules.
  • packages/vig-utils/README.md updated for the CLI; no docs/templates/ change.
  • After merge, remove Validate PR Title from required status checks in branch protection if it is still listed (repo settings).

Refs: #444

@c-vigo c-vigo self-assigned this Mar 25, 2026
@c-vigo
c-vigo requested a review from Copilot March 25, 2026 19:25

Copilot AI left a comment

Copy link
Copy Markdown

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 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-only support from packages/vig-utils commit-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() uses content.rstrip().splitlines(), which strips trailing blank lines. In practice, messages like chore: ...\n\n become a single line and are accepted via the len(lines) < 2 path, 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.

@c-vigo
c-vigo merged commit 281456a into release/0.3.1 Mar 26, 2026
11 checks passed
@c-vigo
c-vigo deleted the chore/444-remove-pr-title-check-ci branch March 26, 2026 07:31
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.

2 participants