diff options
author | luzpaz <luzpaz@users.noreply.github.com> | 2022-09-07 14:40:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 14:40:36 -0400 |
commit | cb3b3e519f4689821476474214a49a8ae7cd4f58 (patch) | |
tree | bfb6aa01b8c69ccbe130cc91b7d7b42109119274 /models | |
parent | 5c70e6aff0da5dab9e751c0e5426533e5a5e6ee9 (diff) | |
download | gitea-cb3b3e519f4689821476474214a49a8ae7cd4f58.tar.gz gitea-cb3b3e519f4689821476474214a49a8ae7cd4f58.zip |
Fix various typos (#21103)
Found via `codespell -q 3 -S
./options/locale,./options/license,./public/vendor,./web_src/fomantic -L
actived,allways,attachements,ba,befores,commiter,pullrequest,pullrequests,readby,splitted,te,unknwon`
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'models')
-rw-r--r-- | models/activities/repo_activity.go | 2 | ||||
-rw-r--r-- | models/packages/package_test.go | 2 | ||||
-rw-r--r-- | models/repo/repo.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/models/activities/repo_activity.go b/models/activities/repo_activity.go index 684ceee272..3052d65e83 100644 --- a/models/activities/repo_activity.go +++ b/models/activities/repo_activity.go @@ -28,7 +28,7 @@ type ActivityAuthorData struct { Commits int64 `json:"commits"` } -// ActivityStats represets issue and pull request information. +// ActivityStats represents issue and pull request information. type ActivityStats struct { OpenedPRs issues_model.PullRequestList OpenedPRAuthorCount int64 diff --git a/models/packages/package_test.go b/models/packages/package_test.go index 3d3a2333ba..915ef15f91 100644 --- a/models/packages/package_test.go +++ b/models/packages/package_test.go @@ -49,7 +49,7 @@ func TestHasOwnerPackages(t *testing.T) { assert.NotNil(t, pv) assert.NoError(t, err) - // A package with an internal package version gets automaticaly cleaned up and should return false + // A package with an internal package version gets automatically cleaned up and should return false has, err = packages_model.HasOwnerPackages(db.DefaultContext, owner.ID) assert.False(t, has) assert.NoError(t, err) diff --git a/models/repo/repo.go b/models/repo/repo.go index 9a582c8fe1..4fd97dcd1b 100644 --- a/models/repo/repo.go +++ b/models/repo/repo.go @@ -27,7 +27,7 @@ import ( "xorm.io/builder" ) -// ErrUserDoesNotHaveAccessToRepo represets an error where the user doesn't has access to a given repo. +// ErrUserDoesNotHaveAccessToRepo represents an error where the user doesn't has access to a given repo. type ErrUserDoesNotHaveAccessToRepo struct { UserID int64 RepoName string |