MCPcopy Create free account
hub / github.com/TUM-Dev/NavigaTUM / github_token

Method github_token

server/src/external/github.rs:233–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231 .filter(|c| !c.is_control() || (c == &'\n'))
232 .take(len)
233 .collect::<String>();
234
235 FEEDBACK_NEWLINE_RE
236 .replace_all(&s_clean, " \n")
237 .to_string()
238 }
239
240 pub fn github_token() -> Option<String> {
241 match env::var("GITHUB_TOKEN") {
242 Ok(token) => Some(token.trim().to_string()),
243 Err(e) => {
244 error!(error = ?e, "GITHUB_TOKEN has to be set for feedback");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected