diff --git a/R/support_panel.R b/R/support_panel.R index f5b6650..97ee736 100644 --- a/R/support_panel.R +++ b/R/support_panel.R @@ -5,7 +5,7 @@ #' #' @param team_email Your team e-mail address, must be a education.gov.uk email #' @param repo_name The repository URL, must be a valid URL for the -#' dfe-analytical-services GitHub area +#' dfe-analytical-services GitHub area or the dfe-gov-uk Azure DevOps #' @param ees_publication Whether the parent publication is hosted on Explore #' Education Statistics #' @param publication_name The parent publication name @@ -157,8 +157,10 @@ support_panel <- function( if (is_valid_repo_url(repo_name) == FALSE) { stop( "Please ensure the repo_name argument is a valid URL for a repository on - the dfe-analytical-services GitHub area. For example: - repo_name = 'https://github.com/dfe-analytical-services/dfeR'. + either the dfe-analytical-services GitHub area, for example: + repo_name = 'https://github.com/dfe-analytical-services/dfeR', + or the dfe-gov-uk area, for example: + repo_name = 'https://dfe-gov-uk.visualstudio.com/stats-development/_git/dashboard-analytics' " ) } diff --git a/man/support_panel.Rd b/man/support_panel.Rd index 58f07f9..221384d 100644 --- a/man/support_panel.Rd +++ b/man/support_panel.Rd @@ -20,7 +20,7 @@ support_panel( \item{team_email}{Your team e-mail address, must be a education.gov.uk email} \item{repo_name}{The repository URL, must be a valid URL for the -dfe-analytical-services GitHub area} +dfe-analytical-services or dfe-gov-uk GitHub area} \item{ees_publication}{Whether the parent publication is hosted on Explore Education Statistics} diff --git a/tests/testthat/test-support_panel.R b/tests/testthat/test-support_panel.R index 896e0aa..3b3221b 100644 --- a/tests/testthat/test-support_panel.R +++ b/tests/testthat/test-support_panel.R @@ -61,6 +61,13 @@ test_that("repo URL needs to follow standard pattern", { ) ) + expect_no_error( + support_panel( + team_email = "cam@education.gov.uk", + repo_name = "https://dfe-gov-uk.visualstudio.com/stats-development/_git/dashboard-analytics" + ) + ) + # Testing that it will fail if it's on GitHub but not in DfE area expect_error( support_panel(