Skip to content

Provide additional author with parameter #195

Description

@mikevader

Context

Although the commit created by gitopscli is usually done by CI with a technical user, the actual deployment is often triggered by a user (click in the CI gui or a commit in the application repository). It could be beneficial for the history to add this user as additional author to the deployment commit.

Solution Proposal

The deploy command would get two additional parameters for co-authors:

gitopscli deploy --git-provider github \
                          --username gitopscli \
                          --git-user CI-User \
                          --git-email ci@baloise.dev \
                          --co-author-name 'Mike Miller' \
                          --co-author-email mike@baloise.dev

The co-author values would be added to all commit messages created by gitopscli

Activity

  1. christiansiegel commented on Apr 7, 2023

    @christiansiegel
    Member

    Do you mean a co-author trailer at the end of the commit message? (https://github.blog/2018-01-29-commit-together-with-co-authors/)

    Example:

    changed 'backend.tag' to 'foo' in values.yaml
    
    Co-authored-by: Mike Miller <mike@baloise.dev>
    
  2. mikevader commented on May 8, 2023

    @mikevader
    Author

    Yes exactly. Github, Bitbucket and others use this as well.

    I first thought to use the --commit-message argument but that feels wrong. Side effect on single / multiple commits and you would loose the default commit message.

  3. added a commit that references this issue on May 8, 2023
    8042953
  4. added a commit that references this issue on Aug 8, 2023
    d61deda
  5. github-actions commented on Aug 8, 2023

    @github-actions

    🎉 This issue has been resolved in version 5.8.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions