@@ -1,7 +1,7 @@
// Package changes provides a changes service definition.
package changes
// Package change provides a change service definition.
package change
import (
"context"
"time"
@@ -17,11 +17,11 @@ type Service interface {
Count(ctx context.Context, repo string, opt ListOptions) (uint64, error)
// Get a change.
Get(ctx context.Context, repo string, id uint64) (Change, error)
// ListTimeline lists timeline items (changes.Comment, changes.Review, changes.TimelineItem) for specified change id.
// ListTimeline lists timeline items (change.Comment, change.Review, change.TimelineItem) for specified change id.
ListTimeline(ctx context.Context, repo string, id uint64, opt *ListTimelineOptions) ([]interface{}, error)
// ListCommits lists change commits.
ListCommits(ctx context.Context, repo string, id uint64) ([]Commit, error)
// Get a change diff.
GetDiff(ctx context.Context, repo string, id uint64, opt *GetDiffOptions) ([]byte, error)