From 87e4e5f235e1f8725f6d4d036cb7de3878cbc92b Mon Sep 17 00:00:00 2001 From: yk634 <59165943+yk634@users.noreply.github.com> Date: Tue, 4 Jan 2022 04:20:30 +0900 Subject: [PATCH] feat(1769): Change data structure for queue-service cooperation. (#90) --- index.js | 12 ++++++------ package.json | 8 +++++--- 2 files changed, 11 insertions(+), 9 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) 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"