background-agents icon indicating copy to clipboard operation
background-agents copied to clipboard

Configurable default branch

Open Nopik opened this issue 6 months ago • 3 comments

This repo seem to have main hardcoded everywhere as the default branch for everything. In my case we dont use main at all in our repo and I have to fork and manually find&replace all "main" occurrences in the repo, then maintain the changes over rebases. It would be great if default branch would be configurable. It doesn't need to be dynamic, a terraform parameter is totally fine, as the value is not changing that often.

Nopik avatar May 10 '26 09:05 Nopik

@Nopik makes sense. I think having it configured via terraform makes sense to me.

Will leave the issue up for a bit to see if any new contributors want to take it, otherwise can ship it soon.

ColeMurray avatar May 10 '26 17:05 ColeMurray

FWIW, we just ran into this. I'm testing a fix in our fork and if it works I'll setup a PR to get it merged here. @ColeMurray, feel free to assign this to me if that makes sense. If my fix works, we'll be able to get the correct default branch from the GitHub app, no need for a Terraform variable.

kadams54 avatar May 15 '26 18:05 kadams54

@kadams54 how did you get on with this?

Blue101black avatar Jun 15 '26 06:06 Blue101black