From eea9e011b53b45a2665131c158a32672d9b5698d Mon Sep 17 00:00:00 2001 From: Yuta Kaneda Date: Tue, 21 Dec 2021 11:54:23 +0900 Subject: [PATCH 1/2] feat(1769): Change data structure for queue-service cooperation. --- index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index d295a76..1c8c82c 100644 --- a/index.js +++ b/index.js @@ -168,12 +168,12 @@ class ScmBase { /** * Parse the webhook to get the changed files * @method getChangedFiles - * @param {Object} config Configuration - * @param {String} config.type The type of action from Git (can be 'pr' or 'repo') - * @param {Object} config.payload The webhook payload received from the SCM service - * @param {String} config.token The token used to authenticate to the SCM - * @param {String} [config.scmContext] The scm context name - * @return {Promise} Returns an array of changed files + * @param {Object} config Configuration + * @param {String} config.type The type of action from Git (can be 'pr' or 'repo') + * @param {Object} config.webhookConfig The webhook payload received from the SCM service + * @param {String} config.token The token used to authenticate to the SCM + * @param {String} [config.scmContext] The scm context name + * @return {Promise} Returns an array of changed files */ getChangedFiles(config) { return validate(config, dataSchema.plugins.scm.getChangedFilesInput) From 2455260e73532f919d7e8f28600350a28a0dd57a Mon Sep 17 00:00:00 2001 From: Yuta Kaneda Date: Wed, 22 Dec 2021 17:28:17 +0900 Subject: [PATCH 2/2] fix: semantic release in package.json --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1c365d4..3a2aa8c 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,11 @@ "main": "index.js", "scripts": { "pretest": "eslint .", - "test": "nyc --report-dir ./artifacts/coverage --reporter=lcov mocha --reporter mocha-multi-reporters --reporter-options configFile=./mocha.config.json --recursive --timeout 4000 --retries 1 --exit --allow-uncaught true --color true", - "semantic-release": "semantic-release pre && npm publish && semantic-release post" + "test": "nyc --report-dir ./artifacts/coverage --reporter=lcov mocha --reporter mocha-multi-reporters --reporter-options configFile=./mocha.config.json --recursive --timeout 4000 --retries 1 --exit --allow-uncaught true --color true" }, "repository": { "type": "git", - "url": "git@github.com:screwdriver-cd/scm-base.git" + "url": "git+https://github.com/screwdriver-cd/scm-base.git" }, "homepage": "https://github.com/screwdriver-cd/scm-base", "bugs": "https://github.com/screwdriver-cd/scm-base/issues", @@ -31,6 +30,9 @@ "Tiffany Kyi " ], "release": { + "branches": [ + "master" + ], "debug": false, "verifyConditions": { "path": "./node_modules/semantic-release/src/lib/plugin-noop.js"