From 30b34d52f6f2a17bb3be45d902552b7563f4e11e Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Sun, 5 Jan 2025 09:58:44 +0100 Subject: [PATCH 1/3] refactor: use a stable and simple format --- .config/.lintstagedrc-prettier.js | 3 --- .config/.lintstagedrc-prettier.json | 1 + .husky/pre-commit | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 .config/.lintstagedrc-prettier.js create mode 100644 .config/.lintstagedrc-prettier.json diff --git a/.config/.lintstagedrc-prettier.js b/.config/.lintstagedrc-prettier.js deleted file mode 100644 index 655bfb578..000000000 --- a/.config/.lintstagedrc-prettier.js +++ /dev/null @@ -1,3 +0,0 @@ -export default { - '**/*': 'prettier --write --ignore-unknown' -}; diff --git a/.config/.lintstagedrc-prettier.json b/.config/.lintstagedrc-prettier.json new file mode 100644 index 000000000..23bbc4320 --- /dev/null +++ b/.config/.lintstagedrc-prettier.json @@ -0,0 +1 @@ +{ "**/*": "prettier --write --ignore-unknown" } diff --git a/.husky/pre-commit b/.husky/pre-commit index 1fc12e794..91037c047 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,5 +2,5 @@ echo "### npm run general lintings ###" concurrently "node ./scripts/check-commit-mail.js" "node ./scripts/cypress/component-check.js" "node ./scripts/angular-module-component-check.js" "npx validate-branch-name" echo "### lint staged files ###" lint-staged -lint-staged --config .config/.lintstagedrc-prettier.js +lint-staged --config .config/.lintstagedrc-prettier.json git update-index --again From 60a4b65a1b44deba74967c55284e30cb32ccdd3a Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Sun, 5 Jan 2025 10:01:08 +0100 Subject: [PATCH 2/3] refactor: updated github-script action --- .github/actions/extract-branch/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/extract-branch/action.yml b/.github/actions/extract-branch/action.yml index 872b3eeaa..20b302873 100644 --- a/.github/actions/extract-branch/action.yml +++ b/.github/actions/extract-branch/action.yml @@ -9,7 +9,7 @@ runs: using: 'composite' steps: - name: ⏬ Get branch name - uses: actions/github-script@v6 + uses: actions/github-script@v7 id: get-branch-name with: result-encoding: string From 75669cbb57527e112775a3774c4e31d8e056bbba Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Sun, 5 Jan 2025 10:11:06 +0100 Subject: [PATCH 3/3] test: fix by adapting the year --- e2e/cypress/e2e/02-0-navigation/db-footer.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/cypress/e2e/02-0-navigation/db-footer.cy.js b/e2e/cypress/e2e/02-0-navigation/db-footer.cy.js index 13bbb6670..00f7832cd 100644 --- a/e2e/cypress/e2e/02-0-navigation/db-footer.cy.js +++ b/e2e/cypress/e2e/02-0-navigation/db-footer.cy.js @@ -11,7 +11,7 @@ context('db-footer', () => { it('Standard footer exists', function () { cy.get(selector).eq(0).should('have.class', 'has-border'); cy.get(selector).eq(0); - cy.get(`${selector} > span`).contains('Copyright 2024 DB Systel'); + cy.get(`${selector} > span`).contains('Copyright 2025 DB Systel'); }); it('Custom footer exists', function () {