From 423c59ca88ca6dc2bdb0c7a677f655f6da4c34a8 Mon Sep 17 00:00:00 2001 From: MrDynamo Date: Fri, 26 Apr 2024 17:14:18 -0500 Subject: [PATCH] =?UTF-8?q?chore(workspace):=20=F0=9F=A7=B9=20add=20commit?= =?UTF-8?q?=20editor=20extension=20and=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [skip ci] --- .vscode/extensions.json | 2 +- develop.code-workspace | 107 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 107 insertions(+), 2 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index d23ae473b..ff2a34be2 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,3 @@ { - "recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "firsttris.vscode-jest-runner", "Vue.volar", "Vue.vscode-typescript-vue-plugin", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] + "recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "firsttris.vscode-jest-runner", "Vue.volar", "Vue.vscode-typescript-vue-plugin", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "adam-bender.commit-message-editor"] } diff --git a/develop.code-workspace b/develop.code-workspace index cc800c856..78501d403 100644 --- a/develop.code-workspace +++ b/develop.code-workspace @@ -20,6 +20,111 @@ "settings": { "files.exclude": { "**/apps/": true - } + }, + "commit-message-editor.staticTemplate": ["feat: Short description", "", "Message body", "", "Message footer"], + "commit-message-editor.dynamicTemplate": ["{type}{scope}: {description}", "", "{body}", "", "{skip_ci}", "", "{breaking_change}{footer}"], + "commit-message-editor.tokens": [ + { + "label": "Type", + "name": "type", + "type": "enum", + "options": [ + { + "label": "---", + "value": "" + }, + { + "label": "build", + "description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)" + }, + { + "label": "chore", + "description": "Updating grunt tasks etc; no production code change" + }, + { + "label": "ci", + "description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)" + }, + { + "label": "docs", + "description": "Documentation only changes" + }, + { + "label": "feat", + "description": "A new feature" + }, + { + "label": "fix", + "description": "A bug fix" + }, + { + "label": "perf", + "description": "A code change that improves performance" + }, + { + "label": "refactor", + "description": "A code change that neither fixes a bug nor adds a feature" + }, + { + "label": "revert" + }, + { + "label": "style", + "description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)" + }, + { + "label": "test", + "description": "Adding missing tests or correcting existing tests" + } + ], + "description": "Type of changes" + }, + { + "label": "Scope", + "name": "scope", + "description": "A scope may be provided to a commit’s type, to provide additional contextual information and is contained within parenthesis, e.g., \"feat(parser): add ability to parse arrays\".", + "type": "text", + "multiline": false, + "prefix": "(", + "suffix": ")" + }, + { + "label": "Short description", + "name": "description", + "description": "Short description in the subject line.", + "type": "text", + "multiline": false + }, + { + "label": "Body", + "name": "body", + "description": "Optional body", + "type": "text", + "multiline": true, + "lines": 5, + "maxLines": 10 + }, + { + "label": "Breaking change", + "name": "breaking_change", + "type": "boolean", + "value": "BREAKING CHANGE: " + }, + { + "label": "Footer", + "name": "footer", + "description": "Optional footer", + "type": "text", + "multiline": true + }, + { + "label": "Skip CI", + "name": "skip_ci", + "type": "boolean", + "value": "[skip ci]" + } + ], + "commit-message-editor.view.defaultView": "form", + "commit-message-editor.view.visibleViews": "form" } } \ No newline at end of file