Skip to content

Commit 87e4e5f

Browse files
authored
feat(1769): Change data structure for queue-service cooperation. (#90)
1 parent f900e15 commit 87e4e5f

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ class ScmBase {
168168
/**
169169
* Parse the webhook to get the changed files
170170
* @method getChangedFiles
171-
* @param {Object} config Configuration
172-
* @param {String} config.type The type of action from Git (can be 'pr' or 'repo')
173-
* @param {Object} config.payload The webhook payload received from the SCM service
174-
* @param {String} config.token The token used to authenticate to the SCM
175-
* @param {String} [config.scmContext] The scm context name
176-
* @return {Promise} Returns an array of changed files
171+
* @param {Object} config Configuration
172+
* @param {String} config.type The type of action from Git (can be 'pr' or 'repo')
173+
* @param {Object} config.webhookConfig The webhook payload received from the SCM service
174+
* @param {String} config.token The token used to authenticate to the SCM
175+
* @param {String} [config.scmContext] The scm context name
176+
* @return {Promise} Returns an array of changed files
177177
*/
178178
getChangedFiles(config) {
179179
return validate(config, dataSchema.plugins.scm.getChangedFilesInput)

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
"main": "index.js",
66
"scripts": {
77
"pretest": "eslint .",
8-
"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",
9-
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
8+
"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"
109
},
1110
"repository": {
1211
"type": "git",
13-
"url": "git@github.com:screwdriver-cd/scm-base.git"
12+
"url": "git+https://github.com/screwdriver-cd/scm-base.git"
1413
},
1514
"homepage": "https://github.com/screwdriver-cd/scm-base",
1615
"bugs": "https://github.com/screwdriver-cd/scm-base/issues",
@@ -31,6 +30,9 @@
3130
"Tiffany Kyi <tiffanykyi@gmail.com>"
3231
],
3332
"release": {
33+
"branches": [
34+
"master"
35+
],
3436
"debug": false,
3537
"verifyConditions": {
3638
"path": "./node_modules/semantic-release/src/lib/plugin-noop.js"

0 commit comments

Comments
 (0)