Skip to content

Commit

Permalink
Merge pull request netlify#12 from netlify/allow-merges
Browse files Browse the repository at this point in the history
Allow GitHub to access the merges endpoint
  • Loading branch information
biilmann authored Jun 4, 2018
2 parents 73c75b2 + b718b0a commit fcbbc42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type GitHubGateway struct {
}

var pathRegexp = regexp.MustCompile("^/github/?")
var allowedRegexp = regexp.MustCompile("^/github/(git|contents|pulls|branches)/?")
var allowedRegexp = regexp.MustCompile("^/github/(git|contents|pulls|branches|merges)/?")

func NewGitHubGateway() *GitHubGateway {
return &GitHubGateway{
Expand Down

0 comments on commit fcbbc42

Please sign in to comment.