Accessing codespace creators First and Last name via codespaces ENV variables #46783
-
Select Topic AreaQuestion BodyAs a part of being able to contribute to rushstack, we require committers to set their local git config user name and email to look like the following:
I am currently revamping our codespaces dev container for the project and I would like to automate this process for the user when they open a new codespace. I attempted to use Question: Is there any way (via environment variables, or other settings) that I can fetch the codespace creator's first/last name so I can automatically setup these |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @TheLarkInn, |
Beta Was this translation helpful? Give feedback.
Hi @TheLarkInn,
Codespaces always have the user.name and user.email set in the git config. They are set at
--system
level (not--local
), and it should work for all git scenarios.You can see them by running
git config --list
orgit config --list --system
.