From 5e1253ba0d9b09cd50dd382a0c9cd2f330219bee Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Thu, 30 Mar 2023 19:49:32 +0200 Subject: [PATCH] github: set maintainer_can_modify for PR creation --- Library/Homebrew/utils/github.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index 9c13d8b0c3..e4af9cc3b9 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -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