@@ -107,7 +107,7 @@ _Search_
107107- [ ` GET /search/topics ` ] ( /rest/reference/search#search-topics )
108108- [ ` GET /search/users ` ] ( /rest/reference/search#search-users )
109109
110- {% if currentVersion == "free-pro-team@latest" %}
110+ {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.21" %}
111111### Permission on "actions"
112112
113113- [ ` GET /repos/:owner/:repo/actions/artifacts ` ] ( /rest/reference/actions#list-artifacts-for-a-repository ) (: read )
@@ -202,6 +202,9 @@ _Branches_
202202- [ ` POST /repos/:owner/:repo/branches/:branch/protection/restrictions/users ` ] ( /rest/reference/repos#add-user-access-restrictions ) (: write )
203203- [ ` PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/users ` ] ( /rest/reference/repos#set-user-access-restrictions ) (: write )
204204- [ ` DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/users ` ] ( /rest/reference/repos#remove-user-access-restrictions ) (: write )
205+ {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.0" or currentVersion == "github-ae@latest" %}
206+ - [ ` POST /repos/:owner/:repo/branches/:branch/rename ` ] ( /rest/reference/repos#rename-a-branch ) (: write )
207+ {% endif %}
205208
206209_ Collaborators_
207210- [ ` PUT /repos/:owner/:repo/collaborators/:username ` ] ( /rest/reference/repos#add-a-repository-collaborator ) (: write )
@@ -347,6 +350,9 @@ _Branches_
347350- [ ` POST /repos/:owner/:repo/branches/:branch/protection/restrictions/apps ` ] ( /rest/reference/repos#add-app-access-restrictions ) (: write )
348351- [ ` PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/apps ` ] ( /rest/reference/repos#set-app-access-restrictions ) (: write )
349352- [ ` DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/apps ` ] ( /rest/reference/repos#remove-user-access-restrictions ) (: write )
353+ {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.0" or currentVersion == "github-ae@latest" %}
354+ - [ ` POST /repos/:owner/:repo/branches/:branch/rename ` ] ( /rest/reference/repos#rename-a-branch ) (: write )
355+ {% endif %}
350356
351357_ Commit comments_
352358- [ ` PATCH /repos/:owner/:repo/comments/:comment_id ` ] ( /rest/reference/repos#update-a-commit-comment ) (: write )
0 commit comments