- »
- [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)
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AstroMined/pygithub-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server