1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-06-12 21:47:35 +02:00

github status API now functioning properly

This commit is contained in:
Brad Rydzewski
2014-08-03 21:28:51 -07:00
parent 2450cda3c5
commit 4a5dce76cd
5 changed files with 61 additions and 10 deletions

View File

@ -21,7 +21,7 @@ const (
)
const (
StatusPending = "peding"
StatusPending = "pending"
StatusSuccess = "success"
StatusFailure = "failure"
StatusError = "error"
@ -69,15 +69,15 @@ func (g GitHub) Send(context *model.Request) error {
context.Repo.Host,
context.Repo.Owner,
context.Repo.Name,
context.Commit.Sha,
target,
getDesc(context.Commit.Status),
getStatus(context.Commit.Status),
context.User.Token,
getDesc(context.Commit.Status),
target,
context.Commit.Sha,
context.User.Access,
)
}
func send(host, owner, repo, ref, status, target, desc, token string) error {
func send(host, owner, repo, status, desc, target, ref, token string) error {
transport := &oauth.Transport{
Token: &oauth.Token{AccessToken: token},
}