mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Wall feed
This commit is contained in:
@@ -27,6 +27,10 @@ type Commitstore interface {
|
||||
// from the datastore accessible to the specified user.
|
||||
GetCommitListUser(user *model.User) ([]*model.CommitRepo, error)
|
||||
|
||||
// GetCommitListActivity retrieves an ungrouped list of latest commits
|
||||
// from the datastore accessible to the specified user.
|
||||
GetCommitListActivity(user *model.User) ([]*model.CommitRepo, error)
|
||||
|
||||
// PostCommit saves a commit in the datastore.
|
||||
PostCommit(commit *model.Commit) error
|
||||
|
||||
@@ -72,6 +76,12 @@ func GetCommitListUser(c context.Context, user *model.User) ([]*model.CommitRepo
|
||||
return FromContext(c).GetCommitListUser(user)
|
||||
}
|
||||
|
||||
// GetCommitListActivity retrieves an ungrouped list of latest commits
|
||||
// from the datastore accessible to the specified user.
|
||||
func GetCommitListActivity(c context.Context, user *model.User) ([]*model.CommitRepo, error) {
|
||||
return FromContext(c).GetCommitListActivity(user)
|
||||
}
|
||||
|
||||
// PostCommit saves a commit in the datastore.
|
||||
func PostCommit(c context.Context, commit *model.Commit) error {
|
||||
return FromContext(c).PostCommit(commit)
|
||||
|
||||
Reference in New Issue
Block a user