Workflowbara
Bara
A resilient git commit automation tool with BullMQ workers, multi-round retry, and non-fast-forward recovery — built to keep contribution graphs green without manual intervention.
stack
- Next.js
- Express
- TypeScript
- PostgreSQL
- Redis
- BullMQ
- Docker Compose
Architecture
- BullMQ/Redis workers — per-repository queue with configurable concurrency; full git lifecycle: clone, stage, commit, push
- Multi-round auto-retry — up to 3 retry rounds with exponential backoff; repo state re-evaluated each round
- Per-branch Redis locking — distributed locks prevent concurrent operations and race conditions on the same branch
- Batch scheduling with time-staggering — commits distributed through the day with configurable jitter
- Non-fast-forward recovery — auto-rebase onto remote HEAD, atomic remap of affected commit SHAs in PostgreSQL, then retry push
- Cascade failure detection — failed rebase (merge conflicts) halts retries and sends Gmail SMTP notification with conflict details
Results
- Zero manual intervention for routine operations, including post-rebase recovery
- Non-fast-forward pushes handled automatically with SHA remapping
- Threaded Gmail notifications for failures needing human attention
- Optional commit date rewriting for flexible scheduling
Action · Send message
Hiring for a remote AI engineering role?
Contact me