The string representation of the issue state. This is requested by the Github API, as documented [here](https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#list-repository-issues).
(&self)
| 422 | /// This is requested by the Github API, |
| 423 | /// as documented [here](https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#list-repository-issues). |
| 424 | fn as_github_str(&self) -> &'static str { |
| 425 | match self { |
| 426 | IssueState::Open => "open", |
| 427 | // All merged PRs are considered closed, |
| 428 | // but not all closed PRs are merged. |
| 429 | IssueState::Closed | IssueState::Merged => "closed", |
| 430 | IssueState::All => "all", |
| 431 | } |
| 432 | } |
| 433 | } |
no outgoing calls
no test coverage detected