repo
scope to use this endpoint. GitHub Apps must have the administration:write
permission for the repository to use this endpoint.curl --location --request PUT 'https://api.github.com/repos///environments//deployment-branch-policies/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "release/*"
}'
{
"id": 361471,
"name": "release/*",
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
}
/
. For example, to match branches that begin with release/
and contain an additional single slash, use release/*/*
.