Confirgurable default branch prefixes/names
https://posthog.slack.com/archives/C09G8Q32R6F/p1776104269621289
Allow users to set the default branch name to be prefixed with nothing/something different than posthog-code/.
https://posthog.slack.com/archives/C09G8Q32R6F/p1776104269621289 +1 here
Hi ! I'd like to work on this issue.I'll look into making the default branch prefix configurable and add the necessary tests.
I'd like to work on this issue — making the default branch prefix configurable (currently hardcoded as posthog-code/). I'll add a setting that lets users customize or remove the prefix, wire it through the branch naming flow, and add tests.
Hi team! I see the current PRs have stalled out on this. I'm a Full Stack Engineer and can implement this configurable branch setting cleanly with full unit tests today. Please assign this to me!
Hi PostHog team — I’m interested in contributing to this. I found prior PRs #80141 and #89642, both closed, and earlier comments from contributors expressing interest. Is the configurable prefix change still wanted? If so, could you point me to the intended scope or any follow-up context from those PRs? I can then prepare a focused PR linked here. I understand issues aren’t typically assigned to individual contributors.
PostHog self-driving picked up this issue. Status: Research is done.
Somebody may already be working on it, so ask before you start a fix.
Report (team access only): https://us.posthog.com/project/2/inbox/reports/01a179a5-00a2-765a-b655-42c4e37eff7c?link_source=github_comment
Thanks for the heads-up. Could you share who is working on this, or point me to the relevant PR or branch so I can avoid duplicating their work? I’ll hold off on implementation until I know.
@jonathanlab let me know if you need this done
Hi, I'd like to pick this up. The two earlier PRs for this (#80141 and #89642) were closed by the stale bot without ever getting a review, so as far as I can tell the work is still open.
Plan: add a branch prefix setting to the desktop app (settings store plus the General settings section), thread it through branchName / deriveBranchName in packages/core, keep posthog-code/ as the default, and cover custom and empty prefixes with tests. PR to follow shortly.
Hi @jonathanlab 👋
I saw the previous PRs (#80141 and #89642) for configurable branch prefixes were closed by the stale bot without review.
I have consolidated and rebased the implementation across packages/core (deriveBranchName with configurable prefix and empty-string support), the desktop settings store (useSettingsStore with partialize persistence), and the General Settings UI, along with unit tests covering default (posthog/), custom, and bare branch names.
I'm ready to open a clean PR for this today. Let me know if there's any specific feedback from earlier discussions to incorporate!