From d54ebffa994f8363b390d760c7e1a1931a280470 Mon Sep 17 00:00:00 2001 From: StarWishsama Date: Fri, 13 Sep 2024 18:17:02 +0800 Subject: [PATCH 1/4] chore(ci): introduced pre-commit --- .pre-commit-config.yaml | 17 +++++++++++++++++ pom.xml | 18 ------------------ 2 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000000..0ee4f31990 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,17 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: 4.6.0 + hooks: + - id: check-yaml + - repo: https://github.com/ejba/pre-commit-maven + rev: v0.3.3 + hooks: + - id: maven-spotless-apply +ci: + autofix_commit_msg: | + [pre-commit.ci] auto fixes from pre-commit hooks + autofix_prs: true + autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' + autoupdate_schedule: weekly + skip: [ ] + submodules: false \ No newline at end of file diff --git a/pom.xml b/pom.xml index 990556b610..6ae207cb15 100644 --- a/pom.xml +++ b/pom.xml @@ -203,24 +203,6 @@ - - - com.rudikershaw.gitbuildhook - git-build-hook-maven-plugin - 3.5.0 - - - .git-hooks/pre-commit - - - - - - install - - - - From d527c3dd50295b23a1f68ac75d6eca615d741132 Mon Sep 17 00:00:00 2001 From: StarWishsama Date: Sun, 15 Sep 2024 17:44:49 +0800 Subject: [PATCH 2/4] chore(ci): fix mismatched version --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0ee4f31990..1b83894794 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: 4.6.0 + rev: v4.6.0 hooks: - id: check-yaml - repo: https://github.com/ejba/pre-commit-maven From 5b13a380519231056e7f4cb05549f28f11aea4d0 Mon Sep 17 00:00:00 2001 From: StarWishsama Date: Sun, 15 Sep 2024 17:50:28 +0800 Subject: [PATCH 3/4] chore(ci): fix mismatched version --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1b83894794..8b43e97c94 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ repos: hooks: - id: check-yaml - repo: https://github.com/ejba/pre-commit-maven - rev: v0.3.3 + rev: v0.3.4 hooks: - id: maven-spotless-apply ci: From 406e6514a85f36b3cc3889379625269bb958bec6 Mon Sep 17 00:00:00 2001 From: StarWishsama Date: Sun, 15 Sep 2024 17:54:01 +0800 Subject: [PATCH 4/4] chore(ci): fix spotless checker --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8b43e97c94..8b6dc8d598 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,6 +7,7 @@ repos: rev: v0.3.4 hooks: - id: maven-spotless-apply + args: ["|| true"] ci: autofix_commit_msg: | [pre-commit.ci] auto fixes from pre-commit hooks