posthog icon indicating copy to clipboard operation
posthog copied to clipboard

Confirgurable default branch prefixes/names

Open jonathanlab opened this issue 7 months ago • 10 comments

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/.

jonathanlab avatar Apr 14 '26 11:04 jonathanlab

https://posthog.slack.com/archives/C09G8Q32R6F/p1776104269621289 +1 here

jonathanlab avatar Apr 21 '26 15:04 jonathanlab

Hi ! I'd like to work on this issue.I'll look into making the default branch prefix configurable and add the necessary tests.

oindreela04 avatar Aug 08 '26 14:08 oindreela04

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.

waterWang avatar Aug 08 '26 16:08 waterWang

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!

oladapo-elegbede avatar Sep 30 '26 14:09 oladapo-elegbede

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.

mangod12 avatar Oct 26 '26 18:10 mangod12

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

posthog[bot] avatar Oct 26 '26 19:10 posthog[bot]

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.

mangod12 avatar Oct 26 '26 19:10 mangod12

@jonathanlab let me know if you need this done

mangod12 avatar Oct 27 '26 13:10 mangod12

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.

abdullah129026 avatar Oct 31 '26 09:10 abdullah129026

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!

ShayanMuhammad-CS avatar Nov 22 '26 18:11 ShayanMuhammad-CS