Skip to content

trustpub: Prefill repo owner and name for crates with GitHub repo URLs #11497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jul 2, 2025

When the user visits the form to create a new Trusted Publishing configuration, we look at the repository field of the crate, and if it is a GitHub URL (e.g. https://github.com/rust-lang/crates.io) we extract the repository owner and name from the URL and prefill the input fields accordingly. This should make the configuration creation a slightly more enjoyable experience.

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-frontend 🐹 labels Jul 2, 2025
@Turbo87 Turbo87 force-pushed the trustpub-autofill branch from c68d5e0 to b784e85 Compare July 2, 2025 11:31
When the user visits the form to create a new Trusted Publishing configuration, we look at the `repository` field of the crate, and if it is a GitHub URL (e.g. https://github.com/rust-lang/crates.io) we extract the repository owner and name from the URL and prefill the input fields accordingly. This should make the configuration creation a slightly more enjoyable experience.
@Turbo87 Turbo87 force-pushed the trustpub-autofill branch from b784e85 to e393b99 Compare July 2, 2025 11:37
@Turbo87 Turbo87 merged commit 4bb9eda into rust-lang:main Jul 2, 2025
11 checks passed
@Turbo87 Turbo87 deleted the trustpub-autofill branch July 2, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend 🐹 C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant