The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
fix: convert lockfile refresh to PR-based flow for protected master
Dottaee7fddf8d5fc
diff --git a/.github/workflows/pr-policy.yml b/.github/workflows/pr-policy.ymlindex eb515edae7..1695338008 100644--- a/.github/workflows/pr-policy.yml+++ b/.github/workflows/pr-policy.yml@@ -32,6 +32,7 @@ jobs:node-version: 20- name: Block manual lockfile edits+ if: github.head_ref != 'chore/refresh-lockfile'run: |changed="$(git diff --name-only "${{ github.event.pull_request.base.sha }}" "${{ github.event.pull_request.head.sha }}")"if printf '%s\n' "$changed" | grep -qx 'pnpm-lock.yaml'; thendiff --git a/.github/workflows/refresh-lockfile.yml b/.github/workflows/refresh-lockfile.ymlindex 079fdd4e94..b0cfb78a64 100644--- a/.github/workflows/refresh-lockfile.yml+++ b/.github/workflows/refresh-lockfile.yml@@ -11,11 +11,12 @@ concurrency:cancel-in-progress: falsejobs:- refresh_and_verify:+ refresh:runs-on: ubuntu-latest- timeout-minutes: 25+ timeout-minutes: 10permissions:contents: write+ pull-requests: writesteps:- name: Checkout repository@@ -40,6 +41,7 @@ jobs:run: |changed="$(git status --porcelain)"if [ -z "$changed" ]; then+ echo "Lockfile is already up to date."exit 0fiif printf '%s\n' "$changed" | grep -Fvq ' pnpm-lock.yaml'; then@@ -48,29 +50,15 @@ jobs:exit 1fi- - name: Commit refreshed lockfile- run: |- if git diff --quiet -- pnpm-lock.yaml; then- exit 0- fi- git config user.name "lockfile-bot"- git config user.email "[email protected]"- git add pnpm-lock.yaml- git commit -m "chore(lockfile): refresh pnpm-lock.yaml"- git push || {- echo "Push failed because master moved during lockfile refresh."- echo "A later refresh run should recompute the lockfile from the newer master state."- exit 1- }-- - name: Install dependencies- run: pnpm install --frozen-lockfile-- - name: Typecheck- run: pnpm -r typecheck-- - name: Run tests- run: pnpm test:run+ - name: Create pull request+ uses: peter-evans/create-pull-request@v7+ with:+ commit-message: "chore(lockfile): refresh pnpm-lock.yaml"+ branch: chore/refresh-lockfile+ delete-branch: true+ title: "chore(lockfile): refresh pnpm-lock.yaml"+ body: |+ Auto-generated lockfile refresh after dependencies changed on `master`.- - name: Build- run: pnpm build+ This PR only updates `pnpm-lock.yaml` — no source changes.+ labels: lockfile-bot