https://pulumi.com logo
#pulumi-cloud
Title
# pulumi-cloud
l

little-cartoon-10569

11/08/2021, 8:31 PM
In the Projects page, what attribute is used to title the gray grouping boxes? When I create a project locally then add a stack in my org, that field is empty.
It's in the
app-project-group
tag, in a span with class "proj-group-name".
My project name is in the nested card, in a tag called
app-project-header
, in a span with class "proj-project-name". That one is fine, it has the name of my project.
Is there a configurable property for project "groups"? Where is this documented?
I see in other projects it has the same value as vcs:repo and gitHub:repo. This looks promising. Where do I configure those?
This page has all the info at a high level, but no tag values: https://www.pulumi.com/docs/intro/console/ci-cd-integration-assistant/
I guess I need to set either / both the vcs: and gitHub: tags? Is there a definition of which, when and why?
Found the source for the tag values, looks like the vcs: ones are all I need? https://pkg.go.dev/github.com/pulumi/pulumi/pkg/apitype
Yep, that worked. vcs:repo seems to be the value that goes in there.
l

lemon-agent-27707

11/10/2021, 11:19 PM
Yes, sorry for the late response here. This is indeed automatically picked up from vcs info by the CLI when your program executes.
👍 1
l

little-cartoon-10569

11/10/2021, 11:25 PM
I guess these values are set correctly when you create a project via the app, but I couldn't find user-level docs for them. I never create projects via the app (I use dev tools like echo, cat and vi 😉) so I need to set them myself. Which means.. I need to know to set them!
l

lemon-agent-27707

11/11/2021, 12:07 AM
Sorry for the inconvenience, I believe these are not documented as they are inferred from the environment automatically when you run
pulumi up
https://github.com/pulumi/pulumi/blob/09a8cc7079f6e02899ee3698f243f86cd7bdd115/pkg/cmd/pulumi/util.go#L627
l

little-cartoon-10569

11/11/2021, 1:49 AM
Yep that's the one. So someone creating a new project would likely want to set these.. if they knew they existed 🙂 I've set them in my Pulumi.<stack>.yaml and they work great, but I didn't know I had to...
l

lemon-agent-27707

11/12/2021, 12:43 AM
Yup, hear you there that there is a miss on the documentation. Sorry about that. I did want to clarify that this should happen automatically based on ambient VCS info not just when you create a stack, but also when you run an update. Are you creating projects inside of a git repository and not seeing that info get picked up when you do an update?
l

little-cartoon-10569

11/12/2021, 2:51 AM
No, I think I'd only been using preview. The project and stack showed up without that field populated.