From 2a80e59662e5b938e57f89511fb244a368b17cb9 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Thu, 2 Mar 2023 17:26:22 -0600 Subject: [PATCH 1/3] fix: typo in swagger param description --- api/step.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/step.go b/api/step.go index acde0f666..ba7ec6119 100644 --- a/api/step.go +++ b/api/step.go @@ -292,7 +292,7 @@ func GetSteps(c *gin.Context) { // type: integer // - in: path // name: step -// description: Build number +// description: Step number // required: true // type: string // security: From e2b34cd39558d89e320f681c2f548fc0c40422c8 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Fri, 3 Mar 2023 01:20:19 -0600 Subject: [PATCH 2/3] fix: typos in misc comments --- api/deployment.go | 2 +- compiler/native/substitute.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/deployment.go b/api/deployment.go index 293dbbc6e..82433b613 100644 --- a/api/deployment.go +++ b/api/deployment.go @@ -212,7 +212,7 @@ func GetDeployments(c *gin.Context) { return } - // send API call to capture the list of steps for the build + // send API call to capture the list of deployments for the repo d, err := scm.FromContext(c).GetDeploymentList(u, r, page, perPage) if err != nil { retErr := fmt.Errorf("unable to get deployments for %s: %w", r.GetFullName(), err) diff --git a/compiler/native/substitute.go b/compiler/native/substitute.go index 35f458b81..fcfd2b263 100644 --- a/compiler/native/substitute.go +++ b/compiler/native/substitute.go @@ -16,7 +16,7 @@ import ( ) // SubstituteStages replaces every declared environment -// variable with it's corresponding value for each step +// variable with its corresponding value for each step // in every stage in a yaml configuration. func (c *client) SubstituteStages(s types.StageSlice) (types.StageSlice, error) { // iterate through all stages @@ -34,7 +34,7 @@ func (c *client) SubstituteStages(s types.StageSlice) (types.StageSlice, error) } // SubstituteSteps replaces every declared environment -// variable with it's corresponding value for each step +// variable with its corresponding value for each step // in a yaml configuration. func (c *client) SubstituteSteps(s types.StepSlice) (types.StepSlice, error) { // iterate through all steps From 424d73c07c8e35891a51e46e3b0f325f11faa065 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Thu, 23 Mar 2023 20:46:25 -0500 Subject: [PATCH 3/3] fix: typos in mock/ comments --- mock/server/stream.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mock/server/stream.go b/mock/server/stream.go index 05209fb1a..5598992a3 100644 --- a/mock/server/stream.go +++ b/mock/server/stream.go @@ -10,12 +10,12 @@ import ( "github.com/gin-gonic/gin" ) -// postServiceStream returns a nock response for an http POST. +// postServiceStream returns a mock response for an http POST. func postServiceStream(c *gin.Context) { c.JSON(http.StatusNoContent, nil) } -// postStepStream returns a nock response for an http POST. +// postStepStream returns a mock response for an http POST. func postStepStream(c *gin.Context) { c.JSON(http.StatusNoContent, nil) }