Merge pull request #16925 from gibfahn/write_only_github

This commit is contained in:
Carlo Cabrera 2024-03-25 19:53:46 +08:00 committed by GitHub
commit 966f819deb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -521,6 +521,8 @@ module GitHub
.returns(T::Array[T::Hash[String, T.untyped]])
}
def self.fetch_pull_requests(name, tap_remote_repo, state: nil, version: nil)
return [] if Homebrew::EnvConfig.no_github_api?
regex = pull_request_title_regex(name, version)
query = "is:pr #{name} #{version}".strip