Skip to content

Commit 1a8ab63

Browse files
adelowolafriks
authored andcommitted
show user who created the repository instead of the organization in action feed (#5948) (#5956)
1 parent 477b4de commit 1a8ab63

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

models/repo.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ import (
3535
"github.com/Unknwon/com"
3636
"github.com/go-xorm/builder"
3737
"github.com/go-xorm/xorm"
38-
"github.com/mcuadros/go-version"
39-
"gopkg.in/ini.v1"
38+
version "github.com/mcuadros/go-version"
39+
ini "gopkg.in/ini.v1"
4040
)
4141

4242
var repoWorkingPool = sync.NewExclusivePool()
@@ -1346,14 +1346,14 @@ func createRepository(e *xorm.Session, doer, u *User, repo *Repository) (err err
13461346

13471347
if err = watchRepo(e, doer.ID, repo.ID, true); err != nil {
13481348
return fmt.Errorf("watchRepo: %v", err)
1349-
} else if err = newRepoAction(e, u, repo); err != nil {
1349+
} else if err = newRepoAction(e, doer, repo); err != nil {
13501350
return fmt.Errorf("newRepoAction: %v", err)
13511351
}
13521352

13531353
return nil
13541354
}
13551355

1356-
// CreateRepository creates a repository for the user/organization u.
1356+
// CreateRepository creates a repository for the user/organization.
13571357
func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err error) {
13581358
if !doer.IsAdmin && !u.CanCreateRepo() {
13591359
return nil, ErrReachLimitOfRepo{u.MaxRepoCreation}

0 commit comments

Comments
 (0)