i love the idea of having a list of branches in the stack in my PR bodies, but i dont love that it's at the bottom of the PR body. i would prefer if it was at the top. so it would nice to be able to choose between top/bottom. it would also be nice if i could disable it entirely, as i have my own script for updating PR bodies with a stack list that has functionality that is specific to a specific repo.
a future feature to customize the format would be nice, but im not including that as part of this request.
it looks like this would be pretty easy to handle, as it seems like the logic lives here and would just need to be changed to take an option that decides whether to prepend or append:
|
function updateBody( |
|
body: string | undefined, |
|
prNumber: number, |
|
allPrNumbers: number[], |
|
symbol: string, |
|
) { |
|
const head = (body?.split(STACKING_FOOTER_BOUNDARY_TOP).at(0) || "").trim(); |
|
const tail = (body?.split(STACKING_FOOTER_BOUNDARY_BOTTOM).at(1) || "").trim(); |
|
const footer = generateFooter(prNumber, allPrNumbers, symbol); |
|
const description = head + "\n\n" + footer + "\n\n" + tail; |
|
return description; |
|
} |
happy to open a PR for this! it seems like most of the tech/decision complexity is just in adding a new setting and adding it to the UI somewhere
i love the idea of having a list of branches in the stack in my PR bodies, but i dont love that it's at the bottom of the PR body. i would prefer if it was at the top. so it would nice to be able to choose between top/bottom. it would also be nice if i could disable it entirely, as i have my own script for updating PR bodies with a stack list that has functionality that is specific to a specific repo.
a future feature to customize the format would be nice, but im not including that as part of this request.
it looks like this would be pretty easy to handle, as it seems like the logic lives here and would just need to be changed to take an option that decides whether to prepend or append:
gitbutler/apps/desktop/src/lib/forge/shared/prFooter.ts
Lines 125 to 136 in 66ecd65
happy to open a PR for this! it seems like most of the tech/decision complexity is just in adding a new setting and adding it to the UI somewhere