Skip to content

ci: Add CI for automatic release - #378

Open
mhovd wants to merge 3 commits into
mainfrom
release-ci
Open

ci: Add CI for automatic release#378
mhovd wants to merge 3 commits into
mainfrom
release-ci

Conversation

@mhovd

@mhovd mhovd commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI lite review requested due to automatic review settings August 20, 2026 08:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds Release Please automation to maintain a rolling release PR on main, generate a CHANGELOG.md, and publish GitHub Releases with version tracking aligned to the R package metadata.

Changes:

  • Add Release Please configuration + manifest to track and bump versions from 3.2.4.
  • Add a GitHub Actions workflow to run googleapis/release-please-action@v4 on pushes to main.
  • Update R package metadata/build ignore rules to accommodate generated release artifacts.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
release-please-config.json Defines Release Please behavior (simple release type, changelog sections, and extra file updates).
DESCRIPTION Adds Release Please version markers around the Version: field.
.release-please-manifest.json Seeds Release Please manifest with current version (3.2.4).
.Rbuildignore Excludes Release Please artifacts and generated changelog/version files from R package builds.
.github/workflows/release-please.yaml Adds CI workflow to run Release Please on pushes to main.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread DESCRIPTION
@codecov-commenter

codecov-commenter commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.88%. Comparing base (5e08a7f) to head (28d2809).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #378   +/-   ##
=======================================
  Coverage   61.88%   61.88%           
=======================================
  Files          51       51           
  Lines       22409    22409           
=======================================
  Hits        13868    13868           
  Misses       8541     8541           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

att_amend_desc() in dev_history.R rewrites DESCRIPTION via desc, which strips
the x-release-please marker comments. Release-please would then silently stop
bumping Version, publishing a release whose DESCRIPTION reports the old one.

Assert the markers exist and that DESCRIPTION matches the manifest.
Copilot AI review requested due to automatic review settings August 20, 2026 09:07
Comment thread .github/workflows/R-CMD-check.yaml Fixed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

Flagged by CodeQL on PR #378. The workflow only checks out and builds, so
contents: read is sufficient. Matches pkgdown, test-coverage and
release-please, which already declare explicit permissions.
Copilot AI review requested due to automatic review settings August 20, 2026 09:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

Suppressed comments (1)

.github/workflows/R-CMD-check.yaml:118

  • The version-sync job checks that the marker lines exist, but it doesn't verify they actually surround the Version: field. If the markers are moved away from Version: (or Version: is moved outside the markers), this job would still pass even though release-please would no longer be able to bump the package version correctly.
          # write.dcf() and desc::desc_set() silently drop comment lines, which
          # would stop release-please bumping Version with no error anywhere.
          for marker in '# x-release-please-start-version' '# x-release-please-end'; do
            if ! grep -qxF "$marker" DESCRIPTION; then
              echo "::error file=DESCRIPTION::Missing '$marker'. release-please can no longer update Version; restore the marker."
              exit 1
            fi
          done

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.

4 participants