API call (commits/{ref}/statuses) dont work #3745

Closed
opened 2025-11-02 05:23:57 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @DjSni on GitHub (Aug 7, 2019).

  • Gitea version (or commit ref): 1.9.0 Stable
  • Git version: 2.17.1
  • Operating system: Ubuntu 18.04.2 LTS (GNU/Linux 4.18.0-21-generic x86_64)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

curl -X GET "https://try.gitea.io/api/v1/repos/gitea/gitea/commits/master/statuses" -H "accept: application/json"

Description

if i make an API call with "/repos/{owner}/{repo}/commits/{ref}/statuses" i get only an empty output back.

Screenshots

Screenshot_107
Screenshot_106
Screenshot_105

Originally created by @DjSni on GitHub (Aug 7, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.9.0 Stable - Git version: 2.17.1 - Operating system: Ubuntu 18.04.2 LTS (GNU/Linux 4.18.0-21-generic x86_64) - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: curl -X GET "https://try.gitea.io/api/v1/repos/gitea/gitea/commits/master/statuses" -H "accept: application/json" ## Description if i make an API call with "/repos/{owner}/{repo}/commits/{ref}/statuses" i get only an empty output back. ## Screenshots ![Screenshot_107](https://user-images.githubusercontent.com/31524614/62629305-311a8800-b92d-11e9-8087-37be18e6a6cc.png) ![Screenshot_106](https://user-images.githubusercontent.com/31524614/62629308-337ce200-b92d-11e9-9027-54acb3115577.png) ![Screenshot_105](https://user-images.githubusercontent.com/31524614/62629317-3546a580-b92d-11e9-89c0-e12f96e19890.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/bug label 2025-11-02 05:23:57 -06:00
Author
Owner

@sapk commented on GitHub (Aug 7, 2019):

status are details attached by CI this is similar to Github API https://developer.github.com/v3/repos/statuses/. In the case of try.gitea.io, there is no CI configurated on this instance so no statuses.

@sapk commented on GitHub (Aug 7, 2019): status are details attached by CI this is similar to Github API https://developer.github.com/v3/repos/statuses/. In the case of try.gitea.io, there is no CI configurated on this instance so no statuses.
Author
Owner

@sapk commented on GitHub (Aug 7, 2019):

After testing on gitea.com
Commit ref seems to work:
376fe18505/statuses
but not branch ref
https://gitea.com/api/v1/repos/gitea/blog/commits/master/statuses

@sapk commented on GitHub (Aug 7, 2019): After testing on gitea.com Commit ref seems to work: https://gitea.com/api/v1/repos/gitea/blog/commits/376fe18505499b3db05c2d9e4913cc141982b793/statuses but not branch ref https://gitea.com/api/v1/repos/gitea/blog/commits/master/statuses
Author
Owner

@sapk commented on GitHub (Aug 7, 2019):

Furthermore the url fields should be "376fe18505" and not "376fe18505"

@sapk commented on GitHub (Aug 7, 2019): Furthermore the url fields should be "https://gitea.com/api/v1/repos/gitea/blog/statuses/376fe18505499b3db05c2d9e4913cc141982b793" and not "https://gitea.com/api/v1/gitea/blog/statuses/376fe18505499b3db05c2d9e4913cc141982b793"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3745