---
title: "Automating cherry-picks between OSS and private forks — PlanetScale"
description: "PlanetScale replaced its weekly cron-based cherry-picking and its conflict-replaying git-replay tool with a stateful Vitess cherry-pick bot that continuously syncs OSS Vitess into a private fork."
url: "https://swe.quest/articles/automating-cherry-picks-between-oss-and-private-forks-planetscale-59bbc498348c8501"
canonical: "https://planetscale.com/blog/automating-cherry-picks-between-oss-and-private-forks"
source: "PlanetScale"
published: "2025-01-14"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["version-control","developer-productivity","ci-cd","open-source"]
---

# Automating cherry-picks between OSS and private forks — PlanetScale

A post on [PlanetScale](https://swe.quest/sources/planetscale.md), published 2025-01-14, 6 min read, Case study. Original: [https://planetscale.com/blog/automating-cherry-picks-between-oss-and-private-forks](https://planetscale.com/blog/automating-cherry-picks-between-oss-and-private-forks)

## Summary

PlanetScale replaced its weekly cron-based cherry-picking and its conflict-replaying git-replay tool with a stateful Vitess cherry-pick bot that continuously syncs OSS Vitess into a private fork. The bot runs hourly in GitHub Actions and stores state in a PlanetScale database. It fetches merged PRs with go-github and cherry-picks them from OSS main into private upstream, opening draft PRs labeled as conflicts when they don't apply cleanly. Backports to private latest-x.0 branches are triggered by labels. Weekly reconciliation checks flag missed cherry-picks, open PRs and non-backport merges, giving the team confidence to rely on the bot for over a year and a half.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Version control](https://swe.quest/tags/version-control.md) (Engineering practices)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- Git cherry-pick and rebase
- GitHub Actions ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- release branching

## Keywords

Vitess, GitHub Actions, go-github, git-replay, PlanetScale

## Related posts

- [Simple trick to save environment and money when using GitHub Actions](https://swe.quest/articles/simple-trick-to-save-environment-and-money-when-using-github-actions-14be6ffdb9f9e911.md): Turso · 2024-07-30 · Medium · 2 min read · CI/CD, Cost optimization
  GitHub Actions keeps running workflows for outdated pull request commits until they finish or fail.
- [Federation Platform and Privacy Waves: How Meta distributes compliance-related tasks at scale](https://swe.quest/articles/federation-platform-and-privacy-waves-how-meta-distributes-compliance-related-7d6db4209cfb8b19.md): Meta Engineering · 2025-08-11 · Medium · 9 min read · Privacy, Developer productivity, Engineering management, Refactoring & migrations
  Meta's Federation Platform turns large compliance initiatives into code-defined workstreams that scrape privacy flags, resolve asset ownership via a central catalog, group related flags, and either file tasks or send automated diffs, with resolution logic that auto-closes or reopens tasks.
- [How River takes security work from a fix to merge](https://swe.quest/articles/how-river-takes-security-work-from-a-fix-to-merge-8e7d762a71a196e6.md): Shopify Engineering · 2026-09-02 · Medium · 9 min read · AI agents, Supply chain security, Security, Developer productivity
  River, Shopify's Slack-based AI agent, drives dependency and application vulnerability fixes from patch to verified closure.
- [20× the CI traffic without getting slower: How we rebuilt Git serving at Datadog](https://swe.quest/articles/20-the-ci-traffic-without-getting-slower-how-we-rebuilt-git-serving-at-datadog-9f7156670a81ca53.md): Datadog Engineering · 2026-08-19 · Medium · 13 min read · Version control, CI/CD, Scaling, Caching, Replication
  Datadog replaced CI fetches from a replicated Gitaly/Praefect cluster with gitretriever, a fleet of independent Git mirrors that poll GitHub per changed ref and fan packfiles out to autoscaled relays over a gRPC signaling stream plus HTTP.
- [How We’re Building Git for Infrastructure](https://swe.quest/articles/how-we-re-building-git-for-infrastructure-bcbbd9a523c86b11.md): Railway · 2023-09-28 · Medium · 9 min read · Configuration management, Testing, PostgreSQL, System design, Deployment
  Railway's Changesets let teams fork an infrastructure environment like a Git branch, record each config or service change as a changeset, and merge it back into the parent environment.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
