Skip to content

Commit 8fd54f2

Browse files
committed
update swagger docu
1 parent 8cfb047 commit 8fd54f2

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

routers/api/v1/repo/action.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -912,14 +912,19 @@ func GetWorkflowRuns(ctx *context.APIContext) {
912912
// description: name of the repository
913913
// type: string
914914
// required: true
915-
// - name: run
916-
// in: path
917-
// description: runid of the workflow run
918-
// type: integer
919-
// required: true
920-
// - name: name
915+
// - name: event
921916
// in: query
922-
// description: name of the artifact
917+
// description: workflow event name
918+
// type: string
919+
// required: false
920+
// - name: branch
921+
// in: query
922+
// description: workflow branch
923+
// type: string
924+
// required: false
925+
// - name: status
926+
// in: query
927+
// description: workflow status (pending, queued, in_progress, failure, success, skipped)
923928
// type: string
924929
// required: false
925930
// responses:
@@ -1042,11 +1047,6 @@ func GetWorkflowJobs(ctx *context.APIContext) {
10421047
// description: runid of the workflow run
10431048
// type: integer
10441049
// required: true
1045-
// - name: name
1046-
// in: query
1047-
// description: name of the artifact
1048-
// type: string
1049-
// required: false
10501050
// responses:
10511051
// "200":
10521052
// "$ref": "#/responses/ArtifactsList"

templates/swagger/v1_json.tmpl

Lines changed: 12 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)