[`GH::add_labels`]
(
&self,
inst_id: u64,
owner: &str,
repo: &str,
issue_number: i64,
labels: &[&str],
)
| 187 | impl GH for GHApi { |
| 188 | /// [`GH::add_labels`] |
| 189 | async fn add_labels( |
| 190 | &self, |
| 191 | inst_id: u64, |
| 192 | owner: &str, |
| 193 | repo: &str, |
| 194 | issue_number: i64, |
| 195 | labels: &[&str], |
| 196 | ) -> Result<()> { |
| 197 | let client = self.app_client.installation(InstallationId(inst_id))?; |
| 198 | let labels = labels.iter().map(ToString::to_string).collect::<Vec<String>>(); |
| 199 | client.issues(owner, repo).add_labels(issue_number as u64, &labels).await?; |
| 200 | Ok(()) |
| 201 | } |
| 202 | |
| 203 | /// [`GH::create_check_run`] |
| 204 | async fn create_check_run( |
no outgoing calls
no test coverage detected