Skip to content

GitHub Action: expand CI drift-gate example with failure semantics and badges #152

Closed

Description

@vibgrate-team

Context

examples/github-actions exists, but teams evaluating Vibgrate in CI need clearer failure semantics (when the job should fail vs warn), recommended pins, and how to surface DriftScore in README badges.

What to do

  1. Extend examples/github-actions README (or sibling doc) with:
    • recommended workflow snippet
    • exit/fail behaviour for gate modes
    • how to publish/consume a DriftScore badge if supported
  2. Keep the example credential-free and deterministic where assertions exist.

Acceptance

  • Example README alone is enough to add a basic gate to a toy repo
  • Failure vs warn behaviour is explicit
  • Links back to product docs where appropriate

Mentoring notes

Prefer documentation + example YAML over large Action refactors unless a clear bug blocks the example.

Activity

  1. added
    documentation
    enhancement
    help wanted
    and removed
    help wanted
    on Sep 16, 2026
  2. vibgrate-team commented on Oct 3, 2026

    @vibgrate-team
    ContributorAuthor

    Spec notes for implementers

    Gap. examples/github-actions/ has YAML (driftscore-ci.yml, *-sarif.yml) but no README. Gate semantics already live in docs/ci/github-actions.md and code: scan.ts --fail-on / --drift-budget / --drift-worsening; config path in src/reporting/drift-budget-gate.ts (mode: warn → exit 0 + warn lines; mode: enforce / blocking → exit 2). CLI --drift-budget / --drift-worsening override config.

    Add examples/github-actions/README.md (credential-free):

    1. Failure vs warn — table: --fail-on error|warn (findings), --drift-budget N (score >, exit 2), --drift-worsening (needs --baseline), config driftBudget.mode: warn|enforce.
    2. Recommended pins — pin @vibgrate/cli / Action to a release tag or digest; note npx @vibgrate/cli@… drift.
    3. Badge notes — DriftScore badge only if product supports it; otherwise document “upload JSON artifact + link dashboard” and point to https://vibgrate.com/driftscore — do not invent a badge URL.
    4. Link back to docs/ci/github-actions.md.

    Toy-repo copy-paste from README alone should work. Prefer docs + example YAML over Action refactors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions