MCPcopy Create free account
hub / github.com/argotorg/solidity / pull_request

Method pull_request

scripts/common/rest_api_helpers.py:86–95  ·  view source on GitHub ↗
(self, pr_id: int)

Source from the content-addressed store, hash-verified

84 self.debug_requests = debug_requests
85
86 def pull_request(self, pr_id: int) -> dict:
87 # GITHUB_READ_TOKEN should be a PAT with read-only permissions
88 # This is used by CircleCI and local scripts to avoid GitHub API rate limits
89 headers = {'Authorization': f'Bearer {environ.get("GITHUB_READ_TOKEN")}'} if 'GITHUB_READ_TOKEN' in environ else {}
90 return query_api(
91 f'{self.BASE_URL}/repos/{self.project_slug}/pulls/{pr_id}',
92 {},
93 headers,
94 self.debug_requests
95 )
96
97
98class CircleCI:

Callers 1

download_benchmarksFunction · 0.95

Calls 2

query_apiFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected