From 39dc64ff3cf974b9967299c640fbdfc833b4d00a Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 19 Jun 2026 20:02:21 +0000 Subject: [PATCH] fix: stop seeding a fresh timestamp into translators.json every run The `sinceLastTag.updated` field was set to `date -u` on every `scripts/translators.sh --seed` run, but nothing ever reads it. The release-time credit generator only consumes `.mappings` and `.sinceLastTag.translators`. Because the field changed on every run, the seed-translators CI job produced a diff (and therefore a new Crowdin/seed PR) on every push to main even when the translator set was unchanged. Drop the field from the seed write and from the committed JSON so the file only changes when a contributor actually appears. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01RSoN4DDC5F1ehwGeC33652 --- docs/changelog/translators.json | 1 - scripts/translators.sh | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/changelog/translators.json b/docs/changelog/translators.json index 06d039722b..9288f70108 100644 --- a/docs/changelog/translators.json +++ b/docs/changelog/translators.json @@ -75,7 +75,6 @@ "sinceLastTag": { "tag": "v1.12.5", "since": "2026-06-19T12:55:37-04:00", - "updated": "2026-06-19T17:21:54+00:00", "translators": [ { "user": "vitorpamplona", diff --git a/scripts/translators.sh b/scripts/translators.sh index 25fd6b393d..ed6a51f7c3 100755 --- a/scripts/translators.sh +++ b/scripts/translators.sh @@ -185,8 +185,7 @@ fi if [ "$SEED" = "1" ]; then before="$(jq '(.mappings // {}) | length' "$MAPPING")" merged="$(jq -n --slurpfile cur "$MAPPING" --argjson rep "$report" \ - --arg tag "$LAST_TAG" --arg since "$DATE_FROM" \ - --arg updated "$(date -u +%Y-%m-%dT%H:%M:%S+00:00)" ' + --arg tag "$LAST_TAG" --arg since "$DATE_FROM" ' ($cur[0]) as $file | [ ($rep.data // $rep)[] | { user: (.user.username // (.user.id|tostring)), @@ -198,7 +197,7 @@ if [ "$SEED" = "1" ]; then then . else . + { ($u): "" } end) ) as $mappings | $file + { mappings: $mappings } - + { sinceLastTag: { tag: $tag, since: $since, updated: $updated, + + { sinceLastTag: { tag: $tag, since: $since, translators: $contribs } } ')" echo "$merged" > "$MAPPING"