{"id":51475260,"url":"https://github.com/devswha/patina-action","last_synced_at":"2026-07-06T20:03:17.226Z","repository":{"id":359061480,"uuid":"1244343503","full_name":"devswha/patina-action","owner":"devswha","description":"GitHub Action for Patina prose hotspot scoring","archived":false,"fork":false,"pushed_at":"2026-05-20T07:18:30.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-20T11:06:16.278Z","etag":null,"topics":["ai-humanizer","github-action","markdown","prose","writing"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devswha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-20T07:17:20.000Z","updated_at":"2026-05-20T07:18:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/devswha/patina-action","commit_stats":null,"previous_names":["devswha/patina-action"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/devswha/patina-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devswha%2Fpatina-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devswha%2Fpatina-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devswha%2Fpatina-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devswha%2Fpatina-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devswha","download_url":"https://codeload.github.com/devswha/patina-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devswha%2Fpatina-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35204421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-humanizer","github-action","markdown","prose","writing"],"created_at":"2026-07-06T20:03:16.105Z","updated_at":"2026-07-06T20:03:17.133Z","avatar_url":"https://github.com/devswha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# patina-action\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/patina-logo.svg\" alt=\"patina — Strip the AI packaging. Keep the meaning.\" width=\"420\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cb\u003eScore AI-sounding prose in your pull requests, before it ships.\u003c/b\u003e\u003c/p\u003e\n\nThis Action scores the Markdown a PR changes, posts the result as one sticky comment, and can fail the check when a file crosses your threshold.\n\nThe number is Patina's deterministic prose hotspot score — the share of paragraphs flagged as editing hotspots. It runs offline: no model call, no API key. Korean, English, Chinese, and Japanese.\n\n## Quick start\n\n```yaml\nname: Patina prose score\n\non:\n  pull_request:\n    paths:\n      - '**/*.md'\n      - '**/*.mdx'\n\npermissions:\n  contents: read\n  pull-requests: read\n  issues: write\n\njobs:\n  patina:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v6\n      - uses: devswha/patina-action@v1\n        with:\n          score-threshold: 30\n          comment: true\n          # Optional: publish patina-badge.json for a Shields.io README badge.\n          # Requires permissions.contents: write.\n          # badge-branch: patina-badge\n```\n\n## What you get\n\nA sticky PR comment with a per-file table — paragraphs, hot paragraphs, and score — plus a job summary. When `score-threshold` is set, the check fails if any file goes over it. Leave it unset to keep the report advisory.\n\n## Inputs\n\n| Input | Default | Meaning |\n|---|---:|---|\n| `github-token` | `${{ github.token }}` | Token for change detection and comments. |\n| `files` | changed PR Markdown | Optional newline/comma/JSON file list. Overrides paths-filter. |\n| `lang` | `auto` | `auto`, `ko`, `en`, `zh`, or `ja`. |\n| `score-threshold` | unset | If set, fail when any file score is above this percentage. |\n| `report-threshold` | `30` | Advisory report gate when `score-threshold` is unset. |\n| `max-files` | `50` | Maximum Markdown files to score. |\n| `comment` | `true` | Create or update a sticky PR comment. |\n| `badge-branch` | unset | Optional branch where `patina-badge.json` is published for Shields.io endpoint badges. |\n| `patina-package` | `patina-cli@latest` | npm package spec used by `npx`. |\n| `patina-bin` | unset | Local `patina-score` executable for tests / self-hosted runners. |\n\n## Outputs\n\n| Output | Meaning |\n|---|---|\n| `file-count` | Number of Markdown files scored. |\n| `failed-count` | Number of files above the active threshold. |\n| `max-score` | Highest file score percentage. |\n| `badge-json` | One-line Shields.io endpoint JSON derived from `max-score`. |\n| `threshold-failed` | `true` when `score-threshold` was set and exceeded. |\n| `comment-body-path` | Path to the generated Markdown comment body. |\n\n## README badge\n\nSet `badge-branch` to publish `patina-badge.json`, then point Shields.io at the raw JSON file:\n\n```md\n[![patina](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/\u003cowner\u003e/\u003crepo\u003e/patina-badge/patina-badge.json)](https://github.com/devswha/patina)\n```\n\nPublishing requires `contents: write` permission in the calling workflow. The badge JSON is generated from the same deterministic max score used by the PR comment and contains no per-visitor tracking.\n\n## How it works\n\nIt finds changed Markdown with `dorny/paths-filter`, scores each file by running `patina-score` from `npx -p patina-cli@latest`, and upserts the sticky comment with `peter-evans/create-or-update-comment`. The score itself is deterministic and local — no model, no key.\n\n## Forks\n\nOn public repos, GitHub limits `GITHUB_TOKEN` permissions for `pull_request` runs triggered from forks. If comments are blocked, the score still shows in the job summary; for inline comments on fork PRs, use a locked-down `pull_request_target` workflow.\n\n## License\n\nMIT. Part of [patina](https://github.com/devswha/patina).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevswha%2Fpatina-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevswha%2Fpatina-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevswha%2Fpatina-action/lists"}