roxblnfk/Vibe Index

Measure the ratio of human-written vs AI-generated code and generate a badge

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
commits-countNumber of recent commits to analyze (default: 250)no250
fetchClone the repository itself instead of relying on a prior actions/checkout step. When true, the action shallow-clones into a temp dir, analyzes it and cleans up. Read-only: update-files/commit are skipped in this mode. Uses the GITHUB_TOKEN env var for private repos.nofalse
repositoryRepository to clone when fetch is true, as "owner/repo" or a full git URL. Defaults to the current repository ($GITHUB_REPOSITORY).no""
refBranch or tag to clone when fetch is true. Defaults to the cloned repo default branch.no""
tokenToken for authenticated clones when fetch is true. Defaults to the GITHUB_TOKEN environment variable. Needed only for private repositories.no""
co-author-multiplierMultiplier for co-authored code (0.0 to 1.0, default: 0.8) — share of an AI co-authored commit credited to AIno0.8
extra-bot-patternsAdditional regular expressions (one per line) matched against commit author and Co-Authored-By identities, merged on top of the built-in bot/AI signatures. Use to detect agents or automation bots specific to your team, e.g. "@mycorp-bot\.com". Leave empty to use the built-in list only.no""
badge-styleShield.io badge style (flat, flat-square, plastic, for-the-badge, social)noflat-square
badge-colorBadge color: "auto" (default) interpolates a color along the green->purple gradient from the score, or pass a fixed hex (without #) / named colornoauto
badge-logoLogo on the badge: the built-in "sparkles" (AI/magic icon, default) or any simple-icons slug (e.g. "github"). Set to an empty string for no logo.nosparkles
badge-linkURL the badge links to. Defaults to the Vibe Index repository so readers can learn what the metric means. Set to an empty string to render the badge without a link.nohttps://github.com/roxblnfk/action-vibe-index
assert-indexOptional range for assertion (e.g., "7.0-10.0" or "5.0-8.0"). Action will fail if index is outside this rangeno""
badge-output-fileFile to write badge URL to (e.g., badge-url.txt)no""
update-filesComma- or newline-separated list of markdown files whose badge to update in place. Set to an empty string to disable.noREADME.md
badge-discoveryHow to locate the badge to update: "auto" (markers, then an existing "![Vibe Index](...)" image), "markers" (only the <!-- vibe-index:start/end --> markers), or "markdown" (only an existing "![Vibe Index](...)" image)noauto
commitCommit the updated files automatically (requires permissions: contents: write). Default false.nofalse
pushPush the auto-commit to the current branch (only used when commit is true). Default false.nofalse
commit-messageCommit message used by the auto-commitnochore: update Vibe Index badge
commit-user-namegit user.name for the auto-commitnogithub-actions[bot]
commit-user-emailgit user.email for the auto-commitno41898282+github-actions[bot]@users.noreply.github.com
include-messageCustom message/label for badge (default: "Vibe Index")noVibe Index
namedescription
vibe-indexCalculated Vibe Index score (0.0-10.0)
human-percentagePercentage of code written by humans
ai-percentagePercentage of code written by AI
human-commits-percentagePercentage of commits from humans
ai-commits-percentagePercentage of commits from AI
badge-urlGenerated badge URL (shields.io)
badge-markdownMarkdown syntax for embedding badge
badge-htmlHTML syntax for embedding badge (img, wrapped in a link when badge-link is set)