Merge pull request #15098 from Homebrew/ghpr-create-mod

github: set maintainer_can_modify for PR creation
This commit is contained in:
Mike McQuaid 2023-03-31 11:00:41 +01:00 committed by GitHub
commit cfa427fbb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ module GitHub
def self.create_pull_request(repo, title, head, base, body)
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
API.open_rest(url, data: data, scopes: scopes)
end