Merge pull request #15098 from Homebrew/ghpr-create-mod
github: set maintainer_can_modify for PR creation
This commit is contained in:
commit
cfa427fbb2
@ -144,7 +144,7 @@ module GitHub
|
|||||||
|
|
||||||
def self.create_pull_request(repo, title, head, base, body)
|
def self.create_pull_request(repo, title, head, base, body)
|
||||||
url = "#{API_URL}/repos/#{repo}/pulls"
|
url = "#{API_URL}/repos/#{repo}/pulls"
|
||||||
data = { title: title, head: head, base: base, body: body }
|
data = { title: title, head: head, base: base, body: body, maintainer_can_modify: true }
|
||||||
scopes = CREATE_ISSUE_FORK_OR_PR_SCOPES
|
scopes = CREATE_ISSUE_FORK_OR_PR_SCOPES
|
||||||
API.open_rest(url, data: data, scopes: scopes)
|
API.open_rest(url, data: data, scopes: scopes)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user