We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b93c65 commit 7c9bcccCopy full SHA for 7c9bccc
R/check_changes_for_autoapproval.R
@@ -23,11 +23,10 @@ check_changes_for_autoapproval <- function(
23
) {
24
checkmate::assert_string(gh_actor)
25
checkmate::assert_string(base_hub_path)
26
- checkmate::assert_character(
27
- changed_files,
28
- min.len = 1,
29
- info = "Empty PRs cannot be autoapproved. At least one file must be changed in the pull request."
30
- )
+ checkmate::assert_character(changed_files)
+ if (length(changed_files) < 1) {
+ cli::cli_abort("Empty PRs cannot be autoapproved. At least one file must be changed in the pull request.")
+ }
31
changed_files_tbl <- tibble::tibble(
32
full_path = changed_files
33
) |>
0 commit comments