Skip to content

Commit

Permalink
Merge branch 'main' into bookmark-include
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rogers-hub authored Feb 18, 2025
2 parents c017106 + 5c3bad0 commit abafc73
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
8 changes: 5 additions & 3 deletions R/support_panel.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
"
)
}
Expand Down
2 changes: 1 addition & 1 deletion man/support_panel.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions tests/testthat/test-support_panel.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ test_that("repo URL needs to follow standard pattern", {
)
)

expect_no_error(
support_panel(
team_email = "[email protected]",
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(
Expand Down

0 comments on commit abafc73

Please sign in to comment.