Skip to content

Commit d8aff57

Browse files
kmadelunknwon
authored andcommitted
Pull Request hook branch/head info (#47)
* added additional branch/repo info to PR webhook * added additional branch/repo info to PR webhook
1 parent 7bea055 commit d8aff57

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pull.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ type PullRequest struct {
2222
State StateType `json:"state"`
2323
Comments int `json:"comments"`
2424

25+
HeadBranch string `json:"head_branch"`
26+
HeadRepo *Repository `json:"head_repo"`
27+
BaseBranch string `json:"base_branch"`
28+
BaseRepo *Repository `json:"base_repo"`
29+
2530
HTMLURL string `json:"html_url"`
2631

2732
Mergeable *bool `json:"mergeable"`

0 commit comments

Comments
 (0)