[CLOSED] Drone doesn't update build status in gitea


I’m using drone (drone/drone:1.0.0-rc.1-linux-arm) with gitea (gitea/gitea:1.6.1).
When a build is running, status is not updated in gitea.

Gitea receives :
POST /api/v1/repos/foo/test-drone/statuses/753749ba4423ed73f9eca56eeda092e06ac59859 HTTP/1.1" 201 560 "-" "Go-http-client/1.1" [{"created_at":"0001-01-01T00:00:00Z","updated_at":"0001-01-01T00:00:00Z","status":"success","target_url":"https://drone.xxxxx/foo/test-drone/14","description":"Build is passing","context":"continuous-integration/drone/push"}]

I think it should be “state”:“success” instead of “status”:“success”.

Here is gitea api : https://try.gitea.io/api/swagger#/repository/repoCreateStatus
{ "context": "string", "description": "string", "state": "string", "target_url": "string" }

if i change “status” to “state” and send this message with curl, then build status is ok in gitea.

Do you think it’s a bug ?

It looks like you are running 1.0.0-rc.1 which is an outdated release candidate. Have you tried with the latest release candidate?

You’re right, it’s ok with 1.0.0-rc.3 …
Sorry :slight_smile: