content: # git-cliff configuration for automated changelog generation
  # https://github.com/orhun/git-cliff
  
  [changelog]
  # Header for the changelog
  header = """
  # Changelog
  
  All notable changes to this project will be documented in this file.
  
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
  """
  
  # Template for the changelog body
  body = """
  {% if version %}\
      ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
  {% else %}\
      ## [Unreleased]
  {% endif %}\
  {% for group, commits in commits | group_by(attribute="group") %}
      ### {{ group | upper_first }}
      {% for commit in commits %}
          - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\
      {% endfor %}
  {% endfor %}\n
  """
  
  # Footer template
  footer = """
  <!-- generated by git-cliff -->
  """
  
  # Remove leading and trailing whitespace from templates
  trim = true
  
  [git]
  # Parse conventional commits
  conventional_commits = true
  # Filter out commits that aren't conventional
  filter_unconventional = true
  # Commit preprocessors
  commit_preprocessors = [
      { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/mikeyasaservice/hyperscan-tokio/issues/${2}))" },
  ]
  
  # Commit parsers
  commit_parsers = [
      { message = "^feat", group = "Features" },
      { message = "^fix", group = "Bug Fixes" },
      { message = "^doc", group = "Documentation" },
      { message = "^perf", group = "Performance" },
      { message = "^refactor", group = "Refactoring" },
      { message = "^test", group = "Testing" },
      { message = "^chore\\(release\\):", skip = true },
      { message = "^chore", group = "Miscellaneous" },
      { body = ".*security", group = "Security" },
  ]
  
  # Filter commits by regex
  protect_breaking_commits = false
  # Sort commits by oldest first
  sort_commits = "oldest"
  
  # Glob patterns to filter commits by path
  filter_commits = false
  
  # Tag patterns to include
  tag_pattern = "v[0-9]*"
  
  # Skip tags matching this pattern
  skip_tags = "v0.1.0-rc[0-9]"
  
  # Sort tags in topological order
  topo_order = false