Skip to content

Enhance the deploy command to enable the setting of git user.name and user.email in deployment branch #9101

Closed
@amdshrif

Description

@amdshrif

Have you read the Contributing Guidelines on issues?

Description

Enhance the deploy command to enable the setting of git user.name and user.email specifically for the deployment branch. This way, Git will utilize the local git configuration instead of the global configuration when making commits to the deployment branch.

Has this been requested on Canny?

NA

Motivation

In my system, I have separate configurations for my personal and work Git users. These configurations are set on a per-repository basis rather than globally. However, when I use the command "yarn deploy," it automatically sets the user.name and user.email to default values, which are based on my hostname. I would rather not share this information on GitHub and have the option to set the user.name and user.email that I would like to use for commiting changes to deployment branch.

API design

I have added 2 environment variables to set the user.name and user.email

Have you tried building it?

Yes, I have added 2 environment variables to set the user.name and user.email

Self-service

  • I'd be willing to contribute this feature to Docusaurus myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis is not a bug or issue with Docusausus, per se. It is a feature request for the future.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions