Browse Source

linter and spelling nit

Ian Edwards 2 years ago
parent
commit
bf97a36e72
2 changed files with 4 additions and 3 deletions
  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"
 )
 
-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
 
-	// ID is a UUID for the Revision
+	// ID is a UUID for the webhook
 	ID uuid.UUID `gorm:"type:uuid;primaryKey" json:"id"`
 
 	// 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.DeploymentTarget{},
 		&models.AppTemplate{},
-		&models.GithhubWebhook{},
+		&models.GithubWebhook{},
 		&ints.KubeIntegration{},
 		&ints.BasicIntegration{},
 		&ints.OIDCIntegration{},