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

Method update_pr_labels

server/src/external/github.rs:283–296  ·  view source on GitHub ↗
(self, pr_number: u64, labels: Vec<String>)

Source from the content-addressed store, hash-verified

281 anyhow::bail!("GitHub client not initialized");
282 };
283
284 octocrab
285 .issues("TUM-Dev", "NavigaTUM")
286 .update(pr_number)
287 .labels(&labels)
288 .send()
289 .await?;
290
291 Ok(())
292 }
293
294 /// Update PR title
295 #[tracing::instrument]
296 pub async fn update_pr_title(self, pr_number: u64, title: &str) -> anyhow::Result<()> {
297 let Some(octocrab) = self.octocrab else {
298 anyhow::bail!("GitHub client not initialized");
299 };

Callers 1

update_batch_pr_metadataFunction · 0.80

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected