Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Fix commit hash when push event #89

Merged
merged 1 commit into from
Aug 31, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion presentation/controller/webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (c *JobController) ServeHTTP(w http.ResponseWriter, r *http.Request) {
taskName := fmt.Sprintf("%s/push", application.Name)
ctx := context.New(taskName, requestId, runtimeUrl)

sha := event.GetHeadCommit().GetSHA()
sha := event.GetHeadCommit().GetID()
go c.Runner.Run(ctx, event.GetRepo(), event.GetRef(), plumbing.NewHash(sha))
default:
message := fmt.Sprintf("payload event type must be issue_comment or push. but %s", githubEvent)
Expand Down