Skip to main content
The Activity API provides access to repository activity feeds and user timelines.

Endpoints

List Repository Activity

const activity = await client.activity.listForRepo.query({
  repoId: 'repo_123',
  limit: 50,
  cursor: 'cursor_abc', // For pagination
});

List User Activity

const activity = await client.activity.listForUser.query({
  userId: 'user_456',
  limit: 50,
});

Get Activity Entry

const entry = await client.activity.get.query({
  id: 'activity_789',
});

Activity Types

TypeDescription
pushCommits pushed
pr_openedPR opened
pr_mergedPR merged
pr_closedPR closed
issue_openedIssue opened
issue_closedIssue closed
commentComment added
reviewReview submitted

Activity Schema

interface Activity {
  id: string;
  type: string;
  actor: { id: string; username: string };
  repository: { id: string; name: string };
  details: Record<string, any>;
  createdAt: string;
}