Skip to content

Conversation

@krlmlr
Copy link
Member

@krlmlr krlmlr commented Jan 13, 2026

No description provided.

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

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 attempts to fix a comment in the R-CMD-check workflow file by clarifying when the versions-matrix step runs for pull requests. The original comment had confusing logic with a negation ("does not start with 'cran-'"), and this change aims to simplify it.

Changes:

  • Split a single-line comment into two separate bullet points describing when the step runs for pull requests

💡 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
# - pull requests if the branch name starts with "cran-"
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 incorrectly describes the condition logic. The two bullet points under "Only run for:" imply an AND relationship, but the actual code on line 142 uses an OR operator. For pull requests, the step runs when EITHER the base repo is different from the head repo OR the branch name starts with "cran-", not both conditions simultaneously. Consider rephrasing to make the OR relationship clear, such as using a single bullet point that says "pull requests if the base repo is different from the head repo OR if the branch name starts with 'cran-'".

Suggested change
# - pull requests if the base repo is different from the head repo
# - pull requests if the branch name starts with "cran-"
# - pull requests if the base repo is different from the head repo OR if the branch name starts with "cran-"

Copilot uses AI. Check for mistakes.
@krlmlr krlmlr merged commit 972c5cc into main Jan 13, 2026
11 of 12 checks passed
@krlmlr krlmlr deleted the actions-sync-update branch January 13, 2026 06:58
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