This is an automated email from the ASF dual-hosted git repository.
likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 2097335f1 fix: typo of rerun-pipeline url (#4085)
2097335f1 is described below
commit 2097335f1178dbb90473eb9b1c09ceb88823fd4c
Author: Klesh Wong <[email protected]>
AuthorDate: Tue Jan 3 21:12:07 2023 +0800
fix: typo of rerun-pipeline url (#4085)
---
api/pipelines/pipelines.go | 4 ++--
api/task/task.go | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/api/pipelines/pipelines.go b/api/pipelines/pipelines.go
index b020e3f53..9b5afca46 100644
--- a/api/pipelines/pipelines.go
+++ b/api/pipelines/pipelines.go
@@ -170,13 +170,13 @@ func DownloadLogs(c *gin.Context) {
// RerunPipeline rerun all failed tasks of the specified pipeline
// @Summary rerun tasks
-// @Tags framework/pipeline
+// @Tags framework/pipelines
// @Accept application/json
// @Param pipelineId path int true "pipelineId"
// @Success 200 {object} []models.Task
// @Failure 400 {object} shared.ApiBody "Bad Request"
// @Failure 500 {object} shared.ApiBody "Internal Error"
-// @Router /pipeline/{pipelineId}/rerun [post]
+// @Router /pipelines/{pipelineId}/rerun [post]
func PostRerun(c *gin.Context) {
pipelineId := c.Param("pipelineId")
id, err := strconv.ParseUint(pipelineId, 10, 64)
diff --git a/api/task/task.go b/api/task/task.go
index 83dd9cb83..2036a5fbe 100644
--- a/api/task/task.go
+++ b/api/task/task.go
@@ -50,7 +50,7 @@ type getTaskResponse struct {
// GetTaskByPipeline return most recent tasks
// @Summary Get tasks, only the most recent tasks will be returned
-// @Tags framework/task
+// @Tags framework/tasks
// @Accept application/json
// @Param pipelineId path int true "pipelineId"
// @Success 200 {object} getTaskResponse
@@ -73,7 +73,7 @@ func GetTaskByPipeline(c *gin.Context) {
// RerunTask rerun the specified task.
// @Summary rerun task
-// @Tags framework/task
+// @Tags framework/tasks
// @Accept application/json
// @Success 200 {object} models.Task
// @Failure 400 {object} shared.ApiBody "Bad Request"