Add API branch protection #277

Closed
opened 2020-02-13 00:18:42 +00:00 by 6543 · 1 comment
Owner

https://github.com/go-gitea/gitea/pull/9311

The new API endpoints:

GET /repos/{owner}/{repo}/branch_protections   (Get list)
POST ​/repos​/{owner}​/{repo}​/branch_protections  (Create new)
GET ​/repos​/{owner}​/{repo}​/branch_protections​/{branch} (Get a specific))
PATCH ​/repos​/{owner}​/{repo}​/branch_protections​/{branch} (Edit)
DELETE ​/repos​/{owner}​/{repo}​/branch_protections​/{branch}

Also added name of effective branch protection of a branch for repo admins to get more information:

GET ​/repos​/{owner}​/{repo}​/branches​/{branch}

https://github.com/go-gitea/gitea/pull/9311 The new API endpoints: ``` GET /repos/{owner}/{repo}/branch_protections (Get list) POST ​/repos​/{owner}​/{repo}​/branch_protections (Create new) GET ​/repos​/{owner}​/{repo}​/branch_protections​/{branch} (Get a specific)) PATCH ​/repos​/{owner}​/{repo}​/branch_protections​/{branch} (Edit) DELETE ​/repos​/{owner}​/{repo}​/branch_protections​/{branch} ``` Also added name of effective branch protection of a branch for repo admins to get more information: `GET ​/repos​/{owner}​/{repo}​/branches​/{branch}`
6543 added the
kind/feature
label 2020-02-13 00:20:13 +00:00
6543 added this to the v0.12.0 milestone 2020-02-13 00:20:18 +00:00
Author
Owner
extended by https://github.com/go-gitea/gitea/pull/10806
6543 self-assigned this 2020-05-19 13:26:45 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/go-sdk#277
No description provided.