[PR #4598] [MERGED] Mod registry form: list a project by its repository, no updates through the form #5721

Closed
opened 2026-11-03 05:14:33 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4598
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: registry/form-links


📝 Commits (1)

  • b781de8 Form service: list a project by its repository, take no updates for it

📊 Changes

4 files changed (+250 additions, -14 deletions)

View changed files

📝 crates/horizon-mod-registry/README.md (+11 -7)
📝 crates/horizon-mod-registry/src/github.rs (+20 -0)
📝 crates/horizon-mod-registry/src/lib.rs (+132 -4)
📝 crates/horizon-mod-registry/tests/submit.rs (+87 -3)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Service half of the registry change (format: #4593, launcher: #4589). The submission service (crates/horizon-mod-registry):

  • Listing: POST /api/mods/submit with repo (owner/name) and no file opens a pull request adding an entry that links the repository (checked public through the GitHub API) plus the page. The PR body tells the reviewer this is the only review and whether the repository's owner is the submitter. A file sent beside a repo is refused.
  • Updates: an update (file) for an entry that has a repo is refused with 409 "publish a GitHub release in ". Entries without a repo keep the old file path, owner-update trailer included (needed only for them; documented).
  • README of the service updated.

The website's submit form (private horizon-site) must send repo and no file for a new project: until then the old file path keeps working (backwards compatible).

Tests: cargo test in the crate (new: listing, refusals, update of a repo project), clippy -D warnings, fmt.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4598 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `registry/form-links` --- ### 📝 Commits (1) - [`b781de8`](https://github.com/horizon-rust/horizon/commit/b781de899d1ea72477ca611edb661042c08efc1d) Form service: list a project by its repository, take no updates for it ### 📊 Changes **4 files changed** (+250 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-mod-registry/README.md` (+11 -7) 📝 `crates/horizon-mod-registry/src/github.rs` (+20 -0) 📝 `crates/horizon-mod-registry/src/lib.rs` (+132 -4) 📝 `crates/horizon-mod-registry/tests/submit.rs` (+87 -3) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Service half of the registry change (format: #4593, launcher: #4589). The submission service (`crates/horizon-mod-registry`): - **Listing**: `POST /api/mods/submit` with `repo` (`owner/name`) and **no file** opens a pull request adding an entry that links the repository (checked public through the GitHub API) plus the page. The PR body tells the reviewer this is the only review and whether the repository's owner is the submitter. A file sent beside a `repo` is refused. - **Updates**: an update (file) for an entry that has a `repo` is refused with 409 "publish a GitHub release in <repo>". Entries without a `repo` keep the old file path, owner-update trailer included (needed only for them; documented). - README of the service updated. The website's submit form (private horizon-site) must send `repo` and no file for a new project: until then the old file path keeps working (backwards compatible). Tests: `cargo test` in the crate (new: listing, refusals, update of a repo project), clippy -D warnings, fmt. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:33 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5721
No description provided.