github: set maintainer_can_modify for PR creation

This commit is contained in:
Dawid Dziurla 2023-03-30 19:49:32 +02:00
parent 6bf7788761
commit 5e1253ba0d
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

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