Skip to content

Add automated submission review, email approvals, and English README - #41

Merged
maoawa merged 8 commits into
mainfrom
feat/automated-submission-review
Sep 23, 2026
Merged

maoawa merged 8 commits into
mainfrom
feat/automated-submission-review

Conversation

@maoawa

@maoawa maoawa commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

This adds format validation and a maintained bot comment for domain-submission PRs. Passing submissions are emailed with the applicant, description, discussion, domain, DNS records, and contact details. Private, expiring links open a small dark no-JavaScript page where a maintainer can approve and merge the checked revision or decline with a polite English/Chinese message containing the selected preset reason and any additional note as written.

The service uses Cloudflare Workers, D1, and native email to a verified destination. An organization-owned GitHub App provides repository-scoped installation tokens. The privileged workflow executes trusted base code only; the Worker independently validates changes and uses conditional D1 writes to prevent repeated decisions. GET requests never mutate GitHub. Failed or stale checks block merging, and ambiguous email/decision failures require manual recovery.

English README and Chinese/English contribution instructions are included. Ordinary GitHub commit messages are accepted; applicants do not need a special commit convention. Links and configuration target moepage/subdomain after the repository transfer.

Validation: 11 Node tests and 23 Workers-runtime tests pass; the Worker dry-run build passes. All 29 existing records were read successfully through the real GitHub batched API. The deployed Worker authenticated with the installed App and rejected this draft maintenance PR as expected. Cloudflare accepted a separate synthetic demo email, and both demo forms responded successfully. No applicant PR was modified during testing. Apple Watch inbox/form confirmation is pending.

Deployment: the production Worker is configured at https://moe-page.marsinside.com on the Free plan, with D1 and Actions secrets/URL configured. The review workflow activates once this PR is merged.

Human decisions credit @maoawa in bilingual review messages. Squash merges add maoawa using a GitHub no-reply co-author trailer while preserving the submitted commit authors and existing co-author trailers. The installed App is now named moepage-review; its bot remains the API actor. The automated format comment names maoawa as the review contact without implying a human has approved it. The maintainer successfully tested the demo form on Apple Watch.

@maoawa
maoawa marked this pull request as ready for review September 23, 2026 19:34
@maoawa
maoawa merged commit 86f4599 into main Sep 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant