https://pulumi.com logo
Title
b

big-balloon-17802

10/19/2022, 8:50 AM
Hi everyone, have a question is there any way to get
branch name
or
commit sha
for pulumi stack using cli?
pulumi stack --stack stack_name
doesn’t show. Still this information is available in pulumi app, Cheers !
e

echoing-dinner-19531

10/19/2022, 9:08 AM
pulumi stack tag ls
b

big-balloon-17802

10/19/2022, 9:10 AM
yup - it still don’t contain this data… 😞
e

echoing-dinner-19531

10/19/2022, 9:41 AM
When you say pulumi app do you mean app.pulumi.com?
Because the git info on there just shows under "Tags", and its the same as what "tag ls" would show.
b

big-balloon-17802

10/19/2022, 10:12 AM
for some reason ‘tags ls’ dont have a branch name when I execute it - I ended up adding custom tag with branch name when creating stack - so I can reference it later on
e

echoing-dinner-19531

10/19/2022, 3:47 PM
Is that when you execute it locally?
Looks like the system should be setting "git.head" and "git.headName"
with the sha and ref name
🤦‍♂️ Ah I've just looked into this, a whole load of this stuff isn't set as tags, and I don't think there's a cli command to print the backing data from the service