Skip to content

Commit db2a2d3

Browse files
author
Alexander Kogay
committed
Fix docs
1 parent 6c30c98 commit db2a2d3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

models/git/protected_tag.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func GetProtectedTagByID(ctx context.Context, id int64) (*ProtectedTag, error) {
110110
return tag, nil
111111
}
112112

113-
// GetProtectedTagByNamePattern getting protected tag by name_pattern
113+
// GetProtectedTagByNamePattern gets protected tag by name_pattern
114114
func GetProtectedTagByNamePattern(ctx context.Context, repoID int64, pattern string) (*ProtectedTag, error) {
115115
tag := &ProtectedTag{NamePattern: pattern, RepoID: repoID}
116116
has, err := db.GetEngine(ctx).Get(tag)

modules/structs/repo_tag.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type CreateTagOption struct {
4141
Target string `json:"target"`
4242
}
4343

44-
// TagProtection represents an tag protection
44+
// TagProtection represents a tag protection
4545
type TagProtection struct {
4646
ID int64 `json:"id"`
4747
NamePattern string `json:"name_pattern"`

routers/api/v1/repo/tag.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func DeleteTag(ctx *context.APIContext) {
292292
ctx.Status(http.StatusNoContent)
293293
}
294294

295-
// ListTagProtection list tag protections for a repo
295+
// ListTagProtection lists tag protections for a repo
296296
func ListTagProtection(ctx *context.APIContext) {
297297
// swagger:operation GET /repos/{owner}/{repo}/tag_protections repository repoListTagProtection
298298
// ---

0 commit comments

Comments
 (0)