App-Changelog

App::Changelog is a command-line tool written in Perl for automatically generating changelogs based on Git commit history. It allows you to create detailed or compact logs, filter specific tags, and save the changelog to a file.

Features

Installation

You can install App::Changelog manually or from MetaCPAN.

Manual Installation

  1. Clone or download the repository.
  2. Navigate to the project directory.
  3. Run the following commands to install dependencies and prepare the script:
cpanm install --installdeps .

Ensure Perl and cpanm are installed on your system.

MetaCPAN

  1. User cpanm to install the app:
cpanm install App::TodoList

Usage

After installation, you can run the script directly from the command line. The available options are:

./Changelog.pl [options]

Options

changelog --output <output_file>     # Set the output file (default: CHANGELOG.md)
changelog --compact                  # Enable compact logs (default: enabled)
changelog --no-compact               # Disable compact mode and generate detailed logs
changelog --conventional             # Format the changelog based on Conventional Commits
changelog --filter                   # Filter tags that start with the specified prefix

Examples

To generate a changelog in compact mode (default):

changelog

To save the changelog to a specific file:

changelog --output changelog.md

To generate detailed logs:

changelog --no-compact

To filter commits by tags starting with "v":

changelog --filter v

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature-branch).
  6. Create a merge request.

License

This project is licensed under the MIT License - see the MIT file for details.