From 8d3979cea1f602e4d530ae66656f8bc9fe571d03 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Mon, 13 Jan 2025 09:22:50 -0600 Subject: [PATCH] Two tweaks to issue labelling 1. Suppress the cache so we always get the latest label info. This is mostly useful for testing, when you call `use_github_labels()` rapidly in succession. 2. Add missing label for tidyverse wip label --- R/github-labels.R | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/R/github-labels.R b/R/github-labels.R index f17fecb71..76130cb5f 100644 --- a/R/github-labels.R +++ b/R/github-labels.R @@ -78,6 +78,10 @@ use_github_labels <- function(labels = character(), colours = character(), descriptions = character(), delete_default = FALSE) { + + # Want to ensure we always have the latest label info + withr::local_options(gh_cache = FALSE) + tr <- target_repo(github_get = TRUE, ok_configs = c("ours", "fork")) check_can_push(tr = tr, "to modify labels") @@ -281,6 +285,7 @@ tidy_label_colours <- function() { "documentation" = "CBBAB8", "feature" = "B4C3AE", "upkeep" = "C2ACC0", + "wip" = "E1B996", "good first issue :heart:" = "CBBAB8", "help wanted :heart:" = "C5C295", "reprex" = "C5C295",