1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Files
docs/content/rest/deployments/branch-policies.md

1.0 KiB

title, allowTitleToDifferFromFilename, shortTitle, intro, versions, topics, autogenerated
title allowTitleToDifferFromFilename shortTitle intro versions topics autogenerated
REST API endpoints for deployment branch policies true Deployment branch policies Use the REST API to manage custom deployment branch policies.
fpt ghec ghes
* * *
API
rest

About deployment branch policies

You can use the REST API to specify custom name patterns that branches must match in order to deploy to an environment. The deployment_branch_policy.custom_branch_policies property for the environment must be set to true to use these endpoints. To update the deployment_branch_policy for an environment, see AUTOTITLE.

For more information about restricting environment deployments to certain branches, see AUTOTITLE.