Skip to content

Allow any Git provider for submission#65

Open
jeninh wants to merge 2 commits intomainfrom
allow-any-git-provider
Open

Allow any Git provider for submission#65
jeninh wants to merge 2 commits intomainfrom
allow-any-git-provider

Conversation

@jeninh
Copy link
Copy Markdown
Collaborator

@jeninh jeninh commented Apr 7, 2026

No description provided.

Copy link
Copy Markdown
Collaborator

@thesleepyniko thesleepyniko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates project submission to accept code links from any Git provider by removing GitHub-specific fields and validation.

Changes:

  • Removes githubUsername collection/storage across the submission, API, and reviewer dashboard flows.
  • Relaxes codeUrl validation from “GitHub-only” to any valid http(s) URL.
  • Updates validation tests to reflect the removed githubUsername field.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
resolution-frontend/src/routes/app/reviewer/+page.svelte Removes githubUsername from the reviewer-facing submission type.
resolution-frontend/src/routes/app/pathway/[pathway]/week/[week]/ship/+page.svelte Removes GitHub username input and GitHub-only codeUrl input restrictions.
resolution-frontend/src/routes/api/ships/submit-project/+server.ts Stops writing the “GitHub Username” field into Airtable on submission.
resolution-frontend/src/routes/api/review/submissions/+server.ts Stops fetching/mapping the “GitHub Username” field for reviewers.
resolution-frontend/src/lib/server/validation/schemas.ts Changes codeUrl to accept any safe URL and removes required githubUsername.
resolution-frontend/src/lib/server/validation/schemas.test.ts Updates tests/fixtures to match schema changes (removes githubUsername).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 44 to 46
export const projectSubmissionSchema = z.object({
codeUrl: safeUrl.refine(
(val) => /^https:\/\/github\.com\/.+\/.+/.test(val),
{ message: 'Must be a GitHub link (https://github.com/username/repo)' }
),
codeUrl: safeUrl,
playableUrl: safeUrl,
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The schema change now permits non-GitHub codeUrl values, but the tests still only exercise a GitHub URL in the “valid” fixture. Add a test case that uses a non-GitHub provider URL (e.g., GitLab/Bitbucket or a self-hosted Git service) to prevent regressions back to GitHub-only validation.

Copilot uses AI. Check for mistakes.
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.

3 participants