- »
- [Reference](https://pygithub.readthedocs.io/en/stable/reference.html) »
- [Github objects](https://pygithub.readthedocs.io/en/stable/github_objects.html) »
- EnvironmentDeploymentBranchPolicy
- [View page source](https://pygithub.readthedocs.io/en/stable/_sources/github_objects/EnvironmentDeploymentBranchPolicy.rst.txt)
* * *
# EnvironmentDeploymentBranchPolicy [¶](https://pygithub.readthedocs.io/en/stable/github_objects/EnvironmentDeploymentBranchPolicy.html\#environmentdeploymentbranchpolicy "Permalink to this headline")
_class_ `github.EnvironmentDeploymentBranchPolicy.` `EnvironmentDeploymentBranchPolicy` [¶](https://pygithub.readthedocs.io/en/stable/github_objects/EnvironmentDeploymentBranchPolicy.html#github.EnvironmentDeploymentBranchPolicy.EnvironmentDeploymentBranchPolicy "Permalink to this definition")
This class represents a deployment branch policy for an environment.
The reference can be found here
[https://docs.github.com/en/rest/reference/deployments#environments](https://docs.github.com/en/rest/reference/deployments#environments)