Slackbot
03/09/2023, 6:04 PMAlejandro Frias
03/09/2023, 6:09 PMgt branch create or is it a local branch you created and have not pushed yet?Alejandro Frias
03/09/2023, 6:09 PMDoug Cox
03/09/2023, 6:14 PMmy_branch is the tip of a three branch stack created on my laptop and pushed to GH.
The first two branches of the stack have been merged.
hope that helps!Pranathi Peri
03/09/2023, 6:21 PMdownstack get from another workspace i'm presuming?Alejandro Frias
03/09/2023, 6:23 PMgt repo sync -fr first so that your local stack is up to date with mainDoug Cox
03/09/2023, 6:23 PMPranathi Peri
03/09/2023, 6:24 PMAlejandro Frias
03/09/2023, 6:24 PM-f and -r options if you’re not used to themAlejandro Frias
03/09/2023, 6:24 PM-f force delete closed branches and -r restack without promptingDoug Cox
03/09/2023, 6:25 PMDoug Cox
03/09/2023, 6:25 PMAlejandro Frias
03/09/2023, 6:25 PMDoug Cox
03/09/2023, 6:26 PM$ gt repo sync -fr
🌲 Pulling master from remote...
master is up to date.
🧹 Checking if any branches have been merged/closed and can be deleted...
master does not need to be restacked.
$ gt downstack get my_branch
Pulling master from remote...
master is up to date.
ERROR: Received invalid dependency responseAlejandro Frias
03/09/2023, 6:27 PMAlejandro Frias
03/09/2023, 6:28 PMDoug Cox
03/09/2023, 6:28 PMif (topReturnedBranch !== args.branchName ||
bottomReturnedBranch !== args.trunkName) {
throw new errors_1.ExitFailedError(`Received invalid dependency response ${response.downstackBranchNames}`);
}Doug Cox
03/09/2023, 6:30 PMconsole.log({ 'bottomReturnedBranch': bottomReturnedBranch, 'topReturnedBranch': topReturnedBranch, 'args.trunkName': args.trunkName });
{
bottomReturnedBranch: undefined,
topReturnedBranch: undefined,
'args.trunkName': 'master'
}Doug Cox
03/09/2023, 6:35 PM<https://api.graphite.dev/v1> {
method: 'GET',
url: '/graphite/downstack-dependencies',
queryParams: {
authToken: "OMITTED",
org: "Lumen5",
repo: "lumen5-170819-flux",
trunkName: "master",
branchName: "OMITTED"
},
}
yields the following response
{
"downstackBranchNames": [],
"_response": {
"size": 0,
"timeout": 0
}
}Doug Cox
03/09/2023, 6:37 PMlumen5-170819-flux to lumen5-flux on Github.
The original name still works as an alias for (mostly) everything, but apparently not for /graphite/downstack-dependencies
😅Pranathi Peri
03/09/2023, 6:38 PMDoug Cox
03/09/2023, 6:39 PMPranathi Peri
03/09/2023, 6:40 PMAlejandro Frias
03/09/2023, 10:19 PMBilal Quadri
03/10/2023, 12:42 AM