can't enable branch protection via api #7785

Closed
opened 2025-11-02 07:36:28 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @tysen514 on GitHub (Aug 31, 2021).

  • Gitea version (or commit ref): 1.15.0
  • Operating system: ubuntu / systemd

Description

If a repository already exists, why can't enable branch protection on existing branches via the api?
I can set all the branch protection settings I want, but I can't enable it?

Originally created by @tysen514 on GitHub (Aug 31, 2021). - Gitea version (or commit ref): 1.15.0 - Operating system: ubuntu / systemd ## Description If a repository already exists, why can't enable branch protection on existing branches via the api? I can set all the branch protection settings I want, but I can't enable it?
Author
Owner

@tysen514 commented on GitHub (Aug 31, 2021):

nevermind. I see now what I was doing wrong.

@tysen514 commented on GitHub (Aug 31, 2021): nevermind. I see now what I was doing wrong.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7785