cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.73k stars 723 forks source link

feat(cloudflare_pages): add `CI` detection on deploy #7299

Open oritwoen opened 2 days ago

oritwoen commented 2 days ago

This pull request adds support for autofilling parameters when deploying cloudflare pages using CI. Currently on GitLab I have to do something like this:

npx wrangler pages deploy dist --project-name cf-pages-project --commit-hash "$CI_COMMIT_SHORT_SHA" --commit-message "$CI_COMMIT_MESSAGE" --branch $CI_COMMIT_BRANCH

changeset-bot[bot] commented 2 days ago

⚠️ No Changeset found

Latest commit: 83acd916f34adddf7d3b5b08a705553bc689b942

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR