Github API - space in version name #10310

Closed
opened 2025-11-02 09:03:51 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @rpajik on GitHub (Feb 21, 2023).

Description

github api get version name with space on the start of string.

curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest | jq .name
" v1.18.4"

I expect, this is wrong.

Gitea Version

1.18.4

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

systemd, but not relevant

Database

None

Originally created by @rpajik on GitHub (Feb 21, 2023). ### Description github api get version name with space on the start of string. curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest | jq .name " v1.18.4" I expect, this is wrong. ### Gitea Version 1.18.4 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? systemd, but not relevant ### Database None
GiteaMirror added the type/bug label 2025-11-02 09:03:51 -06:00
Author
Owner

@wolfogre commented on GitHub (Feb 21, 2023):

Sorry, I believe it was a misoperation and it has been fixed now.

curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest | jq .name
"v1.18.4"
@wolfogre commented on GitHub (Feb 21, 2023): Sorry, I believe it was a misoperation and it has been fixed now. ```text curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest | jq .name "v1.18.4" ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10310