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

feat: implement the 'signedoffby' module #9

Merged
merged 3 commits into from
Mar 17, 2024

Conversation

rolasotelo
Copy link
Contributor

@rolasotelo rolasotelo commented Mar 17, 2024

PR Description: New Module - Commit Footer Sign-off

Overview

This PR introduces the signedoffby module, designed to automate the inclusion of a "Signed-off-by" token in the footer of each commit message. This addition ensures that all commits carry an acknowledgment from the author, enhancing the integrity and traceability of contributions. Plus a CHANGELOG.md file was added (idea is to follow https://keepachangelog.com/en/1.1.0/).

Implementation Details

  • Module Name: signedoffby
  • Key Feature: Automatic appending of Signed-off-by to the commit footer.
  • Activation: Configurable via module settings; no user input required during the commit process.

Changes Made

  1. New Module Implementation: Created signedoffby.go in pkg/modules/signedoffby, implementing the module logic.

  2. Post-Processing Logic:

    • Utilized os/exec to fetch the author's name and email from Git configuration.
    • Formatted and appended the "Signed-off-by" token to the commit footer.

@rolasotelo
Copy link
Contributor Author

@rolasotelo rolasotelo self-assigned this Mar 17, 2024
@rolasotelo rolasotelo merged commit b42f623 into main Mar 17, 2024
@rolasotelo rolasotelo deleted the CU-869430y06_feat-implement-signed-off-by-module branch March 17, 2024 10:11
@rolasotelo rolasotelo restored the CU-869430y06_feat-implement-signed-off-by-module branch March 17, 2024 10:19
@rolasotelo rolasotelo deleted the CU-869430y06_feat-implement-signed-off-by-module branch March 17, 2024 10:19
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.

None yet

1 participant