screwdriver-api 8.0.108 → 8.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -60,7 +60,8 @@ function getAdminUsersFromPipelineSCMContext(pipeline, userFactory) {
|
|
|
60
60
|
* whose registered SCM context differs from the pipeline's context.
|
|
61
61
|
*/
|
|
62
62
|
function getAdminUsersFromOtherSCMContext(pipeline, userFactory) {
|
|
63
|
-
const {
|
|
63
|
+
const { scmContext } = pipeline;
|
|
64
|
+
const adminUserIds = pipeline.adminUserIds ? pipeline.adminUserIds : [];
|
|
64
65
|
|
|
65
66
|
const listConfig = {
|
|
66
67
|
params: {
|
|
@@ -36,7 +36,7 @@ module.exports = () => ({
|
|
|
36
36
|
joi.object({
|
|
37
37
|
id: idSchema.required(),
|
|
38
38
|
scmContext: scmContextSchema.required(),
|
|
39
|
-
usernames: joi.array().items(usernameSchema).min(1).max(
|
|
39
|
+
usernames: joi.array().items(usernameSchema).min(1).max(200).required()
|
|
40
40
|
})
|
|
41
41
|
)
|
|
42
42
|
.min(1)
|
|
@@ -1421,7 +1421,7 @@ async function startHookEvent(request, h, webhookConfig) {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
|
|
1423
1423
|
// if skip ci then don't return
|
|
1424
|
-
if (ignoreUser && ignoreUser.length !== 0 && !skipMessage) {
|
|
1424
|
+
if (action !== 'tag' && action !== 'release' && ignoreUser && ignoreUser.length !== 0 && !skipMessage) {
|
|
1425
1425
|
const commitAuthors =
|
|
1426
1426
|
Array.isArray(webhookConfig.commitAuthors) && webhookConfig.commitAuthors.length !== 0
|
|
1427
1427
|
? webhookConfig.commitAuthors
|