@@ -89,8 +89,8 @@ func (r *Repo) CreateDeployment(c *gin.Context) {
8989
9090 cf , err := r .i .GetConfig (ctx , u , re )
9191 if vo .IsConfigNotFoundError (err ) || vo .IsConfigParseError (err ) {
92- r .log .Warn ("The config is invalid." , zap .Error (err ))
93- gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The config is invalid." )
92+ r .log .Warn ("The configuration is invalid." , zap .Error (err ))
93+ gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The configuration is invalid." )
9494 return
9595 } else if err != nil {
9696 r .log .Error ("failed to get the configuration file." , zap .Error (err ))
@@ -99,8 +99,8 @@ func (r *Repo) CreateDeployment(c *gin.Context) {
9999 }
100100
101101 if ! cf .HasEnv (p .Env ) {
102- r .log .Warn ("The env is not defined in the config." , zap .Error (err ))
103- gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The env is not defined in the config." )
102+ r .log .Warn ("The environment is not defined in the config." , zap .Error (err ))
103+ gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The environment is not defined in the config." )
104104 return
105105 }
106106
@@ -111,8 +111,8 @@ func (r *Repo) CreateDeployment(c *gin.Context) {
111111 }
112112
113113 if locked , err := r .i .HasLockOfRepoForEnv (ctx , re , p .Env ); locked {
114- r .log .Info ("The env is locked." , zap .String ("env" , p .Env ))
115- gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The env is locked. You should unlock the env before deploying ." )
114+ r .log .Info ("The environment is locked." , zap .String ("env" , p .Env ))
115+ gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The environment is locked." )
116116 return
117117 } else if err != nil {
118118 r .log .Error ("It has failed to check the lock." , zap .Error (err ))
@@ -141,7 +141,7 @@ func (r *Repo) CreateDeployment(c *gin.Context) {
141141 return
142142 } else if vo .IsUnprocessibleDeploymentError (err ) {
143143 r .log .Warn ("It is unprocessable entity." , zap .Error (err ))
144- gb .ErrorResponse (c , http .StatusUnprocessableEntity , "It is unprocessable entity ." )
144+ gb .ErrorResponse (c , http .StatusUnprocessableEntity , "There is a merge conflict or the commit's status checks failed ." )
145145 return
146146 } else if err != nil {
147147 r .log .Error ("failed to deploy." , zap .Error (err ))
@@ -194,8 +194,8 @@ func (r *Repo) UpdateDeployment(c *gin.Context) {
194194
195195 cf , err := r .i .GetConfig (ctx , u , re )
196196 if vo .IsConfigNotFoundError (err ) || vo .IsConfigParseError (err ) {
197- r .log .Warn ("The config is invalid." , zap .Error (err ))
198- gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The config is invalid." )
197+ r .log .Warn ("The configuration is invalid." , zap .Error (err ))
198+ gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The configuration is invalid." )
199199 return
200200 } else if err != nil {
201201 r .log .Error ("failed to get the configuration file." , zap .Error (err ))
@@ -204,8 +204,8 @@ func (r *Repo) UpdateDeployment(c *gin.Context) {
204204 }
205205
206206 if ! cf .HasEnv (d .Env ) {
207- r .log .Warn ("The env is not defined in the config." , zap .Error (err ))
208- gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The env is not defined in the config." )
207+ r .log .Warn ("The environment is not defined in the config." , zap .Error (err ))
208+ gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The environment is not defined in the config." )
209209 return
210210 }
211211
@@ -216,8 +216,8 @@ func (r *Repo) UpdateDeployment(c *gin.Context) {
216216 }
217217
218218 if locked , err := r .i .HasLockOfRepoForEnv (ctx , re , d .Env ); locked {
219- r .log .Info ("The env is locked." , zap .String ("env" , d .Env ))
220- gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The env is locked. You should unlock the env before deploying ." )
219+ r .log .Info ("The environment is locked." , zap .String ("env" , d .Env ))
220+ gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The environment is locked." )
221221 return
222222 } else if err != nil {
223223 r .log .Error ("It has failed to check the lock." , zap .Error (err ))
@@ -236,7 +236,7 @@ func (r *Repo) UpdateDeployment(c *gin.Context) {
236236
237237 if d , err = r .i .CreateRemoteDeployment (ctx , u , re , d , cf .GetEnv (d .Env )); vo .IsUnprocessibleDeploymentError (err ) {
238238 r .log .Warn ("It is unprocessible entity." , zap .Error (err ))
239- gb .ErrorResponse (c , http .StatusUnprocessableEntity , "It is unprocessible entity ." )
239+ gb .ErrorResponse (c , http .StatusUnprocessableEntity , "There is a merge conflict or the commit's status checks failed ." )
240240 return
241241 } else if err != nil {
242242 r .log .Error ("It has failed to create the remote deployment." , zap .Error (err ))
@@ -283,8 +283,8 @@ func (r *Repo) RollbackDeployment(c *gin.Context) {
283283
284284 cf , err := r .i .GetConfig (ctx , u , re )
285285 if vo .IsConfigNotFoundError (err ) || vo .IsConfigParseError (err ) {
286- r .log .Warn ("The config is invalid." , zap .Error (err ))
287- gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The config is invalid." )
286+ r .log .Warn ("The configuration is invalid." , zap .Error (err ))
287+ gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The configuration is invalid." )
288288 return
289289 } else if err != nil {
290290 r .log .Error ("failed to get the configuration file." , zap .Error (err ))
@@ -293,8 +293,8 @@ func (r *Repo) RollbackDeployment(c *gin.Context) {
293293 }
294294
295295 if ! cf .HasEnv (d .Env ) {
296- r .log .Warn ("The env is not defined in the config ." , zap .Error (err ))
297- gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The env is not defined in the config ." )
296+ r .log .Warn ("The environment is not defined in the configuration ." , zap .Error (err ))
297+ gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The environment is not defined in the configuration ." )
298298 return
299299 }
300300
@@ -305,8 +305,8 @@ func (r *Repo) RollbackDeployment(c *gin.Context) {
305305 }
306306
307307 if locked , err := r .i .HasLockOfRepoForEnv (ctx , re , d .Env ); locked {
308- r .log .Info ("The env is locked." , zap .String ("env" , d .Env ))
309- gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The env is locked. You should unlock the env before deploying ." )
308+ r .log .Info ("The environment is locked." , zap .String ("env" , d .Env ))
309+ gb .ErrorResponse (c , http .StatusUnprocessableEntity , "The environment is locked." )
310310 return
311311 } else if err != nil {
312312 r .log .Error ("It has failed to check the lock." , zap .Error (err ))
@@ -337,7 +337,7 @@ func (r *Repo) RollbackDeployment(c *gin.Context) {
337337 return
338338 } else if vo .IsUnprocessibleDeploymentError (err ) {
339339 r .log .Warn ("It is unprocessable entity." , zap .Error (err ))
340- gb .ErrorResponse (c , http .StatusUnprocessableEntity , "It is unprocessable entity ." )
340+ gb .ErrorResponse (c , http .StatusUnprocessableEntity , "There is a merge conflict or the commit's status checks failed ." )
341341 return
342342 } else if err != nil {
343343 r .log .Error ("It has failed to rollback." , zap .Error (err ))
0 commit comments