Skip to content

Can I use "Update branch protection" API to create new protection for some branchs apply branch name pattern #24338

Discussion options

You must be logged in to vote

@k19810703 Welcome to GitHub community 👋 👋

I am not sure you can achieve it using REST V3 API but still it can be done using GraphQL V4.

See below for Query

Output

Before

After

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment