Hello! Is there a way to default the merge option?...
# report-bugs
s
Hello! Is there a way to default the merge option? Our branch protection require squashes, and graphite reverts back to merge because our production ci pipeline triggers on merge commits to main (and I guess graphite uses the last picked github option). It would be nice if graphite took the branch protection rules into account there
✅ 1
p
(If applicable) To help us repro, please send the following if you haven't already: - PR links, screenshots, and/or debug output if applicable - Repro steps - Does this happen consistently? Just to you or others on your team also? - Is this a regression? Is the problem new? - If you're having an issue with the CLI, please send us debug logs using
gt feedback --with-debug-context <any message>
Hey Sammy, wondering what settings you have enabled in github for this repo under
settings
->
general
->
pull requests
With these settings i can only squash. note
your GitHub default
shows squash because squash is the only option enabled on the repo. It's not that i "set" a preference somewhere
s
We have both enabled, but use both strategies for different branches. We have a ruleset for our main branch requiring linear history. Unfortunately that isnt followed by graphite, and when clicking merge if you dont select the right thing gets this error:
p
We have both enabled
gotcha, yea unfortunately we only read today from the repo level pull request setting.