Skip to content

Commit

Permalink
FIX: use compare url for push event button url
Browse files Browse the repository at this point in the history
EverythingSuckz committed Sep 12, 2022

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
1 parent 4696e63 commit 31757f4
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions types/commit.go
Original file line number Diff line number Diff line change
@@ -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 {
2 changes: 1 addition & 1 deletion utils/parser.go
Original file line number Diff line number Diff line change
@@ -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) {

0 comments on commit 31757f4

Please sign in to comment.