screwdriver-api 7.0.206 → 7.0.208
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
|
@@ -111,6 +111,7 @@ Query Params:
|
|
|
111
111
|
* `type` - *Optional* Get pipeline or pr events (default `pipeline`)
|
|
112
112
|
* `prNum` - *Optional* Return only PR events of specified PR number
|
|
113
113
|
* `sha` - *Optional* Search `sha` and `configPipelineSha` for events
|
|
114
|
+
* `groupEventId` - *Optional* Return only events with a specified groupEventId
|
|
114
115
|
* `id` - *Optional* Fetch specific event ID; alternatively can use greater than(`gt:`) or less than(`lt:`) prefix
|
|
115
116
|
|
|
116
117
|
`GET /pipelines/{id}/events?page={pageNumber}&count={countNumber}&sort={sort}&type={type}&prNum={prNumber}&sha={sha}`
|
|
@@ -34,7 +34,7 @@ module.exports = () => ({
|
|
|
34
34
|
|
|
35
35
|
handler: async (request, h) => {
|
|
36
36
|
const factory = request.server.app.pipelineFactory;
|
|
37
|
-
const { page, count, sha, prNum, id, sort, sortBy } = request.query;
|
|
37
|
+
const { page, count, sha, prNum, id, sort, sortBy, groupEventId } = request.query;
|
|
38
38
|
|
|
39
39
|
return factory
|
|
40
40
|
.get(request.params.id)
|
|
@@ -71,7 +71,11 @@ module.exports = () => ({
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
if (groupEventId) {
|
|
75
|
+
config.params.groupEventId = groupEventId;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Event id filter; can use greater than(`gt:`) or less than(`lt:`) prefix
|
|
75
79
|
if (id) {
|
|
76
80
|
config.params.id = id;
|
|
77
81
|
}
|
|
@@ -96,6 +100,7 @@ module.exports = () => ({
|
|
|
96
100
|
prNum: prNumSchema,
|
|
97
101
|
sha: shaSchema,
|
|
98
102
|
id: queryIdSchema,
|
|
103
|
+
groupEventId: pipelineIdSchema,
|
|
99
104
|
search: joi.forbidden(), // we don't support search for Pipeline list events
|
|
100
105
|
getCount: joi.forbidden() // we don't support getCount for Pipeline list events
|
|
101
106
|
})
|