docs: add GitHub user and PR info to the changelog

This commit is contained in:
Amaan Qureshi 2024-02-21 19:45:18 -05:00
parent 80a0f9110d
commit d59f950005
No known key found for this signature in database
GPG key ID: E67890ADC4227273
2 changed files with 76 additions and 71 deletions

View file

@ -17,12 +17,16 @@ body = """
### {{ group | upper_first }}
{% for commit in commits%}\
{% if not commit.scope %}\
- {{ commit.message | upper_first }}
- {{ commit.message | upper_first }}\
{% if commit.github.username %} *by* @{{ commit.github.username }}{%- endif %}\
{% if commit.github.pr_number %} *in* #{{ commit.github.pr_number }}{%- endif %}
{% endif %}\
{% endfor %}\
{% for group, commits in commits | group_by(attribute="scope") %}\
{% for commit in commits %}\
- **{{commit.scope}}**: {{ commit.message | upper_first }}
- **{{commit.scope}}**: {{ commit.message | upper_first }}\
{% if commit.github.username %} *by* @{{ commit.github.username }}{%- endif %}\
{% if commit.github.pr_number %} *in* #{{ commit.github.pr_number }}{%- endif %}
{% endfor %}\
{% endfor %}
{% endfor %}\n
@ -66,3 +70,7 @@ ignore_tags = ""
date_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"
[remote.github]
owner = "tree-sitter"
repo = "tree-sitter"