From 3979f0b6e6fbe929545065314f2dd197cf3ec404 Mon Sep 17 00:00:00 2001 From: Vlad Frangu Date: Mon, 2 Sep 2024 12:26:08 +0300 Subject: [PATCH] chore: add in more data to changelog entries (#10470) * chore: add in more data to changelog entries * chore: missed template --- packages/brokers/cliff.toml | 9 ++++++++- packages/builders/cliff.toml | 9 ++++++++- packages/collection/cliff.toml | 9 ++++++++- packages/core/cliff.toml | 9 ++++++++- packages/create-discord-bot/cliff.toml | 9 ++++++++- packages/discord.js/cliff.toml | 9 ++++++++- packages/formatters/cliff.toml | 9 ++++++++- packages/next/cliff.toml | 9 ++++++++- packages/proxy/cliff.toml | 9 ++++++++- packages/rest/cliff.toml | 9 ++++++++- .../turbo/generators/templates/default/cliff.toml | 9 ++++++++- packages/util/cliff.toml | 9 ++++++++- packages/voice/cliff.toml | 9 ++++++++- packages/ws/cliff.toml | 9 ++++++++- 14 files changed, 112 insertions(+), 14 deletions(-) diff --git a/packages/brokers/cliff.toml b/packages/brokers/cliff.toml index ba2acca4bcd1..35a2901131c2 100644 --- a/packages/brokers/cliff.toml +++ b/packages/brokers/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = "" diff --git a/packages/builders/cliff.toml b/packages/builders/cliff.toml index 10e32d1e6419..834d7df3f988 100644 --- a/packages/builders/cliff.toml +++ b/packages/builders/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = "" diff --git a/packages/collection/cliff.toml b/packages/collection/cliff.toml index 6a454d95555a..307c58882011 100644 --- a/packages/collection/cliff.toml +++ b/packages/collection/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = "" diff --git a/packages/core/cliff.toml b/packages/core/cliff.toml index fb128432958d..e01e42509dd2 100644 --- a/packages/core/cliff.toml +++ b/packages/core/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = "" diff --git a/packages/create-discord-bot/cliff.toml b/packages/create-discord-bot/cliff.toml index 166fb953e7d0..245edd6c62d6 100644 --- a/packages/create-discord-bot/cliff.toml +++ b/packages/create-discord-bot/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = "" diff --git a/packages/discord.js/cliff.toml b/packages/discord.js/cliff.toml index 6e25c0b7d9ed..e2a9e82ee5c0 100644 --- a/packages/discord.js/cliff.toml +++ b/packages/discord.js/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = "" diff --git a/packages/formatters/cliff.toml b/packages/formatters/cliff.toml index a1a66b60224d..e7c37c63d28d 100644 --- a/packages/formatters/cliff.toml +++ b/packages/formatters/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = "" diff --git a/packages/next/cliff.toml b/packages/next/cliff.toml index 8bd5b95951a6..ce63ba045147 100644 --- a/packages/next/cliff.toml +++ b/packages/next/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = "" diff --git a/packages/proxy/cliff.toml b/packages/proxy/cliff.toml index f3347d86b9c9..dffb706e3e7a 100644 --- a/packages/proxy/cliff.toml +++ b/packages/proxy/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = "" diff --git a/packages/rest/cliff.toml b/packages/rest/cliff.toml index 13f4176daf2b..31962f61267e 100644 --- a/packages/rest/cliff.toml +++ b/packages/rest/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = "" diff --git a/packages/scripts/turbo/generators/templates/default/cliff.toml b/packages/scripts/turbo/generators/templates/default/cliff.toml index e2ba49b93033..65a05384048c 100644 --- a/packages/scripts/turbo/generators/templates/default/cliff.toml +++ b/packages/scripts/turbo/generators/templates/default/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = "" diff --git a/packages/util/cliff.toml b/packages/util/cliff.toml index eef2a410a9b6..f932465f396b 100644 --- a/packages/util/cliff.toml +++ b/packages/util/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = "" diff --git a/packages/voice/cliff.toml b/packages/voice/cliff.toml index e940fd2ca9d1..cfd0279ee76a 100644 --- a/packages/voice/cliff.toml +++ b/packages/voice/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = "" diff --git a/packages/ws/cliff.toml b/packages/ws/cliff.toml index 22066f5d0901..95f85d41958e 100644 --- a/packages/ws/cliff.toml +++ b/packages/ws/cliff.toml @@ -28,13 +28,20 @@ body = """ **{{commit.scope}}:** \ {% endif %}\ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ + {% if commit.github.username %} by @{{ commit.github.username }}{%- endif %}\ {% if commit.breaking %}\ {% for breakingChange in commit.footers %}\ \n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\ {% endfor %}\ {% endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %}\ +{% if github.contributors | filter(attribute="is_first_time", value=true) | length %}\ + \n### New Contributors\n + {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}\ + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {% endfor %}\ +{% endif %}\n """ trim = true footer = ""