mirror of
https://github.com/harness/drone.git
synced 2025-05-19 02:20:03 +08:00
Fixup back url in commit status
This commit is contained in:
parent
bb90a492cf
commit
79ccd56960
@ -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 New Issue
Block a user