Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Auto-Fixing Worker Name Mismatch in Git Repository
description: Workers Builds automatically creates a pull request to update the name field in the wrangler file if it doesn’t match your Worker's name in the Cloudflare dashboard.
products:
- workers
date: 2025-02-20T11:00:00Z
---

![Auto-fixing Workers Name in Git Repo](~/assets/images/workers/platform/ci-cd/gh-auto-pr-name.png)

Now, when you import a Git repository as a Worker project or connect a Git repository to an existing Worker, we will automatically check if the Worker name in your Wrangler file differs from the name set in your Cloudflare dashboard.

Starting in **Wrangler v3.109.0+**, we will automatically create a pull request in your Git repository after the first build to update the name field in your Wrangler file to ensure it aligns with your dashboard settings.

Why this matters:

- Avoids deployment issues caused by name mismatches
- Keeps your repository and Cloudflare settings in sync
- Automates tedious manual updates

Learn more about [Workers Builds](/workers/ci-cd/builds/).