[Bug] [API] Get PullRequest no SHA of HEAD #5932

Closed
opened 2025-11-02 06:40:39 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @6543 on GitHub (Sep 2, 2020).

gitea: v1.12.3

if pull is from an fork and merged/closed and branch deleted:

api responce has no SHA

ToDo: need to check if there are more edgecases who cause the same

Originally created by @6543 on GitHub (Sep 2, 2020). gitea: v1.12.3 if pull is from an fork and merged/closed and branch deleted: api responce has no SHA ToDo: need to check if there are more edgecases who cause the same
GiteaMirror added the pr/breakingissue/confirmedtype/bugmodifies/api labels 2025-11-02 06:40:39 -06:00
Author
Owner

@6543 commented on GitHub (Sep 2, 2020):

sidenode: this bug caused #12657 to create pulls who only show 500 page <- so the localgiteauploader should have some savety check ...
workaround is to query the commit by ref and use that sha

@6543 commented on GitHub (Sep 2, 2020): sidenode: this bug caused #12657 to create pulls who only show 500 page <- so the localgiteauploader should have some savety check ... workaround is to query the commit by ref and use that sha
Author
Owner

@stale[bot] commented on GitHub (Nov 2, 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 (Nov 2, 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 (Mar 7, 2021):

for those looking for a workaround code: https://gitea.com/gitea/tea/pulls/340 or #14922

@6543 commented on GitHub (Mar 7, 2021): for those looking for a workaround code: https://gitea.com/gitea/tea/pulls/340 or #14922
Author
Owner

@6543 commented on GitHub (Mar 8, 2021):

pull -> #14931

@6543 commented on GitHub (Mar 8, 2021): pull -> #14931
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5932