INTEGRITY Cloudflare Docs

Automatic pull requests

Workers Builds can automatically create pull requests in your repository to configure your project or resolve deployment issues.

Configuration PR

When you connect a repository that does not have a Wrangler configuration file, Workers Builds runs wrangler deploy which triggers automatic project configuration. Instead of failing, it creates a pull request with the necessary configuration for your detected framework.

Why you should merge the PR

Without the configuration in your repository, every build has to run autoconfig first, which means your project gets built twice - once during autoconfig to generate the configuration, and again for the actual deployment. Merging the PR commits the configuration to your repository, so future builds skip autoconfig and go straight to building and deploying. This results in faster deployments and version-controlled settings.

What the PR includes

Example of an automatic configuration pull request created by Workers Builds

The configuration PR may contain changes to the following files, depending on your framework:

PR description

The PR description includes:

Name conflict PR

If Workers Builds detects a mismatch between your Worker name in the Cloudflare dashboard and the name field in your Wrangler configuration file, it will create a pull request to fix the conflict.

This can happen when:

The PR will update the name field in your Wrangler configuration to match the Worker name in the dashboard.

For more details, refer to the name conflict changelog.

Reviewing PRs

When you receive a PR from Workers Builds:

  1. Review the changes - Check that the configuration matches your project requirements
  2. Test the preview - Use the preview link in the PR description to verify everything works
  3. Merge when ready - Once satisfied, merge the PR to enable faster deployments