Skip to content

Commit 64d399c

Browse files
authored
fix(API): Add missing branch parameter to job comment endpoints #STRINGS-988 (#724)
1 parent 26a798c commit 64d399c

File tree

10 files changed

+46
-78
lines changed

10 files changed

+46
-78
lines changed

doc/compiled.json

Lines changed: 25 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4848,6 +4848,15 @@
48484848
"type": "string"
48494849
}
48504850
},
4851+
"branch": {
4852+
"name": "branch",
4853+
"in": "query",
4854+
"description": "Branch to use",
4855+
"schema": {
4856+
"type": "string"
4857+
},
4858+
"example": "my-feature-branch"
4859+
},
48514860
"page": {
48524861
"in": "query",
48534862
"name": "page",
@@ -16903,13 +16912,7 @@
1690316912
"$ref": "#/components/parameters/per_page"
1690416913
},
1690516914
{
16906-
"description": "specify the branch to use",
16907-
"example": "my-feature-branch",
16908-
"name": "branch",
16909-
"in": "query",
16910-
"schema": {
16911-
"type": "string"
16912-
}
16915+
"$ref": "#/components/parameters/branch"
1691316916
}
1691416917
],
1691516918
"responses": {
@@ -17116,13 +17119,7 @@
1711617119
"$ref": "#/components/parameters/id"
1711717120
},
1711817121
{
17119-
"description": "specify the branch to use",
17120-
"example": "my-feature-branch",
17121-
"name": "branch",
17122-
"in": "query",
17123-
"schema": {
17124-
"type": "string"
17125-
}
17122+
"$ref": "#/components/parameters/branch"
1712617123
}
1712717124
],
1712817125
"responses": {
@@ -17318,13 +17315,7 @@
1731817315
"$ref": "#/components/parameters/id"
1731917316
},
1732017317
{
17321-
"description": "specify the branch to use",
17322-
"example": "my-feature-branch",
17323-
"name": "branch",
17324-
"in": "query",
17325-
"schema": {
17326-
"type": "string"
17327-
}
17318+
"$ref": "#/components/parameters/branch"
1732817319
}
1732917320
],
1733017321
"responses": {
@@ -26846,13 +26837,7 @@
2684626837
"$ref": "#/components/parameters/id"
2684726838
},
2684826839
{
26849-
"description": "specify the branch to use",
26850-
"example": "my-feature-branch",
26851-
"name": "branch",
26852-
"in": "query",
26853-
"schema": {
26854-
"type": "string"
26855-
}
26840+
"$ref": "#/components/parameters/branch"
2685626841
}
2685726842
],
2685826843
"responses": {
@@ -26974,6 +26959,11 @@
2697426959
"description": "Comment message",
2697526960
"type": "string",
2697626961
"example": "Some message..."
26962+
},
26963+
"branch": {
26964+
"description": "Branch name for the job",
26965+
"type": "string",
26966+
"example": "my-feature-branch"
2697726967
}
2697826968
}
2697926969
}
@@ -27003,13 +26993,7 @@
2700326993
"$ref": "#/components/parameters/id"
2700426994
},
2700526995
{
27006-
"description": "specify the branch to use",
27007-
"example": "my-feature-branch",
27008-
"name": "branch",
27009-
"in": "query",
27010-
"schema": {
27011-
"type": "string"
27012-
}
26996+
"$ref": "#/components/parameters/branch"
2701326997
}
2701426998
],
2701526999
"responses": {
@@ -27058,13 +27042,7 @@
2705827042
"$ref": "#/components/parameters/job_id"
2705927043
},
2706027044
{
27061-
"description": "specify the branch to use",
27062-
"example": "my-feature-branch",
27063-
"name": "branch",
27064-
"in": "query",
27065-
"schema": {
27066-
"type": "string"
27067-
}
27045+
"$ref": "#/components/parameters/branch"
2706827046
},
2706927047
{
2707027048
"description": "Order direction. Can be one of: asc, desc.",
@@ -27201,6 +27179,11 @@
2720127179
"description": "Job comment message",
2720227180
"type": "string",
2720327181
"example": "Some message..."
27182+
},
27183+
"branch": {
27184+
"description": "Branch name for the job",
27185+
"type": "string",
27186+
"example": "my-feature-branch"
2720427187
}
2720527188
}
2720627189
}

parameters.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,13 @@ tag:
207207
required: false
208208
schema:
209209
type: string
210+
branch:
211+
name: branch
212+
in: query
213+
description: Branch to use
214+
schema:
215+
type: string
216+
example: my-feature-branch
210217
page:
211218
in: query
212219
name: page

paths/job_comments/create.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,8 @@ requestBody:
5555
description: Job comment message
5656
type: string
5757
example: Some message...
58+
branch:
59+
description: Branch name for the job
60+
type: string
61+
example: my-feature-branch
5862
x-cli-version: '2.5'

paths/job_comments/destroy.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ parameters:
99
- "$ref": "../../parameters.yaml#/project_id"
1010
- "$ref": "../../parameters.yaml#/job_id"
1111
- "$ref": "../../parameters.yaml#/id"
12-
- description: specify the branch to use
13-
example: my-feature-branch
14-
name: branch
15-
in: query
16-
schema:
17-
type: string
12+
- "$ref": "../../parameters.yaml#/branch"
1813
responses:
1914
'204':
2015
"$ref": "../../responses.yaml#/204"

paths/job_comments/index.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ parameters:
88
- "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
99
- "$ref": "../../parameters.yaml#/project_id"
1010
- "$ref": "../../parameters.yaml#/job_id"
11-
- description: specify the branch to use
12-
example: my-feature-branch
13-
name: branch
14-
in: query
15-
schema:
16-
type: string
11+
- "$ref": "../../parameters.yaml#/branch"
1712
- description: 'Order direction. Can be one of: asc, desc.'
1813
name: order
1914
in: query

paths/job_comments/show.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ parameters:
99
- "$ref": "../../parameters.yaml#/project_id"
1010
- "$ref": "../../parameters.yaml#/job_id"
1111
- "$ref": "../../parameters.yaml#/id"
12-
- description: specify the branch to use
13-
example: my-feature-branch
14-
name: branch
15-
in: query
16-
schema:
17-
type: string
12+
- "$ref": "../../parameters.yaml#/branch"
1813
responses:
1914
'200':
2015
description: OK

paths/job_comments/update.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,8 @@ requestBody:
5757
description: Comment message
5858
type: string
5959
example: Some message...
60+
branch:
61+
description: Branch name for the job
62+
type: string
63+
example: my-feature-branch
6064
x-cli-version: '2.5'

paths/job_locales/destroy.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ parameters:
99
- "$ref": "../../parameters.yaml#/project_id"
1010
- "$ref": "../../parameters.yaml#/job_id"
1111
- "$ref": "../../parameters.yaml#/id"
12-
- description: specify the branch to use
13-
example: my-feature-branch
14-
name: branch
15-
in: query
16-
schema:
17-
type: string
12+
- "$ref": "../../parameters.yaml#/branch"
1813
responses:
1914
'204':
2015
"$ref": "../../responses.yaml#/204"

paths/job_locales/index.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@ parameters:
1010
- "$ref": "../../parameters.yaml#/job_id"
1111
- "$ref": "../../parameters.yaml#/page"
1212
- "$ref": "../../parameters.yaml#/per_page"
13-
- description: specify the branch to use
14-
example: my-feature-branch
15-
name: branch
16-
in: query
17-
schema:
18-
type: string
13+
- "$ref": "../../parameters.yaml#/branch"
1914
responses:
2015
'200':
2116
description: OK

paths/job_locales/show.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ parameters:
99
- "$ref": "../../parameters.yaml#/project_id"
1010
- "$ref": "../../parameters.yaml#/job_id"
1111
- "$ref": "../../parameters.yaml#/id"
12-
- description: specify the branch to use
13-
example: my-feature-branch
14-
name: branch
15-
in: query
16-
schema:
17-
type: string
12+
- "$ref": "../../parameters.yaml#/branch"
1813
responses:
1914
'200':
2015
description: OK

0 commit comments

Comments
 (0)