content: [remote.github]
  owner = "MaaXYZ"
  repo = "MaaPracticeBoilerplate"
  #自用时换成自己的仓库owner和repo
  #注意，本地git user需与github一致才能实现成功@
  [changelog]
  # 标题
  header = """
  # 更新日志
  """
  
  body = """
  {%- macro remote_url() -%}
    https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
  {%- endmacro -%}
  
  {% macro print_commit(commit) -%}
      - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
          {% if commit.breaking %}[**breaking**] {% endif %}\
          {{ commit.message | upper_first }} \
          @{{ author.login | default(value=commit.author.name) }}
  {% endmacro -%}
  
  {% if version %}\
      ## {{ version | trim_start_matches(pat="v") }} ({{ timestamp | date(format="%Y-%m-%d") }})
  {% else %}\
      ## 未发布
  {% endif %}\
  
  {% for group, commits in commits | group_by(attribute="group") %}
      ### {{ group | striptags | trim | upper_first }}
      {% for commit in commits
      | filter(attribute="scope")
      | sort(attribute="scope") %}
          {{ self::print_commit(commit=commit) }}
      {%- endfor %}
      {% for commit in commits %}
          {%- if not commit.scope -%}
              {{ self::print_commit(commit=commit) }}
          {% endif -%}
      {% endfor -%}
  {% endfor -%}
  {%- if github -%}
  {% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
    ## 新贡献者 ❤️
  {% endif %}\
  {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
    * @{{ contributor.username }} made their first contribution
      {%- if contributor.pr_number %} in \
        [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
      {%- endif %}
  {%- endfor -%}
  {%- endif %}
  """
  
  # 尾部
  footer = """
  """
  
  [git]
  # 过滤提交
  conventional_commits = true # 使用约定式提交格式
  filter_unconventional = false # 不过滤非约定式提交
  commit_parsers = [
      { message = "^feat", group = "<!-- 0 -->✨ 新功能" },
      { message = "^fix", group = "<!-- 1 -->🐛 Bug修复" },
      { message = "^docs", group = "<!-- 4 -->📚 文档" },
      { message = "^perf", group = "<!-- 3 -->🚀 性能优化" },
      { message = "^refactor", group = "<!-- 2 -->🚜 代码重构" },
      { message = "^style", group = "<!-- 5 -->🎨 样式" },
      { message = "^test", group = "<!-- 6 -->🧪 测试" },
      { message = "^chore\\(deps\\)", group = "📦 依赖更新" },
      { message = "^chore", group = "<!-- 8 -->🔧 日常维护" },
      { message = "^ci", group = "<!-- 7 -->⚙️ 持续集成" },
      { body = ".*security", group = "<!-- 9 -->🔒 安全" },
      { message = "^revert", group = "<!-- 10 -->◀️ 撤销" },
  ]
  
  # 忽略这些提交
  ignore_tags = "rc"
  
  # 排序规则
  sort_commits = "oldest"
  
  # 启用GitHub集成
  [git.github]
  commits = true
  