Skip to content

feat(metadata): add label backend and make project backend optional#7

Merged
heoh merged 7 commits intomainfrom
gh-6
Feb 25, 2026
Merged

feat(metadata): add label backend and make project backend optional#7
heoh merged 7 commits intomainfrom
gh-6

Conversation

@heoh
Copy link
Owner

@heoh heoh commented Feb 25, 2026

Summary

Closes #6

This PR adds a new label metadata backend and makes project backend optional.
Default behavior is now label, so the action can work with GITHUB_TOKEN in most setups.

What changed

  • Added LabelMetadataStore (src/github/label-metadata-store.ts)
  • Added backend switch in inputs:
    • metadata-backend (label | project, default: label)
    • label-prefix (default: vc:)
    • label-default-color (default: b0b0b0)
    • project-tags-field-name (renamed from tags-field-name)
  • Updated runtime wiring in src/handlers/shared.ts to select label/project store
  • Updated input parsing/validation in src/context.ts
  • Updated action.yml and README.md for new defaults and setup flow
  • Updated build artifact (dist/index.js)

Compatibility notes

  • Default backend changed to label
  • If you want the old behavior, set metadata-backend: project
  • For project backend, provide project-number (and usually PAT with repo, project)

@heoh heoh added the enhancement New feature or request label Feb 25, 2026
@heoh heoh merged commit c94507a into main Feb 25, 2026
1 check passed
@heoh heoh deleted the gh-6 branch February 25, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Decision] Replace Project v2 backend with a Labels-only metadata backend

1 participant