View all articles

When should deployments.setPullServices be called in a monorepo setup?

Use deployments.setPullServices after code merges and before calling deployments.create. This ensures accurate pull request attribution and prevents deployments from being linked to incorrect or unassigned pull requests.

For best practices on how to structure deployments and use DX APIs effectively, see Setting up DORA metrics in DX.