Skip to content

ci: Test all R versions on branches that start with cran-#163

Merged
krlmlr merged 1 commit into
mainfrom
actions-sync-update
Jan 13, 2026
Merged

ci: Test all R versions on branches that start with cran-#163
krlmlr merged 1 commit into
mainfrom
actions-sync-update

Conversation

@krlmlr
Copy link
Copy Markdown
Member

@krlmlr krlmlr commented Jan 13, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 13, 2026 06:20
@krlmlr krlmlr enabled auto-merge (squash) January 13, 2026 06:20
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modifies the R CMD check workflow to enable comprehensive R version testing on branches with names starting with "cran-". The change ensures that CRAN submission branches receive the same thorough testing as scheduled runs and external pull requests.

Changes:

  • Modified the versions-matrix step condition to include internal PRs from branches starting with "cran-"
  • Simplified the rcc-full job condition to run whenever a versions matrix is available, removing the restriction to only scheduled runs or manual dispatch

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +137 to +138
# - pull requests if the base repo is different from the head repo and the branch name does not start with "cran-"
# Do not run for:
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment does not accurately describe the conditional logic. The comment states "pull requests if the base repo is different from the head repo and the branch name does not start with 'cran-'", which suggests an AND condition with a negative check. However, the actual code on line 141 uses OR logic: it runs for pull requests when either the base repo differs from the head repo OR when the branch name starts with "cran-". The comment should be updated to reflect that this step runs for pull requests from external repositories OR for internal pull requests with branches starting with "cran-".

Suggested change
# - pull requests if the base repo is different from the head repo and the branch name does not start with "cran-"
# Do not run for:
# - pull requests if the base repo is different from the head repo OR the branch name starts with "cran-"
# - workflow_dispatch if explicitly requested via the "versions-matrix" input
# Do not run for:
# - pull requests from the same repository when the branch name does not start with "cran-"

Copilot uses AI. Check for mistakes.
@krlmlr krlmlr merged commit 8fe2c78 into main Jan 13, 2026
8 of 9 checks passed
@krlmlr krlmlr deleted the actions-sync-update branch January 13, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants