From 16b0a72e07d6cc5272cb52412baa85b916b0fa3f Mon Sep 17 00:00:00 2001 From: wsmelton <11204251+wsmelton@users.noreply.github.com> Date: Wed, 17 Nov 2021 16:18:38 -0600 Subject: [PATCH] contributing guide - added Code task for formatting commit messages --- .vscode/tasks.json | 13 +++++++++++++ CONTRIBUTING.md | 2 ++ 2 files changed, 15 insertions(+) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index b2b20f2e..81a36832 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -3,6 +3,12 @@ // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ + { + "label": "changelog commits", + "type":"shell", + "command": "git reflog --pretty=format:'* %h %s' | clip", + "problemMatcher": "$msCompile" + }, { "label": "build-library", "type": "shell", @@ -41,5 +47,12 @@ }, "problemMatcher": "$msCompile" } + ], + "inputs": [ + { + "id": "commitcount", + "type": "promptString", + "description": "Number of your commits to copy to the clipboard" + } ] } \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5aeae3e0..5c44d216 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -32,6 +32,8 @@ The git history of a branch is utilized in building the CHANGELOG for the projec More info: [How to Write a Git Commit Message](https://chris.beams.io/posts/git-commit/) +A task, `changelog commits`, is available in Code for this project that allows you to copy the formatted commit messages used in our CHANGELOG. + ## Project Folder Structure | Folder | Description |