Install the GitHub App.
Receive reviewable SDK migration pull requests on your repositories. Free for public repositories.
Before you start
UpstreamFix works on repositories that use a supported SDK version from the migration catalog. You need admin access to the repository, and GitHub Actions must be enabled.
In the repository, open Settings → Actions → General → Workflow permissions and turn on Allow GitHub Actions to create and approve pull requests. The workflow opens the migration pull request with the repository's own Actions token.
1. Add the workflow
Commit this file to your default branch as .github/workflows/upstreamfix.yml. The App only triggers repositories that contain it.
name: UpstreamFix API migrations
on:
workflow_dispatch:
repository_dispatch:
types: [upstreamfix.migrate, bot-pr-followup]
schedule:
- cron: '17 5 * * 1'
permissions:
contents: write
pull-requests: write
issues: write
actions: write
jobs:
upstreamfix:
# UpstreamFix v0.5.2: the workflow and the migration tool are pinned to the same reviewed commit.
uses: ivanDev237/upstreamfix/.github/workflows/client-migrations.yml@6c26aa35d983b2126bd55ff0b524ade83a3f4bb8
with:
upstreamfix_sha: 6c26aa35d983b2126bd55ff0b524ade83a3f4bb8
ci_workflow: ci.ymlci_workflow is the file name of your existing CI workflow. UpstreamFix runs it on the migration branch, because pull requests opened by the Actions token do not trigger CI on their own. Remove the line if you have none.
2. Install the App
Install UpstreamFix Migrations on GitHub ↗
Choose your account, select Only select repositories and pick the repositories that contain the workflow. The App asks for three permissions: Metadata: read; Contents: read and write, which GitHub requires to send the event that starts your workflow; and Pull requests: read, to recognize Dependabot and Renovate upgrade pull requests. It cannot write to pull requests, issues or Actions: the pull requests and issues are opened by your own workflow.
3. What happens next
After each push to your default branch, the App checks that the repository still contains the workflow and starts it for that exact commit. The workflow then analyses the code in your own GitHub Actions:
When every change can be applied safely and your checks pass, it opens or updates a pull request on an upstreamfix/… branch, with the diff, a report and the official migration guide. When a change needs a developer, it opens an issue named UpstreamFix: manual … that lists each file and line instead. When the migration is no longer needed, for example after you merge, it closes them.
When Dependabot or Renovate opens a major upgrade of a supported SDK, for example firebase-admin 13 → 14, the App also checks that pull request. If the new version breaks your code, the workflow prepares the source changes on a separate upstreamfix/… branch, verifies them, opens a pull request that contains the version bump and the fix, and leaves one comment on the bot's pull request. It never modifies the bot's branch.
The workflow also runs every Monday and can be started by hand from the Actions tab.
Optional configuration
Add .upstreamfix.yml at the root of the repository to adjust the behaviour. Every key is optional:
frequency: weekly
ignore:
- stripe@23
exclude:
- examples
verify:
- npm test
reviewers:
- your-github-login
labels:
- dependenciesignore skips a migration, exclude leaves folders untouched, verify lists the commands that must pass, and reviewers and labels are applied to the pull request. Experimental migrations, such as openai@5, run only when listed under experimental.
Private repositories
Public repositories are free. Private repositories require the Team plan; without it, the App records the push but does not start the workflow. While online checkout is being prepared, the Team plan is activated on request: write to [email protected] with your GitHub account name. See pricing.
Security
Your code is analysed and tested only inside your own GitHub Actions, in a container without network access and without secrets or write tokens. The UpstreamFix server never clones or runs your code: it receives signed GitHub events and sends a single start event with a token limited to that repository, which it revokes immediately. A separate job validates the result before anything is pushed, and nothing is ever merged automatically.
Uninstall
Uninstall the App from GitHub → Settings → Applications → Installed GitHub Apps, then delete .github/workflows/upstreamfix.yml. Open UpstreamFix pull requests and issues stay in your repository until you close them.