Skip to content

Add R CMD check CI workflow to enable master branch protection#2

Closed
Copilot wants to merge 2 commits intomasterfrom
copilot/protect-master-branch
Closed

Add R CMD check CI workflow to enable master branch protection#2
Copilot wants to merge 2 commits intomasterfrom
copilot/protect-master-branch

Conversation

Copy link
Contributor

Copilot AI commented Feb 27, 2026

The master branch had no CI status checks, making it impossible to enforce "Require status checks to pass" in branch protection rules.

Changes

  • .github/workflows/R-CMD-check.yaml — Adds a standard r-lib/actions-based workflow that runs R CMD check on every push and PR targeting master, producing the R-CMD-check status check required for branch protection enforcement
    • Scoped to permissions: contents: read (least-privilege)
    • Uses ubuntu-latest with public RSPM for fast dependency resolution

Enabling branch protection

Once this workflow has run at least once, go to Settings → Branches → Add rule for master, enable Require status checks to pass, and add R-CMD-check as a required check.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…checks

Co-authored-by: ZhaonanFang <175249749+ZhaonanFang@users.noreply.github.com>
Copilot AI changed the title [WIP] Add status check requirement for master branch Add R CMD check CI workflow to enable master branch protection Feb 27, 2026
@ZhaonanFang ZhaonanFang closed this Mar 2, 2026
@ZhaonanFang ZhaonanFang deleted the copilot/protect-master-branch branch March 2, 2026 18:07
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