Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/black-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: jpetrucciani/black-check@master
with:
black_flags: '-S'
25 changes: 5 additions & 20 deletions .github/workflows/clang-format-lint.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,17 @@
name: clang-format-linter

on:
pull_request_target:
types:
- opened
- edited
- synchronize
branches:
- main
push: {}
pull_request: {}

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: DoozyX/clang-format-lint-action@v0.13
- uses: actions/checkout@v4
- uses: DoozyX/clang-format-lint-action@v0.16.2
with:
source: '.'
extensions: 'c,cpp,java'
clangFormatVersion: 12
inplace: True

- uses: EndBug/add-and-commit@v9
with:
committer_name: yanglbme
committer_email: contact@yanglibin.info
message: 'chore: format code with clang-format'
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
clangFormatVersion: 16
2 changes: 1 addition & 1 deletion .github/workflows/compress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
github.event.pull_request.head.repo.full_name == github.repository)
steps:
- name: Checkout Branch
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Compress Images
id: calibre
uses: calibreapp/image-actions@main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ public class Codec {
*/
class Codec {
public:

// Encodes a tree to a single string.
string serialize(TreeNode* root) {
if (!root) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ public class Codec {
*/
class Codec {
public:

// Encodes a tree to a single string.
string serialize(TreeNode* root) {
if (!root) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
class Codec {
public:

// Encodes a tree to a single string.
string serialize(TreeNode* root) {
if (!root) {
Expand Down