Skip to content

PR Flow

your-last-translation-tool uses the gh CLI to create and update GitHub PRs. No GitHub tokens are stored in the app — authentication is delegated entirely to gh auth.

When you click Push & open PR, the app:

  1. Commits any unsaved changes to your local branch.
  2. Runs git push origin <branch> to push to GitHub.
  3. Runs gh pr create (or gh pr edit if a PR for this branch already exists) with the generated title and body.
  4. Opens the PR URL in your default browser.

The default gh auth login flow grants the repo scope, which covers everything the app needs:

ActionScope needed
Push commitsrepo
Create PRsrepo
List PRsrepo
Read org reposread:org (needed for org repos)

If the app shows a “missing scope” error, run:

Terminal window
gh auth refresh -s repo,read:org

Then click Recheck in the app.


  1. Make your edits in the translation editor.
  2. Click Push & open PR.
  3. The app suggests a PR title based on the branch name and changed keys. Edit it if needed.
  4. Click Create PR. The PR opens in your browser.

If your current branch already has an open PR, the app shows Push to PR instead of Create PR. Clicking it pushes your latest commits to the same PR — no new PR is opened.


By default, new translation branches are prefixed with translations/ (e.g., translations/uk-homepage-keys). You can change the prefix per project in .translations.json via the branchPrefix field.