lab132 / buildbot-gitea

Buildbot plugin for integration with gitea.
MIT License
62 stars 21 forks source link

Small fixes #1

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi, thank you for this plugin. Here are some fixs I had to make to install it.

pampersrocker commented 5 years ago

I've merged all changes, except of the message array. While it is true, that messages come in a list, if the step is successful, on errors we get a simple json as follow:

{
  "message": "NewCommitStatus[repo_id: 23, user_id: 1, sha: asdf]: GetCommit[asdf]: object does not exist [id: , rel_path: ]",
  "url": "https://godoc.org/github.com/go-gitea/go-sdk/gitea"
}

So there cannot be an array access.

Thanks for the changes!