Skip to content

Add auto-add-repo workflow to process repo request issues #9

@jonathanpopham

Description

@jonathanpopham

Context

Issue #4 is a repo request for narsil-mcp that has been sitting unprocessed. We need a workflow that automatically handles [Repo Request] issues - validates the repo, forks it into the org, sets up arch-docs, and adds it to repos.yaml.

Requirements

Create .github/workflows/auto-add-repo.yml that triggers on issues opened/edited when the title matches [Repo Request].

Steps the workflow should perform:

  1. Parse the issue - extract the GitHub repo URL or owner/repo from the issue body
  2. Validate the repo: must be public, not archived, not empty, not already in org or repos.yaml
  3. Fork into the org with gh repo fork
  4. Set up arch-docs workflow on the fork (use supermodeltools/arch-docs action)
  5. Add to repos.yaml in the Community category with upstream, description, and language pill
  6. Comment on the issue with success/failure status
  7. Close the issue on success

Error handling:

  • Repo not found or private: comment with error, label invalid
  • Already in org: comment noting it exists, close issue
  • Fork fails: comment with error details

Concurrency

Use concurrency group add-repo with cancel-in-progress: false (same as sync-repos).

Secrets

Needs BOT_TOKEN (same as issue 8) for forking and pushing.

Reference

A previous version existed in commit fa6acbf. Check with git show to find the original implementation.

Acceptance criteria

  • Opening an issue titled [Repo Request] some-repo triggers the workflow
  • Valid repos get forked, arch-docs installed, added to repos.yaml
  • Issue gets a status comment and is closed on success
  • Invalid requests get helpful error messages
  • Issue 4 (narsil-mcp) can be processed by this workflow

@claude

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions