Path.open
open(file, mode='r', buffering=-1, encoding=None)Description
Open file and return a corresponding file object.
Real-World Examples
Practical code examples showing how Path.open is used in real projects.
description
pushedAt
primaryLanguage {
name
}
openIssues: issues(states: OPEN) {
totalCount
}
}
}
}
}
}
"""
self.bulk_size = 50
self.bulk_count = 2
self.gql_stars = self.gql_format % ("stars:>1000 sort:stars", self.bulk_size, "%s")
self.gql_forks = self.gql_format % ("forks:>1000 sort:forks", self.bulk_size, "%s")
self.gql_stars_lang = self.gql_format % ("language:%s stars:>0 sort:stars", self.bulk_size, "%s")
self.col = ['rank', 'item', 'repo_name', 'stars', 'forks', 'language', 'repo_url', 'username', 'issues',
'last_commit', 'description']
@staticmethod
def parse_gql_result(result):
def list_issues(
self,
owner: str,
repo: str,
state: str = "open",
page: int = 1,
limit: int = 30,
) -> dict[str, Any]:
"""List issues for a repository."""
owner = _sanitize_path_param(owner, "owner")
repo = _sanitize_path_param(repo, "repo")
params = {
"state": state,
"per_page": min(limit, 100),
"page": max(1, page),
}
response = httpx.get(
f"{GITHUB_API_BASE}/repos/{owner}/{repo}/issues",
headers=self._headers,
params=params,
timeout=30.0,
)
return self._handle_response(response)