5 Commits
Author SHA1 Message Date
Lucas a47d6cf9b7 Merge pull request #15 from LuqP2/feat/registry-metrics-snapshot
chore(ci): daily Registry metrics snapshot
2026-08-08 20:26:48 -03:00
Lucas d8ea6ec9f1 fix(ci): detect initial metrics snapshot 2026-08-08 20:22:32 -03:00
LuqP2andClaude Sonnet 5 e9d210ee45 chore(ci): harden Registry publish workflow permissions + compatibility audit
Publish workflow (.github/workflows/publish.yml) already existed and was
already push-to-main-only / workflow_dispatch with no pull_request_target.
Hardened further:

- permissions: issues: write -> contents: read (the action never uses
  GITHUB_TOKEN at all; checkout only needs read access, nothing else)
- drop the unused 'master' branch trigger (repo only has main)
- add a concurrency group so overlapping publish runs can't race
- document, inline, why pull_request_target must never be added here and
  how the REGISTRY_ACCESS_TOKEN secret is handled (never echoed/logged,
  passed only as the action's declared input)

Also adds docs/registry-compatibility-audit.md: a code-only audit (no
README, no template comments) answering the four compatibility questions
for pyproject.toml (min Python version, OS support, GPU/CUDA usage, ComfyUI
min-version API), each with file:line evidence, plus a proposed
pyproject.toml block for manual review. pyproject.toml itself is NOT
touched by this PR.

No secret is configured or requested by this change, and nothing is
published. Node runtime behavior is unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-07 20:39:25 -03:00
LuqP2andClaude Sonnet 5 3ce2582e3e chore(ci): add daily Registry metrics snapshot workflow
Adds a workflow_dispatch + daily-cron GitHub Action that GETs
https://api.comfy.org/nodes/imagemetahub-comfyui-save and appends an
append-only JSONL record (timestamp, downloads, github_stars, rating,
search_ranking, latest_version, status, plus delta vs the previous
record) to metrics/registry-history.jsonl, then commits it back.

- No external service, no secret, no paid dependency (stdlib urllib + git).
- permissions: contents: write only.
- Bot commit message includes [skip ci] so it cannot trigger other
  push-triggered workflows (e.g. the registry publish workflow already
  scoped to pyproject.toml changes only).
- Does not touch node runtime behavior.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-07 20:37:13 -03:00
async () = process.env.GIT_USERNAME || (await ghUser()).email && (await ghUser()).name || DIE("Missing env.GIT_USERNAME") bf2cbcfab2 chore(publish): Add Github Action for Publishing to Comfy Registry 2025-12-27 23:18:27 +00:00