Skip to content

Use GraphQL API for translation commits to ensure verified status#9381

Merged
omurovch merged 1 commit into
version/0.50from
translator-verified
Jul 13, 2026
Merged

Use GraphQL API for translation commits to ensure verified status#9381
omurovch merged 1 commit into
version/0.50from
translator-verified

Conversation

@omurovch

Copy link
Copy Markdown
Contributor

Update the translation workflow to commit changes using the GitHub GraphQL createCommitOnBranch mutation instead of standard git commands. Commits created via the API are signed by GitHub and appear as "Verified" in the repository history.

The updated logic:

  • Identifies modified strings.xml files and translation_snapshot.json.
  • Encodes file contents into a JSON payload using jq and base64.
  • Executes the mutation via curl against the GitHub GraphQL endpoint.

Update the translation workflow to commit changes using the GitHub GraphQL `createCommitOnBranch` mutation instead of standard `git` commands. Commits created via the API are signed by GitHub and appear as "Verified" in the repository history.

The updated logic:
- Identifies modified `strings.xml` files and `translation_snapshot.json`.
- Encodes file contents into a JSON payload using `jq` and `base64`.
- Executes the mutation via `curl` against the GitHub GraphQL endpoint.
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 09d039ef-69de-4f82-94e1-5cc96ffb7c33

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch translator-verified

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@omurovch
omurovch merged commit 05a42b4 into version/0.50 Jul 13, 2026
2 checks passed
@omurovch
omurovch deleted the translator-verified branch July 13, 2026 09:38
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