瀏覽代碼

linter and spelling nit

Ian Edwards 2 年之前
父節點
當前提交
bf97a36e72
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 3 2
      internal/models/github_webhook.go
  2. 1 1
      internal/repository/gorm/migrate.go

+ 3 - 2
internal/models/github_webhook.go

@@ -5,10 +5,11 @@ import (
 	"gorm.io/gorm"
 	"gorm.io/gorm"
 )
 )
 
 
-type GithhubWebhook struct {
+// GithubWebhook represents a webhook that is created on Github which can trigger actions in Porter for the specified project/cluster
+type GithubWebhook struct {
 	gorm.Model
 	gorm.Model
 
 
-	// ID is a UUID for the Revision
+	// ID is a UUID for the webhook
 	ID uuid.UUID `gorm:"type:uuid;primaryKey" json:"id"`
 	ID uuid.UUID `gorm:"type:uuid;primaryKey" json:"id"`
 
 
 	// ClusterID is the ID of the cluster that the webhook is associated with.
 	// ClusterID is the ID of the cluster that the webhook is associated with.

+ 1 - 1
internal/repository/gorm/migrate.go

@@ -65,7 +65,7 @@ func AutoMigrate(db *gorm.DB, debug bool) error {
 		&models.AppRevision{},
 		&models.AppRevision{},
 		&models.DeploymentTarget{},
 		&models.DeploymentTarget{},
 		&models.AppTemplate{},
 		&models.AppTemplate{},
-		&models.GithhubWebhook{},
+		&models.GithubWebhook{},
 		&ints.KubeIntegration{},
 		&ints.KubeIntegration{},
 		&ints.BasicIntegration{},
 		&ints.BasicIntegration{},
 		&ints.OIDCIntegration{},
 		&ints.OIDCIntegration{},