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"