[Wrangler] Add Workflows sendEvent wrangler command
Fixes WOR-1057.
This adds a new command to wrangler wrangler workflows instances send-event <name> <id> with options --type and --payload to allow users to just call this command to send an event to a deployed running workflow instance rather than having to implement it themselves or having to use the API.
- Tests
- [x] Tests included/updated
- [ ] Tests not necessary because:
- Public documentation
- [ ] Cloudflare docs PR(s):
- [x] Documentation not necessary because: it will be automatic
- Wrangler V3 Backport
- [ ] Wrangler PR:
- [x] Not necessary because: Workflows were not GA in v3
A picture of a cute animal (not mandatory, but encouraged)
Okay, if you really want... here is the cutest dog (@sidharthachatterjee) Now try not to fall in love
🦋 Changeset detected
Latest commit: d18edef6d1a5d1d86627a0677c7dc052b1eeea0e
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Failed to automatically backport this PR's changes to Wrangler v3. Please manually create a PR targeting the v3-maintenance branch with your changes. Thank you for helping us keep Wrangler v3 supported!
Depending on your changes, running git rebase --onto v3-maintenance main osilva/add-send-event-wrangler-command might be a good starting point.
Notes:
- your PR branch should be named
v3-backport-11590 - add the
skip-v3-prlabel to the current PR to stop this workflow from failing
LGTM from the workflows team
Could you please get an approval from within your team first ? (That's the usual process from contributions originating from outside the ANT team). Thanks
I have an approval from my team. Caio left a comment above