Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: fix some typos (#453)
Akinori Yamadad8ab6a1fac8e
diff --git a/api/activity.go b/api/activity.goindex b53999620d..ca9a899683 100644--- a/api/activity.go+++ b/api/activity.go@@ -45,7 +45,7 @@ const (// ActivityProjectRepositoryPush is the type for pushing repositories.ActivityProjectRepositoryPush ActivityType = "bb.project.repository.push"- // ActivityProjectDatabaseTransfer is the type for transfering databases.+ // ActivityProjectDatabaseTransfer is the type for transferring databases.ActivityProjectDatabaseTransfer ActivityType = "bb.project.database.transfer"// ActivityProjectMemberCreate is the type for creating project members.ActivityProjectMemberCreate ActivityType = "bb.project.member.create"diff --git a/api/anomaly.go b/api/anomaly.goindex a3a6443171..8c5168dfb9 100644--- a/api/anomaly.go+++ b/api/anomaly.go@@ -23,7 +23,7 @@ const (AnomalyDatabaseSchemaDrift AnomalyType = "bb.anomaly.database.schema.drift")-// AnomalySeverity is the severity of anamoly.+// AnomalySeverity is the severity of anomaly.type AnomalySeverity stringconst (@@ -146,7 +146,7 @@ func (find *AnomalyFind) String() string {return string(str)}-// AnomalyArchive is the API message for archiving an anomoly.+// AnomalyArchive is the API message for archiving an anomaly.type AnomalyArchive struct {InstanceID *intDatabaseID *intdiff --git a/api/repository.go b/api/repository.goindex 7444266440..29e33388a9 100644--- a/api/repository.go+++ b/api/repository.go@@ -29,7 +29,7 @@ type Repository struct {WebURL string `jsonapi:"attr,webUrl"`BranchFilter string `jsonapi:"attr,branchFilter"`BaseDirectory string `jsonapi:"attr,baseDirectory"`- // The file path template for matching the commited migration script.+ // The file path template for matching the committed migration script.FilePathTemplate string `jsonapi:"attr,filePathTemplate"`// The file path template for storing the latest schema auto-generated by Bytebase after migration.// If empty, then Bytebase won't auto generate it.@@ -117,7 +117,7 @@ type RepositoryPatch struct {// RepositoryDelete is the API message for deleting a repository.type RepositoryDelete struct {// Related fields- // When deleting the repository, we need to update the correponding project workflow type to "UI",+ // When deleting the repository, we need to update the corresponding project workflow type to "UI",// thus we use ProjectID here.ProjectID intdiff --git a/common/error.go b/common/error.goindex c8a735ec94..d96277d61a 100644--- a/common/error.go+++ b/common/error.go@@ -58,7 +58,7 @@ type Error struct {// Machine-readable error code.Code Code- // Embeded error.+ // Embedded error.Err error}diff --git a/plugin/advisor/mysql/mysql_migration_compatibility_advisor.go b/plugin/advisor/mysql/mysql_migration_compatibility_advisor.goindex 88824c9f14..c1259ba9de 100644--- a/plugin/advisor/mysql/mysql_migration_compatibility_advisor.go+++ b/plugin/advisor/mysql/mysql_migration_compatibility_advisor.go@@ -19,7 +19,7 @@ func init() {advisor.Register(db.TiDB, advisor.MySQLMigrationCompatibility, &CompatibilityAdvisor{})}-// CompatibilityAdvisor is the advisor checking for schema backward compatability.+// CompatibilityAdvisor is the advisor checking for schema backward compatibility.type CompatibilityAdvisor struct {}diff --git a/server/anomaly_scanner.go b/server/anomaly_scanner.goindex 072bae4223..b3f63cd29c 100644--- a/server/anomaly_scanner.go+++ b/server/anomaly_scanner.go@@ -455,7 +455,7 @@ func (s *AnomalyScanner) checkBackupAnomaly(ctx context.Context, instance *api.I// Check backup missing{var backupMissingAnomalyPayload *api.AnomalyDatabaseBackupMissingPayload- // The anomaly fires if backup is enabled, however no succesful backup has been taken during the period.+ // The anomaly fires if backup is enabled, however no successful backup has been taken during the period.if backupSetting != nil && backupSetting.Enabled {expectedSchedule := api.BackupPlanPolicyScheduleWeeklybackupMaxAge := time.Duration(7*24) * time.Hourdiff --git a/server/webhook.go b/server/webhook.goindex 249f9ecb15..e18032aad7 100644--- a/server/webhook.go+++ b/server/webhook.go@@ -258,7 +258,7 @@ func (s *Server) createSchemaUpdateIssue(ctx context.Context, repository *api.RefilteredDatabaseList := []*api.Database{}if mi.Environment != "" {for _, database := range databaseList {- // Environment name comparision is case insensitive+ // Environment name comparison is case insensitiveif strings.EqualFold(database.Instance.Environment.Name, mi.Environment) {filteredDatabaseList = append(filteredDatabaseList, database)}