Skip to content

Allow overriding Git user info for catalog commits#140

Merged
simu merged 2 commits into
projectsyn:masterfrom
daiboruta:master
Jul 21, 2020
Merged

Allow overriding Git user info for catalog commits#140
simu merged 2 commits into
projectsyn:masterfrom
daiboruta:master

Conversation

@daiboruta

@daiboruta daiboruta commented Jul 9, 2020

Copy link
Copy Markdown
Contributor

This commit introduces new arguments for commodore catalog compile for
overriding local Git user information when pushing commits to a cluster
catalog.

By default Commodore will use the local Git user information for catalog
commits.
To improve compatibility with existing Git configurations, the arguments
are named --git-author-name and --git-author-email to pick up the
familiar GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL environment variables
without any further configuration.

Please note: Commodore does not allow you to override commit author and
committer separately, and will use the provided author name and email,
if any, as both commit author and committer.

The commit also updates docker-compose.yaml to map ~/.gitconfig into
the container to propagate the global Git config into the container.
This simplifies reusing the Git author configuration on the host system
when running Commodore locally using docker-compose.

Checklist

  • Keep pull requests small so they can be easily reviewed.
  • Update the documentation.
  • Update tests.
  • Update the ./CHANGELOG.md.
  • Link this PR to related issues.

@srueg

srueg commented Jul 10, 2020

Copy link
Copy Markdown
Contributor

Thanks for this PR @daiboruta
Can you please rebase your changes on the latest master and resolve the conflicts?

Comment thread commodore/config.py Outdated
Comment thread commodore/cli.py Outdated
@simu simu changed the title Issue #63 Allow overriding Git user info for catalog commits\ Jul 20, 2020
@simu simu changed the title Allow overriding Git user info for catalog commits\ Allow overriding Git user info for catalog commits Jul 20, 2020
@simu simu requested a review from srueg July 20, 2020 15:59
Dai Boruta and others added 2 commits July 20, 2020 17:59
This commit introduces new arguments for `commodore catalog compile` for
overriding local Git user information when pushing commits to a cluster
catalog.

By default Commodore will use the local Git user information for catalog
commits.
To improve compatibility with existing Git configurations, the arguments
are named `--git-author-name` and `--git-author-email` to pick up the
familiar `GIT_AUTHOR_NAME` and `GIT_AUTHOR_EMAIL` environment variables
without any further configuration.

Please note: Commodore does not allow you to override commit author and
committer separately, and will use the provided author name and email,
if any, as both commit author and committer.

The commit also updates docker-compose.yaml to map `~/.gitconfig` into
the container to propagate the global Git config into the container.
This simplifies reusing the Git author configuration on the host system
when running Commodore locally using docker-compose.

Resolves projectsyn#63
Comment thread commodore/cli.py
@simu simu merged commit 6890464 into projectsyn:master Jul 21, 2020
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.

3 participants