diff --git a/types/commit.go b/types/commit.go index b3cd7fa..95b963d 100644 --- a/types/commit.go +++ b/types/commit.go @@ -5,6 +5,7 @@ type PushEvent struct { Commits []Commit `json:"commits,omitempty"` Action string `json:"action,omitempty"` Repo Repository `json:"repository,omitempty"` + Compare string `json:"compare,omitempty"` } type Commit struct { diff --git a/utils/parser.go b/utils/parser.go index cde9c9e..0be29ab 100644 --- a/utils/parser.go +++ b/utils/parser.go @@ -70,7 +70,7 @@ func CreateContents(meta *types.Metadata) (text string, markupText string, marku // No Activity Types text = createPushText(event) markupText = "Open Changes" - markupUrl = event.Repo.HTMLURL + markupUrl = event.Compare case "release": event := event.(*types.ReleaseEvent) if !Contains([]string{"published", "released"}, event.Action) {