Skip to content

Script: convert an add-winner issue into YAML #7

Description

@notsointresting

Right now a maintainer reads an add-winner issue and hand-writes the YAML. That is the main bottleneck on data throughput.

Wanted: scripts/issue-to-yaml.ts that takes an issue number, reads the parsed issue-form fields via the GitHub API, and writes hackathon/project/entry YAML using the same helpers as scripts/add-winner.ts.

Requirements

  • Never overwrite an existing file (mirror the behaviour in add-winner.ts)
  • Reuse an existing hackathon/project when the slug matches
  • Warn on unknown category/technology slugs instead of inventing them
  • Leave verification.status for a human to confirm — the script must not self-certify a source

A follow-up could run it from a workflow on a maintainer command, but the script alone is the useful half.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions