Skip to content

Commit f5f51bd

Browse files
committed
message change
1 parent 9a55c35 commit f5f51bd

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
---
2-
title: Auto-Fixing Worker Name Error in Git Repository
2+
title: Autofix Worker name configuration errors at build time
33
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.
44
products:
55
- workers
66
date: 2025-02-20T11:00:00Z
77
---
88

9-
![Workers Builds Name Field Warning](~/assets/images/workers/platform/ci-cd/workers-builds-name.png)
9+
![Auto-fixing Workers Name in Git Repo](~/assets/images/workers/platform/ci-cd/gh-auto-pr-name.png)
1010

11-
One of the top reasons for Workers Builds build failures is a mismatch between the Worker name in the Cloudflare dashboard and the name in the Wrangler file in your Git repository. To eliminate this friction, Cloudflare is automating the fix to keep everything in sync.
11+
Small misconfigurations shouldn’t break your deployments. Cloudflare is introducing automatic error detection and fixes in [Workers Builds](/workers/ci-cd/builds/), identifying common issues in your wrangler.toml or wrangler.jsonc and proactively offering fixes, so you spend less time debugging and more time shipping.
1212

13-
![Auto-fixing Workers Name in Git Repo](~/assets/images/workers/platform/ci-cd/gh-auto-pr-name.png)
13+
Here's how it works:
1414

15-
Now, when you import or connect a Git repository, Cloudflare will check for mismatches in the name. Starting in **Wrangler v3.109.0+**, Cloudflare will automatically create a pull request in your Git repository after the build completes to update the name field in your Wrangler file to ensure it aligns with your dashboard settings.
15+
1. Before running your build, Cloudflare checks your Worker's Wrangler configuration file (wrangler.toml or wrangler.jsonc) for common errors.
16+
2. Once you submit a build, if Cloudflare finds an error it can fix, it will submit a pull request to your repository that fixes it.
17+
3. Once you merge this pull request, Cloudflare will run another build.
1618

17-
And this is just the beginning, we’re working on more ways to proactively catch and fix common issues, so your deployments stay smooth.
19+
We're starting with fixing name mismatches between your Wrangler file and the Cloudflare dashboard, a top cause of build failures.
1820

19-
Learn more about [Workers Builds](/workers/ci-cd/builds/).
21+
This is just the beginning, we want your feedback on what other errors we should catch and fix next. Let us know in the Cloudflare Developers Discord, [#workers-and-pages-feature-suggestions](https://discord.com/channels/595317990191398933/1064502845061210152).

0 commit comments

Comments
 (0)