@@ -120,12 +120,12 @@ type Project struct {
120120 ClosedDateUnix timeutil.TimeStamp
121121}
122122
123- // AfterLoad is invoked from XORM after setting the value of a field of
124- // this object.
123+ // AfterLoad is invoked from XORM after setting the value of a field of this object.
125124func (p * Project ) AfterLoad () {
126125 p .NumOpenIssues = p .NumIssues - p .NumClosedIssues
127126}
128127
128+ // ProjectSearchOptions are options for GetProjects
129129type ProjectSearchOptions struct {
130130 RepoID int64
131131 Page int
@@ -134,8 +134,7 @@ type ProjectSearchOptions struct {
134134 Type ProjectType
135135}
136136
137- // GetProjects returns a list of all projects that have been created in the
138- // repository
137+ // GetProjects returns a list of all projects that have been created in the repository
139138func GetProjects (opts ProjectSearchOptions ) ([]* Project , error ) {
140139
141140 projects := make ([]* Project , 0 , setting .UI .IssuePagingNum )
@@ -286,7 +285,7 @@ func countRepoClosedProjects(e Engine, repoID int64) (int64, error) {
286285 Count (new (Project ))
287286}
288287
289- // ChangeProjectStatus togggles a project between opened and closed
288+ // ChangeProjectStatus toggle a project between opened and closed
290289func ChangeProjectStatus (p * Project , isClosed bool ) error {
291290
292291 repo , err := GetRepositoryByID (p .RepoID )
@@ -443,7 +442,7 @@ func changeProjectAssign(sess *xorm.Session, doer *User, issue *Issue, oldProjec
443442 return updateIssueCols (sess , issue , "project_id" )
444443}
445444
446- // MoveIsssueAcrossProjectBoards move a card from one board to another
445+ // MoveIssueAcrossProjectBoards move a card from one board to another
447446func MoveIssueAcrossProjectBoards (issue * Issue , board * ProjectBoard ) error {
448447
449448 sess := x .NewSession ()
0 commit comments