Skip to content

fix: only run auto-translate on push to main/develop, not every PR - #190

Merged
kcw-grunt merged 1 commit into
developfrom
chore/auto-translate-push-only-trigger
Aug 22, 2026
Merged

kcw-grunt merged 1 commit into
developfrom
chore/auto-translate-push-only-trigger

Conversation

@grunt-claude-bot

Copy link
Copy Markdown
Collaborator

Summary

Drops the pull_request trigger from auto-translate-ios.yml, keeping only push: branches: [main, develop] (plus workflow_dispatch).

Why

The pull_request trigger re-fired the workflow on every commit pushed to any PR touching Localizable.xcstrings — not just when the change actually landed. That produced duplicate/noisy translation PRs:

Translations only need generating once a change lands on main/develop — there's no reason to run it mid-review. Push-only removes both failure modes; direct pushes (merges) still trigger it exactly as intended.

Also removes the now-dead github.event.pull_request.* fallbacks that existed only to support the removed trigger.

Companion fix to #186 (JSON formatting), which addressed why each of those runs produced an unreviewable full-file diff instead of a small one.

Co-Authored-By: grunt-claude-bot noreply@grunt.ltd
Co-Authored-By: kcw-grunt kerry@grunt.ltd

🤖 Generated with Claude Code

Dropped the pull_request trigger. It re-fired the workflow on every
commit pushed to any PR touching Localizable.xcstrings — including
long-lived release branches (4 translation PRs spawned against
release/v3.9.16-into-main in one afternoon) and the bot's own PR
check runs (#188, opened against the '184/merge' ref while #184 was
still under review, duplicating #189's content once #184 actually
merged).

Translations only need generating once a change actually lands on
main/develop, not during PR review, so push-only is sufficient and
removes the self-duplicating behavior. Also drops the now-dead
github.event.pull_request.* fallbacks that existed only to support
that trigger.

Co-Authored-By: grunt-claude-bot <noreply@grunt.ltd>
Co-Authored-By: kcw-grunt <kerry@grunt.ltd>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On develop or main so its not a noisy call to run

@kcw-grunt
kcw-grunt merged commit 2752080 into develop Aug 22, 2026
2 checks passed
kcw-grunt added a commit that referenced this pull request Aug 22, 2026
## Highlights since v3.9.16

- Reworked the Buy/Receive sheet (BuyReceiveView) to match the Android
  app's layout (#177)
- Cleared remaining deprecated Security/Foundation API usage and a real
  infinite-recursion bug (#175)
- Reduced the Swift compiler warnings list (#174)
- Removed CircleCI — Xcode Cloud is now the sole CI (#173)
- Updated Private/bw-gdlib to v1.6.9 (#171) and Modules/core (#176)
- Restored the missing translations for COPY NEW ADDRESS, and added
  translations for BUY / RECEIVE and POWERED BY MOONPAY (21 locales
  each) — these existed in an earlier release attempt but were never
  merged back into develop (#184)
- Removed 2 dead Localizable.xcstrings keys with no remaining source
  references: GET LTC, Set amount: (#179)
- Fixed the auto-translate script writing Localizable.xcstrings with
  JSON formatting that didn't match Xcode's String Catalog serializer,
  which was rewriting every line of the file on every run and
  producing unreviewable, unmergeable translation PRs (#186)
- Fixed the auto-translate workflow re-triggering on every push to any
  open PR (not just merges to main/develop), which was spawning
  duplicate translation PRs against long-lived branches (#190)
- Picked up 42 additional previously-missing translations across 21
  locales, generated cleanly after the above two fixes (#189)
- Bumped MARKETING_VERSION to 3.9.17

## Build
CURRENT_PROJECT_VERSION bumped 2602309 -> 2602311.

Co-Authored-By: grunt-claude-bot <noreply@grunt.ltd>
Co-Authored-By: kcw-grunt <kerry@grunt.ltd>
kcw-grunt added a commit that referenced this pull request Aug 22, 2026
## Highlights since v3.9.16

- Reworked the Buy/Receive sheet (BuyReceiveView) to match the Android
  app's layout (#177)
- Cleared remaining deprecated Security/Foundation API usage and a real
  infinite-recursion bug (#175)
- Reduced the Swift compiler warnings list (#174)
- Removed CircleCI — Xcode Cloud is now the sole CI (#173)
- Updated Private/bw-gdlib to v1.6.9 (#171) and Modules/core (#176)
- Restored the missing translations for COPY NEW ADDRESS, and added
  translations for BUY / RECEIVE and POWERED BY MOONPAY (21 locales
  each) — these existed in an earlier release attempt but were never
  merged back into develop (#184)
- Removed 2 dead Localizable.xcstrings keys with no remaining source
  references: GET LTC, Set amount: (#179)
- Fixed the auto-translate script writing Localizable.xcstrings with
  JSON formatting that didn't match Xcode's String Catalog serializer,
  which was rewriting every line of the file on every run and
  producing unreviewable, unmergeable translation PRs (#186)
- Fixed the auto-translate workflow re-triggering on every push to any
  open PR (not just merges to main/develop), which was spawning
  duplicate translation PRs against long-lived branches (#190)
- Picked up 42 additional previously-missing translations across 21
  locales, generated cleanly after the above two fixes (#189)
- Bumped MARKETING_VERSION to 3.9.17

## Build
CURRENT_PROJECT_VERSION bumped 2602309 -> 2602311.

Co-Authored-By: grunt-claude-bot <noreply@grunt.ltd>
Co-Authored-By: kcw-grunt <kerry@grunt.ltd>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants