From b7634272fafff9aeb9899de88c23d38dda4071cf Mon Sep 17 00:00:00 2001 From: aarlaud Date: Tue, 15 Jun 2021 14:27:41 +0200 Subject: [PATCH] fix: update errors in circleci workflow and repo name --- .circleci/config.yml | 12 ++++++------ .releaserc | 38 +++++++++++++++++++------------------- README.md | 8 ++++---- package-lock.json | 2 +- package.json | 6 +++--- 5 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 887c09e..4cbbb3e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,7 +8,7 @@ jobs: steps: - checkout - run: npm install semantic-release @semantic-release/exec pkg --save-dev --legacy-peer-deps - - run: npm install + - run: npm run build - run: npm test - snyk/scan: fail-on-issues: true @@ -20,7 +20,7 @@ jobs: - image: circleci/node:latest steps: - checkout - - run: npm install + - run: npm run build - run: npm test - snyk/scan: fail-on-issues: true @@ -32,7 +32,7 @@ jobs: - image: circleci/node:latest steps: - checkout - - run: npm install + - run: npm run build - run: npm test - run: npx tsc @@ -45,7 +45,7 @@ workflows: filters: branches: only: - - master + - main jobs: - build-test-monitor: context: SNYK @@ -57,7 +57,7 @@ workflows: filters: branches: only: - - master + - main build-test: jobs: @@ -66,7 +66,7 @@ workflows: filters: branches: ignore: - - master + - main - /pull\/[0-9]+/ - build-test-from-fork: filters: diff --git a/.releaserc b/.releaserc index c290e83..95f2462 100644 --- a/.releaserc +++ b/.releaserc @@ -14,7 +14,7 @@ { "//": "shasum all binaries", "path": "@semantic-release/exec", - "cmd": "shasum -a 256 snyk-delta-linux > snyk-delta-linux.sha256 && shasum -a 256 snyk-delta-macos > snyk-delta-macos.sha256 && shasum -a 256 snyk-delta-win.exe > snyk-delta-win.exe.sha256" + "cmd": "shasum -a 256 snyk-scm-contributors-count-linux > snyk-scm-contributors-count-linux.sha256 && shasum -a 256 snyk-scm-contributors-count-macos > snyk-scm-contributors-count-macos.sha256 && shasum -a 256 snyk-scm-contributors-count-win.exe > snyk-scm-contributors-count-win.exe.sha256" }, { "//": "removes the file we use to identify a build as a standalone binary", @@ -28,34 +28,34 @@ "path": "@semantic-release/github", "assets": [ { - "path": "./snyk-delta-linux", - "name": "snyk-delta-linux", - "label": "snyk-delta-linux" + "path": "./snyk-scm-contributors-count-linux", + "name": "snyk-scm-contributors-count-linux", + "label": "snyk-scm-contributors-count-linux" }, { - "path": "./snyk-delta-linux.sha256", - "name": "snyk-delta-linux.sha256", - "label": "snyk-delta-linux.sha256" + "path": "./snyk-scm-contributors-count-linux.sha256", + "name": "snyk-scm-contributors-count-linux.sha256", + "label": "snyk-scm-contributors-count-linux.sha256" }, { - "path": "./snyk-delta-macos", - "name": "snyk-delta-macos", - "label": "snyk-delta-macos" + "path": "./snyk-scm-contributors-count-macos", + "name": "snyk-scm-contributors-count-macos", + "label": "snyk-scm-contributors-count-macos" }, { - "path": "./snyk-delta-macos.sha256", - "name": "snyk-delta-macos.sha256", - "label": "snyk-delta-macos.sha256" + "path": "./snyk-scm-contributors-count-macos.sha256", + "name": "snyk-scm-contributors-count-macos.sha256", + "label": "snyk-scm-contributors-count-macos.sha256" }, { - "path": "./snyk-delta-win.exe", - "name": "snyk-delta-win.exe", - "label": "snyk-delta-win.exe" + "path": "./snyk-scm-contributors-count-win.exe", + "name": "snyk-scm-contributors-count-win.exe", + "label": "snyk-scm-contributors-count-win.exe" }, { - "path": "./snyk-delta-win.exe.sha256", - "name": "snyk-delta-win.exe.sha256", - "label": "snyk-delta-win.exe.sha256" + "path": "./snyk-scm-contributors-count-win.exe.sha256", + "name": "snyk-scm-contributors-count-win.exe.sha256", + "label": "snyk-scm-contributors-count-win.exe.sha256" } ] } diff --git a/README.md b/README.md index 9eb10fc..68e7f51 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ I want to know the countributors count for Snyk monitored projects in bitbucket ## Installation ``` -npm i snyk-scm-contributor-count +npm i snyk-scm-contributors-count ``` or use corresponding binaries in the [release page](https://github.com/snyk-tech-services/snyk-scm-contributors-count/releases) @@ -20,12 +20,12 @@ or use corresponding binaries in the [release page](https://github.com/snyk-tech ## Usage ``` export SNYK_TOKEN= -snyk-scm-contributor-count +snyk-scm-contributors-count ``` ##### Example: ``` -snyk-scm-contributor-count bitbucket-server --token BITBUCKET-TOKEN --url http://bitbucket-server.mycompany.com --projectKeys Key1,Key2 --exclusionFilePath=./snyk.exclude +snyk-scm-contributors-count bitbucket-server --token BITBUCKET-TOKEN --url http://bitbucket-server.mycompany.com --projectKeys Key1,Key2 --exclusionFilePath=./snyk.exclude ``` ## Common options across commands @@ -38,7 +38,7 @@ Additional options might be available depending on the command ### Run in DEBUG MODE Use DEBUG=snyk* env var before your command, for example: ``` -DEBUG=snyk* snyk-scm-contributor-count bitbucket-server --token BITBUCKET-TOKEN --url http://bitbucket-server.mycompany.com --projectKeys Key1,Key2 --exclusionFilePath=./snyk.exclude +DEBUG=snyk* snyk-scm-contributors-count bitbucket-server --token BITBUCKET-TOKEN --url http://bitbucket-server.mycompany.com --projectKeys Key1,Key2 --exclusionFilePath=./snyk.exclude ``` diff --git a/package-lock.json b/package-lock.json index f94fc11..9154a3c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "snyk-scm-contributor-count", + "name": "snyk-scm-contributors-count", "version": "1.0.0", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index a4602d2..b9cc7a7 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { - "name": "snyk-scm-contributor-count", + "name": "snyk-scm-contributors-count", "version": "1.0.0", "description": "", "main": "dist/index.js", "bin": { - "snyk-scm-contributor-count": "dist/index.js" + "snyk-scm-contributors-count": "dist/index.js" }, "dependencies": { "azure-devops-node-api": "^10.2.2", @@ -50,7 +50,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/snyk-tech-services/snyk-scm-contributor-count.git" + "url": "https://github.com/snyk-tech-services/snyk-scm-contributors-count.git" }, "author": "Snyk Tech Services", "license": "Apache-2.0",