Skip to content

Commit 31757f4

Browse files
FIX: use compare url for push event button url
1 parent 4696e63 commit 31757f4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

types/commit.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ type PushEvent struct {
55
Commits []Commit `json:"commits,omitempty"`
66
Action string `json:"action,omitempty"`
77
Repo Repository `json:"repository,omitempty"`
8+
Compare string `json:"compare,omitempty"`
89
}
910

1011
type Commit struct {

utils/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func CreateContents(meta *types.Metadata) (text string, markupText string, marku
7070
// No Activity Types
7171
text = createPushText(event)
7272
markupText = "Open Changes"
73-
markupUrl = event.Repo.HTMLURL
73+
markupUrl = event.Compare
7474
case "release":
7575
event := event.(*types.ReleaseEvent)
7676
if !Contains([]string{"published", "released"}, event.Action) {

0 commit comments

Comments
 (0)