Skip to content

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

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

krlmlr merged 1 commit into
mainfrom
actions-sync-update

Conversation

@krlmlr

@krlmlr krlmlr commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 13, 2026 06:21
@krlmlr
krlmlr merged commit 07f67c9 into main Jan 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown

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 testing all R versions on branches starting with "cran-". The workflow now generates a versions matrix for internal PRs from cran-* branches and simplifies the condition for running the full R CMD check across multiple R versions.

Changes:

  • Modified the versions-matrix step condition to include internal PRs from cran-* branches
  • Simplified the rcc-full job condition to run whenever a versions matrix exists, removing the schedule/workflow_dispatch restrictions

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

# Only run for pull requests if the base repo is different from the head repo, not for workflow_dispatch if not requested, always run for other events
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository) && (github.event_name != 'workflow_dispatch' || inputs.versions-matrix)
# Only run for:
# - pull requests if the base repo is different from the head repo and the branch name does not start with "cran-"

Copilot AI Jan 13, 2026

Copy link

Choose a reason for hiding this comment

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

The comment description is misleading. It states "pull requests if the base repo is different from the head repo and the branch name does not start with 'cran-'", but the logic uses OR (||) not AND (&&). The actual behavior is: run for pull requests if EITHER the repos differ OR the branch starts with "cran-". Consider updating the comment to: "- pull requests if the base repo is different from the head repo OR the branch name starts 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-"
# - pull requests if the base repo is different from the head repo OR the branch name starts with "cran-"

Copilot uses AI. Check for mistakes.
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