Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nitayneeman/vscode-git-semantic-commit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.0
Choose a base ref
...
head repository: nitayneeman/vscode-git-semantic-commit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 9 commits
  • 6 files changed
  • 4 contributors

Commits on Feb 7, 2020

  1. test: rename specs

    nitayneeman committed Feb 7, 2020
    Copy the full SHA
    1082341 View commit details

Commits on Jul 11, 2020

  1. docs(README): describe the conventions origin (#15)

    Egor Avakumov authored Jul 11, 2020
    Copy the full SHA
    eb68d3d View commit details
  2. Copy the full SHA
    2425e84 View commit details
  3. docs: add a link to angular conventions (#16)

    Egor Avakumov authored Jul 11, 2020
    Copy the full SHA
    11555e9 View commit details

Commits on Aug 9, 2020

  1. Improve integration tests (#19)

    * fix: Update path to be relative to repo root and not the test dir
    
    * fix: Prevent error logged when dir exists
    MichaelCurrin authored Aug 9, 2020
    Copy the full SHA
    67600ba View commit details

Commits on Aug 29, 2020

  1. build: refactor pretest command (#20)

    * test: Use git init in NPM pretest
    
    * test: Delete unused pretest script
    MichaelCurrin authored Aug 29, 2020
    Copy the full SHA
    19bad81 View commit details

Commits on Apr 29, 2021

  1. build(deps): bump y18n from 4.0.0 to 4.0.1 (#23)

    Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
    - [Release notes](https://github.com/yargs/y18n/releases)
    - [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/yargs/y18n/commits)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 29, 2021
    Copy the full SHA
    ce54a98 View commit details
  2. build(deps): bump lodash from 4.17.15 to 4.17.19 (#18)

    Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
    - [Release notes](https://github.com/lodash/lodash/releases)
    - [Commits](lodash/lodash@4.17.15...4.17.19)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 29, 2021
    Copy the full SHA
    39b7db4 View commit details
  3. build(deps): bump https-proxy-agent from 2.2.2 to 2.2.4 (#14)

    Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.2 to 2.2.4.
    - [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases)
    - [Commits](TooTallNate/proxy-agents@2.2.2...2.2.4)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 29, 2021
    Copy the full SHA
    b519016 View commit details
Showing with 16 additions and 19 deletions.
  1. +2 −0 README.md
  2. +10 −10 package-lock.json
  3. +1 −1 package.json
  4. +0 −5 scripts/pretest.sh
  5. +1 −1 src/test/runTest.ts
  6. +2 −2 src/test/suite/extension.test.ts
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -26,6 +26,8 @@ This Visual Studio Code extension enables to commit simply by the semantic messa
<img src="https://github.com/nitayneeman/vscode-git-semantic-commit/blob/master/images/examples/preview.gif?raw=true" alt="Preview">
</p>

Notice that the default types are aligned with the Angular commit message [conventions](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type).

<br>

## 👨🏻‍🏫 How to Use
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -154,7 +154,7 @@
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && ./scripts/pretest.sh",
"pretest": "npm run compile && git init test-temp --quiet",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
5 changes: 0 additions & 5 deletions scripts/pretest.sh

This file was deleted.

2 changes: 1 addition & 1 deletion src/test/runTest.ts
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ async function main() {
try {
const extensionDevelopmentPath = path.resolve(__dirname, '../../');
const extensionTestsPath = path.resolve(__dirname, './suite/index');
const testWorkspace = path.resolve(__dirname, './test-temp');
const testWorkspace = path.resolve(__dirname, '../../test-temp');

await runTests({
extensionDevelopmentPath,
4 changes: 2 additions & 2 deletions src/test/suite/extension.test.ts
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ suite("Extension Test Suite", () => {

suiteTeardown(() => clearDirectory(directoryPath));

test('should commit with "chore" type', async () => {
test('should commit with "build" type', async () => {
const sampleSubject = "add new file";
const expectedMessage = `build: ${sampleSubject}`;

@@ -29,7 +29,7 @@ suite("Extension Test Suite", () => {
assert.equal(message.includes(expectedMessage), true);
});

test('should commit with a scope and "chore" type', async () => {
test('should commit with a scope and "build" type', async () => {
const sampleScope = "scope";
const sampleSubject = "add new file";
const expectedMessage = `build(${sampleScope}): ${sampleSubject}`;