Require approval for posts
A workspace policy holds every post, or only posts to certain channels, for a reviewer:Post once, after approval
- The call matches the policy. Nothing is posted, and the message waits in the console for a reviewer.
- The reviewer approves, and Invoke posts the message once. The receipt records who approved it.
- If the reviewer rejects it,
call()throwsDeniedErrorand nothing is posted. - The release key names the post, so the same announcement can’t go out twice.
Keep the message true
Invoke posts the message exactly as approved. It doesn’t re-check your deployment after the reviewer approves. So check the facts withPOST /state/verify before you send the call. For example, confirm the deployment status is still success, and don’t post unless the answer is verified. Also write the message so the reviewer can judge it: link the deploy and name the version.
Next steps
- Approvals: the approval lifecycle
- TypeScript SDK:
waitForApprovaland approval errors