github-community-projects / private-mirrors

A GitHub App that allows you to contribute upstream using private mirrors of public projects
MIT License
125 stars 13 forks source link

Backend limit on repository name length should be enforced in 'create mirror' / 'edit mirror' dialog #135

Closed ahpook closed 3 months ago

ahpook commented 3 months ago

Describe the bug

The text box to create and edit a private mirror accepts very long names, but somewhere behind the UI there is a limit that causes the creation/update to fail with an unspecific error.

To Reproduce

  1. Click on create mirror
  2. Type a 200+ (? not sure of exact limit ?) repo name
  3. The dialog allows you to submit it but an error banner is presented and the repo is not actually created.

Expected behavior

The textbox should not accept names longer than can be created.

Screenshots

Image

Image

Additional context

No response