Repository navigation
feat: add pre-commit.ci lite as default CI option - #690
Open
lorenzwalthert wants to merge 4 commits into
Open
lorenzwalthert wants to merge 4 commits into
lorenzwalthert wants to merge 4 commits into
Conversation
lorenzwalthert
force-pushed
the
feature/pre-commit-ci-lite
branch
from
October 8, 2026 19:25
02809d9 to
c3476a8
Compare
lorenzwalthert
force-pushed
the
feature/pre-commit-ci-lite
branch
from
November 4, 2026 20:13
c3476a8 to
9c35f13
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds pre-commit.ci lite as a new CI option (
ci = "lite") and makes it the new default, replacing"native".pre-commit.ci lite is a GitHub App that runs hooks on GitHub Actions and pushes auto-fix commits back to PR branches — combining the auto-fixing convenience of the full pre-commit.ci with the flexibility of GitHub Actions (system dependencies, custom runner environment, SHA-pinned workflows).
Changes
New CI option:
ci = "lite"use_ci("lite")anduse_precommit(ci = "lite")copy two workflow templates into.github/workflows/:pre-commit.yml— runs hooks on push/PR and triggers auto-fixing via the pre-commit.ci lite GitHub Apppre-commit-autoupdate.yml— opens a monthly PR with updated hook revisions (workflow_dispatchalso supported)https://github.com/apps/pre-commit-ci-lite), consistent with the"native"experienceRENV_CONFIG_CACHE_ENABLED: FALSEto avoid broken renv symlinks across cached runsDefault changed from
"native"to"lite"The
precommit.cioption now defaults to"lite"in.onLoad(). Users who prefer the fully managed service can still passci = "native"explicitly.Documentation
vignettes/ci.Rmdrestructured: the comparison section is now a feature table (9 features × 3 options) with footnotes for nuance, replacing three separate pros/cons listsuse_ci()updated with a markdown list describing all four validcivaluesman/use_ci.Rdandman/use_precommit.RdregeneratedTesting
Prototype workflows were developed and tested end-to-end in
lorenzwalthert/precommit.test.ci.lite, including:RENV_CONFIG_CACHE_ENABLED: FALSEas a fix for broken renv symlinks in cached runs