Skip to content

Commit 1911580

Browse files
committed
Merge remote-tracking branch 'upstream/main' into controllerengine_refactoring
2 parents b5cf59d + 3085bbe commit 1911580

File tree

895 files changed

+2877
-5687
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

895 files changed

+2877
-5687
lines changed

.github/workflows/pre-commit.yml

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,48 @@ jobs:
88
pre-commit:
99
name: Detecting code style issues
1010
runs-on: ubuntu-latest
11-
if: github.event_name == 'push'
1211
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-python@v2
12+
- name: "Check out repository"
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 2
16+
17+
- name: "Set up Python"
18+
uses: actions/setup-python@v2
19+
1520
- name: Install clang-format
1621
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends clang-format-10
17-
- uses: pre-commit/action@v2.0.0
22+
23+
- name: "Detect code style issues (push)"
24+
uses: pre-commit/action@v2.0.0
25+
if: github.event_name == 'push'
1826
# There are too many files in the repo that have formatting issues. We'll
1927
# disable these checks for now when pushing directly (but still run these
2028
# on Pull Requests!).
2129
env:
2230
SKIP: end-of-file-fixer,trailing-whitespace,clang-format,eslint,no-commit-to-branch
23-
pre-commit-pr:
24-
name: Detecting code style issues
25-
runs-on: ubuntu-latest
26-
if: github.event_name == 'pull_request'
27-
steps:
28-
- uses: actions/checkout@v2
29-
with:
30-
fetch-depth: 2
31-
- uses: actions/setup-python@v2
32-
- name: Install clang-format
33-
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends clang-format-10
34-
- uses: pre-commit/action@v2.0.0
31+
32+
- name: "Detect code style issues (pull_request)"
33+
uses: pre-commit/action@v2.0.0
34+
if: github.event_name == 'pull_request'
3535
env:
3636
SKIP: no-commit-to-branch
3737
with:
3838
# HEAD is the not yet integrated PR merge commit +refs/pull/xxxx/merge
3939
# HEAD^1 is the PR target branch and HEAD^2 is the HEAD of the source branch
4040
extra_args: --from-ref HEAD^1 --to-ref HEAD
41+
42+
- name: "Generate patch file"
43+
if: failure()
44+
run: |
45+
git diff-index -p HEAD > "${PATCH_FILE}"
46+
[ -s "${PATCH_FILE}" ] && echo "UPLOAD_PATCH_FILE=${PATCH_FILE}" >> "${GITHUB_ENV}"
47+
env:
48+
PATCH_FILE: pre-commit.patch
49+
50+
- name: "Upload patch artifact"
51+
if: failure() && env.UPLOAD_PATCH_FILE != null
52+
uses: actions/upload-artifact@v2
53+
with:
54+
name: ${{ env.UPLOAD_PATCH_FILE }}
55+
path: ${{ env.UPLOAD_PATCH_FILE }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ repos:
4747
- repo: https://github.com/pre-commit/pre-commit-hooks
4848
rev: v3.3.0
4949
hooks:
50-
- id: check-byte-order-marker
50+
- id: fix-byte-order-marker
5151
exclude: ^.*(\.cbproj|\.groupproj|\.props|\.sln|\.vcxproj|\.vcxproj.filters)$
5252
- id: check-case-conflict
5353
- id: check-json

.travis.yml

Lines changed: 0 additions & 261 deletions
This file was deleted.

0 commit comments

Comments
 (0)