screwdriver-api 7.0.250 → 7.0.251
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
|
@@ -73,7 +73,19 @@ module.exports = () => ({
|
|
|
73
73
|
config.search = { field: ['commit'], keyword: `%name":"${author}%` };
|
|
74
74
|
} else if (creator) {
|
|
75
75
|
// searches name and username
|
|
76
|
-
|
|
76
|
+
let inverse = false;
|
|
77
|
+
let creatorName = creator;
|
|
78
|
+
|
|
79
|
+
if (creator.startsWith('ne:')) {
|
|
80
|
+
inverse = true;
|
|
81
|
+
creatorName = creator.substring(3); // Remove 'ne:' prefix
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
config.search = {
|
|
85
|
+
field: ['creator'],
|
|
86
|
+
keyword: `%name":"${creatorName}%`,
|
|
87
|
+
inverse
|
|
88
|
+
};
|
|
77
89
|
}
|
|
78
90
|
|
|
79
91
|
if (groupEventId) {
|
|
@@ -107,7 +119,12 @@ module.exports = () => ({
|
|
|
107
119
|
sha: shaSchema,
|
|
108
120
|
message: joi.string().label('Commit message').example('fix: Typo'),
|
|
109
121
|
author: joi.string().label('Author Name').example('Dao Lam'),
|
|
110
|
-
creator: joi
|
|
122
|
+
creator: joi
|
|
123
|
+
.string()
|
|
124
|
+
.label('Creator Name')
|
|
125
|
+
.description('Creator Name; optionally use "ne:" prefix to exclude creator')
|
|
126
|
+
.example('Dao Lam')
|
|
127
|
+
.example('ne:Dao Lam'),
|
|
111
128
|
id: queryIdSchema,
|
|
112
129
|
groupEventId: pipelineIdSchema,
|
|
113
130
|
search: joi.forbidden(), // we don't support search for Pipeline list events
|