Skip to content

claude.yml auto-commit sweep commits setup-r-dependencies' .github/pkg.lock #983

Closed

Description

@d-morrison

claude.yml (v2) ends with an auto-commit sweep that commits anything left in git status --porcelain (around line 989). In an R/Quarto consumer, the setup steps leave .github/pkg.lock untracked. That file is the lockfile r-lib/actions/setup-r-dependencies writes. So an @claude review mention on a PR pushes a large generated lockfile onto the PR branch.

Measured 2026-09-28 on two PRs:

Both commits were titled "chore: auto-commit residual @claude session changes". In each repo, the next automated review then flagged the lockfile as out of scope.

Fix: exclude known setup artifacts from the sweep (at least .github/pkg.lock, and .github/r-depends.rds if written), or remove them before git status. Excluding them can't lose Claude's work, because the agent never writes these files.

Activity

  1. github-actions commented on Sep 28, 2026

    @github-actions
    Contributor

    👀 Picked up by workflow run #36499945437. Setup runs first; Claude itself responds after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions