MCPcopy Create free account
hub / github.com/bevyengine/bevy-website / as_github_str

Method as_github_str

generate-release/src/github_client.rs:424–432  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected