Skip to content
Prev Previous commit
Next Next commit
Address review: run auto-clang-format on push to develop/master inste…
…ad of PRs

The workflow cannot push back to fork branches, so running on pull_request
was fundamentally broken for fork PRs. Changed trigger to push on develop
and master branches, and simplified checkout (no fork-specific options needed).

Requested by @lefticus in PR #691 review.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
  • Loading branch information
leftibot and claude committed Apr 15, 2026
commit 4ce9577654be4b7476f42c65c0af0d38f83ba93c
10 changes: 5 additions & 5 deletions .github/workflows/auto-clang-format.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: auto-clang-format
on: [pull_request]
on:
push:
branches:
- develop
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
- uses: DoozyX/clang-format-lint-action@v0.20
with:
source: '.'
Expand Down
Loading