-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add core functions * added the branch change API * Add unit tests * Allow source change only in customApp * Refactor tests * Add logs * Refactor API * Add source type check * Add Spec for /orchestrator/app/ci-pipeline/patch-source
- Loading branch information
1 parent
1dc6a99
commit f1e85af
Showing
3 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
openapi: "3.0.0" | ||
info: | ||
version: 1.0.0 | ||
title: CiPipeline material change source | ||
paths: | ||
/orchestrator/app/ci-pipeline/patch-source: | ||
patch: | ||
description: update source of a ci-matrial | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/RequestBody" | ||
responses: | ||
"200": | ||
description: Successfully fetched commit info. if CommitInfo is null, then commit is not found. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
|
||
#{"appId": 16, "environmentId": 1, "source": {"type":"SOURCE_TYPE_BRANCH_FIXED", "value": "main1", "regex":""}} | ||
# Components | ||
components: | ||
schemas: | ||
RequestBody: | ||
type: object | ||
properties: | ||
appId: | ||
type: integer | ||
environmentId: | ||
type: integer | ||
source: | ||
type: object | ||
properties: | ||
type: | ||
type: string | ||
description: "SOURCE_TYPE_BRANCH_FIXED / SOURCE_TYPE_BRANCH_REGEX" | ||
value: | ||
type: string | ||
description: "name of the branch" | ||
regex: | ||
type: string | ||
description: "regular expression when type is SOURCE_TYPE_BRANCH_REGEX" |