r"""Retrieves all issues from the GitHub repository. Args: state (Literal["open", "closed", "all"]): The state of pull requests to retrieve. (default: :obj: `all`) Options are: - "open": Retrieve only open pull requests.
(
self, state: Literal["open", "closed", "all"] = "all"
)
| 133 | raise ValueError("PRs with multiple files aren't supported yet.") |
| 134 | |
| 135 | def get_issue_list( |
| 136 | self, state: Literal["open", "closed", "all"] = "all" |
| 137 | ) -> List[Dict[str, object]]: |
| 138 | r"""Retrieves all issues from the GitHub repository. |
| 139 | |
| 140 | Args: |
| 141 | state (Literal["open", "closed", "all"]): The state of pull |
| 142 | requests to retrieve. (default: :obj: `all`) |
| 143 | Options are: |
| 144 | - "open": Retrieve only open pull requests. |
| 145 | - "closed": Retrieve only closed pull requests. |
| 146 | - "all": Retrieve all pull requests, regardless of state. |
| 147 | |
| 148 | Returns: |
| 149 | List[Dict[str, object]]: A list of dictionaries where each |
| 150 | dictionary contains the issue number and title. |
| 151 | """ |
| 152 | issues_info = [] |
| 153 | issues = self.repo.get_issues(state=state) |
| 154 | |
| 155 | for issue in issues: |
| 156 | issues_info.append({"number": issue.number, "title": issue.title}) |
| 157 | |
| 158 | return issues_info |
| 159 | |
| 160 | def get_issue_content(self, issue_number: int) -> str: |
| 161 | r"""Retrieves the content of a specific issue by its number. |
nothing calls this directly
no outgoing calls
no test coverage detected