mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-04-30 19:09:26 +08:00
* Fix #690: Apply clang-format consistently with CI Applied clang-format-19 to all source files to enforce consistent formatting according to the existing .clang-format configuration. Added auto-clang-format GitHub Actions workflow (from cpp-best-practices/cmake_template) that runs on pull requests to automatically format and commit any style violations going forward. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
641 B
YAML
28 lines
641 B
YAML
name: auto-clang-format
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: DoozyX/clang-format-lint-action@v0.20
|
|
with:
|
|
source: '.'
|
|
exclude: './third_party ./external ./unittests/catch.hpp'
|
|
extensions: 'h,cpp,hpp'
|
|
clangFormatVersion: 19
|
|
inplace: True
|
|
- uses: EndBug/add-and-commit@v9
|
|
with:
|
|
author_name: Clang Robot
|
|
author_email: robot@example.com
|
|
message: ':art: Committing clang-format changes'
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|