Add runner tag option for GitLab CI#10
Merged
VincentGuyader merged 8 commits intomainfrom Jun 6, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for specifying GitLab runner tags in set_gitlab_ci(), updates documentation and examples, and adds tests and NEWS for the new feature.
- Introduce a new
tagsparameter inset_gitlab_ci()for multiple runner tags - Update vignettes, README, and Rd documentation with usage examples
- Add unit tests to verify tag insertion and update NEWS for the dev version
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| vignettes/introduction.Rmd | Added an example showing how to specify runner tags |
| tests/testthat/test-set_gitlab_ci.R | Added a test for inserting multiple runner tags |
| man/set_gitlab_ci.Rd | Updated usage and arguments to include tags |
| README.md | Added tags example under GitLab CI configuration |
| README.Rmd | Added tags example under GitLab CI configuration |
| R/set_gitlab_ci.R | Implemented tags parameter and tag insertion logic |
| NEWS.md | Moved entry to dev version and documented tags |
Comments suppressed due to low confidence (2)
README.md:112
- This example omits the 'path' argument, which will trigger an interactive prompt. For non-interactive usage, include 'path = ...' to avoid hanging.
set_gitlab_ci(tags = c("shiny_build", "prod"))
R/set_gitlab_ci.R:64
- [nitpick] Indentation for the 'tags:' block is hardcoded. Consider capturing the indent level of the matched 'stage:' line and reusing it to preserve YAML structure in different CI templates.
tag_lines <- c(" tags:", paste0(" - ", tags))
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
61dbf26 to
3a1e16b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
shiny_buildas the runner tag forset_gitlab_ciTesting
Rscript -e 'testthat::test_dir("tests/testthat")'(fails: Rscript not found)Rscript -e 'devtools::document()'(fails: Rscript not found)https://chatgpt.com/codex/tasks/task_e_6842e20b70648328a442b1ada3f8ff01