mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-04-26 21:44:44 +00:00
Merge pull request #65 from floatdrop/fix-status-url
Fixup back url in commit status
This commit is contained in:
commit
9e7d196e30
1 changed files with 5 additions and 1 deletions
|
@ -225,7 +225,11 @@ func updateGitHubStatus(repo *Repo, commit *Commit) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
client := github.New(user.GithubToken)
|
client := github.New(user.GithubToken)
|
||||||
return client.Repos.CreateStatus(repo.Owner, repo.Name, status, settings.URL().String(), message, commit.Hash)
|
|
||||||
|
var url string
|
||||||
|
url = settings.URL().String() + "/" + repo.Slug + "/commit/" + commit.Hash
|
||||||
|
|
||||||
|
return client.Repos.CreateStatus(repo.Owner, repo.Name, status, url, message, commit.Hash)
|
||||||
}
|
}
|
||||||
|
|
||||||
type bufferWrapper struct {
|
type bufferWrapper struct {
|
||||||
|
|
Loading…
Reference in a new issue