Skip to content

Conversation

@brendan-kellam
Copy link
Contributor

@brendan-kellam brendan-kellam commented Jan 24, 2026

This PR adds the pushedAt date field in the Repo table that tracks when the repo was last pushed to, across all branches.

Related #511

Summary by CodeRabbit

  • New Features

    • Repositories now track the timestamp of the most recent commit across all branches for improved visibility.
  • Documentation

    • Added development guidelines for database migrations and package building procedures.

✏️ Tip: You can customize this high-level summary in your review settings.

@github-actions

This comment has been minimized.

@coderabbitai
Copy link

coderabbitai bot commented Jan 24, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

This PR adds a new pushedAt field to the Repo table to track the timestamp of the most recent commit across all branches. Changes include a database migration and schema update, a new git utility function to fetch the latest commit timestamp, integration into the repository indexing workflow, and documentation updates.

Changes

Cohort / File(s) Summary
Database Schema Changes
packages/db/prisma/schema.prisma, packages/db/prisma/migrations/20260124232658_add_pushed_at_to_repo/migration.sql
Added pushedAt DateTime? field to Repo model; migration adds TIMESTAMP(3) column to repository table
Git Utilities
packages/backend/src/git.ts
New exported async function getLatestCommitTimestamp() that executes git log --all -1 --format=%aI to retrieve the most recent commit timestamp across all branches, with error handling and fallback to undefined on failure
Repository Indexing
packages/backend/src/repoIndexManager.ts
Updated imports to include getLatestCommitTimestamp; integrated function calls into index completion and post-INDEX job workflows to compute and persist pushedAt alongside existing metadata
Documentation
CHANGELOG.md, CLAUDE.md
CHANGELOG entry documenting new pushedAt field; CLAUDE.md introduces development guidelines for Prisma migrations and package building

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested reviewers

  • msukkari
✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@brendan-kellam brendan-kellam merged commit ce4ee31 into main Jan 24, 2026
7 checks passed
@brendan-kellam brendan-kellam deleted the bkellam/add_pushedAt_field branch January 24, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants