Skip to content

Commit ac27e5b

Browse files
committed
Add comments to exported structs
1 parent e649a36 commit ac27e5b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internal/github/repo.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ import (
1010
"time"
1111
)
1212

13+
// RepositoryInfo contains few details about a given repository
1314
type RepositoryInfo struct {
14-
Name string
15+
// Name is the repository name
16+
Name string
17+
18+
// IsEmpty determines whether the GitHub repository is empty or not
1519
IsEmpty bool
1620
}
1721

@@ -72,6 +76,7 @@ func GetOrganizationRepos(organization string, query string, batchSize int) ([]R
7276
return orgRepositories, nil
7377
}
7478

79+
// RepositoryFragment is exported so as to be used in GraphQL APIs
7580
type RepositoryFragment struct {
7681
Name string
7782
IsEmpty bool

0 commit comments

Comments
 (0)