Skip to content

Commit

Permalink
Two tweaks to issue labelling
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hadley committed Jan 13, 2025
1 parent d3b4a3c commit 8d3979c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/github-labels.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 8d3979c

Please sign in to comment.