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

Method new

generate-release/src/github_client.rs:106–112  ·  view source on GitHub ↗
(token: String, repo: BevyRepo)

Source from the content-addressed store, hash-verified

104
105impl GithubClient {
106 pub fn new(token: String, repo: BevyRepo) -> Self {
107 let agent: ureq::Agent = ureq::AgentBuilder::new()
108 .user_agent("bevy-website-generate-release")
109 .build();
110
111 Self { agent, token, repo }
112 }
113
114 /// Submits a GET request to `bevyengine/{repo}`
115 fn get(&self, path: &str, repo: BevyRepo) -> ureq::Request {

Callers

nothing calls this directly

Calls 1

buildMethod · 0.45

Tested by

no test coverage detected