Earn 14 free days when your bug report or suggestion is accepted — how it works

GitHub Action: codeloop-verify@v1

Drop CodeLoop into any GitHub repository and gate every PR with a real confidence score. The action installs the codeloop CLI, runs verify + gate-check, posts a sticky PR comment with the score, and publishes a signed Verified by CodeLoop badge to embed in your README.

Minimal workflow

# .github/workflows/codeloop.yml
name: CodeLoop Verify
on:
  pull_request:
  push:
    branches: [main]

jobs:
  verify:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 22
      - name: Run CodeLoop
        uses: codeloop/codeloop-verify@v1
        with:
          api-key: ${{ secrets.CODELOOP_API_KEY }}
          threshold: "94"

Inputs

InputDefaultDescription
api-keyRequired. CodeLoop API key. Store in repo Secrets as CODELOOP_API_KEY.
threshold94Minimum gate confidence (percentage) required to pass.
platformautoOverride platform detection: web, node, flutter, xcode, android, dotnet.
working-directory.Path to the project root inside the repo.
post-commenttruePost (or update) a sticky PR comment with the gate result.
fail-on-gatetrueFail the workflow if gate confidence is below threshold.
publish-badgetruePublish the gate result to /badge/<repo>.svg for embedding.

Outputs

The action exposes run-id, confidence, pass, and summary so you can chain them into downstream steps (e.g. block deploys when steps.verify.outputs.pass != 'true').

Verified by CodeLoop badge

Once publish-badge has run at least once, embed the badge in your README:

![Verified by CodeLoop](https://api.codeloop.tech/v1/badge/your-org__your-repo.svg)

The badge encodes the latest gate confidence and the run id — clicks link to the run detail page on codeloop.tech/showcase.

Related