Skip to content

Commit 3f0cafd

Browse files
committed
fix swagger
1 parent f7a1dca commit 3f0cafd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

routers/api/v1/repo/action.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ func ListActionTasks(ctx *context.APIContext) {
588588
ctx.JSON(http.StatusOK, &res)
589589
}
590590

591-
// GetArtifacts Lists all artifacts for a repository
591+
// GetArtifacts Lists all artifacts for a repository.
592592
func GetArtifactsOfRun(ctx *context.APIContext) {
593593
// swagger:operation GET /repos/{owner}/{repo}/actions/artifacts repository getArtifactsOfRun
594594
// ---
@@ -650,7 +650,7 @@ func GetArtifactsOfRun(ctx *context.APIContext) {
650650
ctx.JSON(http.StatusOK, &res)
651651
}
652652

653-
// GetArtifacts Lists all artifacts for a repository
653+
// GetArtifacts Lists all artifacts for a repository.
654654
func GetArtifacts(ctx *context.APIContext) {
655655
// swagger:operation GET /repos/{owner}/{repo}/actions/artifacts repository getArtifacts
656656
// ---
@@ -713,7 +713,7 @@ func GetArtifacts(ctx *context.APIContext) {
713713
func GetArtifact(ctx *context.APIContext) {
714714
// swagger:operation GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id} repository getArtifact
715715
// ---
716-
// summary: Gets a specific artifact for a workflow run.
716+
// summary: Gets a specific artifact for a workflow run
717717
// produces:
718718
// - application/json
719719
// parameters:
@@ -778,7 +778,7 @@ func GetArtifact(ctx *context.APIContext) {
778778
func DownloadArtifact(ctx *context.APIContext) {
779779
// swagger:operation GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/zip repository downloadArtifact
780780
// ---
781-
// summary: Downloads a specific artifact for a workflow run redirects to blob url.
781+
// summary: Downloads a specific artifact for a workflow run redirects to blob url
782782
// produces:
783783
// - application/json
784784
// parameters:
@@ -849,7 +849,7 @@ func DownloadArtifact(ctx *context.APIContext) {
849849
func DownloadArtifactRaw(ctx *context.APIContext) {
850850
// swagger:operation GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/zip/raw repository downloadArtifactRaw
851851
// ---
852-
// summary: Downloads a specific artifact for a workflow run directly.
852+
// summary: Downloads a specific artifact for a workflow run directly
853853
// produces:
854854
// - application/json
855855
// parameters:

templates/swagger/v1_json.tmpl

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

0 commit comments

Comments
 (0)