From d8aff570fa22d4e38954c753ec8b21862239b31d Mon Sep 17 00:00:00 2001 From: Kurt Madel Date: Tue, 30 Aug 2016 08:34:33 -0400 Subject: [PATCH] Pull Request hook branch/head info (#47) * added additional branch/repo info to PR webhook * added additional branch/repo info to PR webhook --- pull.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pull.go b/pull.go index 6e1ae6e..be93b26 100644 --- a/pull.go +++ b/pull.go @@ -22,6 +22,11 @@ type PullRequest struct { State StateType `json:"state"` Comments int `json:"comments"` + HeadBranch string `json:"head_branch"` + HeadRepo *Repository `json:"head_repo"` + BaseBranch string `json:"base_branch"` + BaseRepo *Repository `json:"base_repo"` + HTMLURL string `json:"html_url"` Mergeable *bool `json:"mergeable"`