[Bug] diff_url & patch_url not accesible via token on private repos #5168

Closed
opened 2025-11-02 06:16:42 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @6543 on GitHub (Apr 1, 2020).

diff_url & patch_url do not respect token Header

but they are exposed via api. example: https://try.gitea.io/api/v1/repos/abcKing/s/pulls/2

Originally created by @6543 on GitHub (Apr 1, 2020). diff_url & patch_url do not respect token Header but they are exposed via api. example: https://try.gitea.io/api/v1/repos/abcKing/s/pulls/2
GiteaMirror added the type/bugmodifies/api labels 2025-11-02 06:16:42 -06:00
Author
Owner

@6543 commented on GitHub (Apr 1, 2020):

same problem with https://gitea.com/test-organisation/TestRepo/commit/c6d7b3932327408cc495077d94ca0a0c918f6eff.(patch|diff)

@6543 commented on GitHub (Apr 1, 2020): same problem with `https://gitea.com/test-organisation/TestRepo/commit/c6d7b3932327408cc495077d94ca0a0c918f6eff.(patch|diff)`
Author
Owner

@stale[bot] commented on GitHub (Jun 1, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Jun 1, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@6543 commented on GitHub (Jun 1, 2020):

still here

@6543 commented on GitHub (Jun 1, 2020): still here
Author
Owner

@zeripath commented on GitHub (Jun 3, 2020):

These urls are suburls of the HTMLUrl for the pull request - the simplest solution is just to provide API based endpoints which is what I've done.

@zeripath commented on GitHub (Jun 3, 2020): These urls are suburls of the HTMLUrl for the pull request - the simplest solution is just to provide API based endpoints which is what I've done.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5168