Allow URLs to be updated via the API #9582

Open
opened 2025-11-02 08:43:41 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @g-a-c on GitHub (Sep 16, 2022).

Feature Description

Currently, if you want to/need to rotate a GitHub Personal Access Token, the PATCH /repos/{owner}/{repo} API endpoint does not allow the clone_url or original_url fields to be modified so it is impossible to update the PAT used for a GitHub mirror as this is stored in the URL (https://user:ghp_token@github.com/owner/repo)

Screenshots

No response

Originally created by @g-a-c on GitHub (Sep 16, 2022). ### Feature Description Currently, if you want to/need to rotate a GitHub Personal Access Token, the [`PATCH /repos/{owner}/{repo}`](https://try.gitea.io/api/swagger#/repository/repoEdit) API endpoint does not allow the `clone_url` or `original_url` fields to be modified so it is impossible to update the PAT used for a GitHub mirror as this is stored in the URL (`https://user:ghp_token@github.com/owner/repo`) ### Screenshots _No response_
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 08:43:41 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9582