kitsuyui/gh-counter
Count configurable code markers, comment pull requests, and publish badges
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token used for PR comments and branch publishing | yes | — |
| config-path | Path to the gh-counter YAML or JSON config file | no | .github/gh-counter.yml |
| default-branch | Override the repository default branch | no | — |
| publish-branch | Override the publish branch configured in the file | no | — |
| comment-key | Override the HTML marker key used for idempotent PR comments | no | — |
| output-dir | Directory used to write generated summary JSON and badges | no | .gh-counter |
Outputs
| name | description |
|---|---|
| summary-path | Path to the generated summary JSON file |
| summary-json | The generated summary JSON |
| violation-count | Number of counters with failing conditions in the current event scope (PRs only evaluate relevant counters) |
| has-violations | Whether any counter violated a failing condition in the current event scope (PRs only evaluate relevant counters) |
| publish-branch | The publish branch used for generated assets |