Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: git setup user name should use GITLAB_CI_USER_NAME #95

Merged
merged 2 commits into from
Mar 10, 2023

Conversation

AdrielLimanthie
Copy link
Contributor

Raising this PR as I found a bug in the git setup when setting user name.

As mentioned in the README.md, you should be able to set git user name by specifying variable GITLAB_CI_USER_NAME. But the current code gets the user name from GITLAB_USER_NAME instead, which is a predefined Gitlab variable. Thus, setting variable GITLAB_CI_USER_NAME actually does nothing.

This PR fixes the issue by changing the code to use GITLAB_CI_USER_NAME instead for the git user name.

@stackblitz
Copy link

stackblitz bot commented Mar 9, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@changeset-bot
Copy link

changeset-bot bot commented Mar 9, 2023

🦋 Changeset detected

Latest commit: 82de629

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
changesets-gitlab Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 9, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@JounQin
Copy link
Member

JounQin commented Mar 9, 2023

Should it fallback to GITLAB_USER_NAME if the env not provided?

@AdrielLimanthie
Copy link
Contributor Author

Should it fallback to GITLAB_USER_NAME if the env not provided?

Yeah, that makes sense. I'll add that in.

@JounQin JounQin merged commit cec113b into un-ts:main Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants