@@ -88,6 +88,16 @@ describe("blockRepositoryBranchRuleset", () => {
88
88
expect ( creation ) . toMatchInlineSnapshot ( `
89
89
{
90
90
"requests": [
91
+ {
92
+ "endpoint": "DELETE /repos/{owner}/{repo}/branches/{branch}/protection",
93
+ "parameters": {
94
+ "branch": "main",
95
+ "owner": "test-owner",
96
+ "repo": "test-repository",
97
+ },
98
+ "silent": true,
99
+ "type": "octokit",
100
+ },
91
101
{
92
102
"endpoint": "POST /repos/{owner}/{repo}/rulesets",
93
103
"parameters": {
@@ -244,6 +254,16 @@ describe("blockRepositoryBranchRuleset", () => {
244
254
expect ( creation ) . toMatchInlineSnapshot ( `
245
255
{
246
256
"requests": [
257
+ {
258
+ "endpoint": "DELETE /repos/{owner}/{repo}/branches/{branch}/protection",
259
+ "parameters": {
260
+ "branch": "main",
261
+ "owner": "test-owner",
262
+ "repo": "test-repository",
263
+ },
264
+ "silent": true,
265
+ "type": "octokit",
266
+ },
247
267
{
248
268
"endpoint": "POST /repos/{owner}/{repo}/rulesets",
249
269
"parameters": {
@@ -320,6 +340,16 @@ describe("blockRepositoryBranchRuleset", () => {
320
340
expect ( creation ) . toMatchInlineSnapshot ( `
321
341
{
322
342
"requests": [
343
+ {
344
+ "endpoint": "DELETE /repos/{owner}/{repo}/branches/{branch}/protection",
345
+ "parameters": {
346
+ "branch": "main",
347
+ "owner": "test-owner",
348
+ "repo": "test-repository",
349
+ },
350
+ "silent": true,
351
+ "type": "octokit",
352
+ },
323
353
{
324
354
"endpoint": "POST /repos/{owner}/{repo}/rulesets",
325
355
"parameters": {
@@ -399,6 +429,16 @@ describe("blockRepositoryBranchRuleset", () => {
399
429
expect ( creation ) . toMatchInlineSnapshot ( `
400
430
{
401
431
"requests": [
432
+ {
433
+ "endpoint": "DELETE /repos/{owner}/{repo}/branches/{branch}/protection",
434
+ "parameters": {
435
+ "branch": "main",
436
+ "owner": "test-owner",
437
+ "repo": "test-repository",
438
+ },
439
+ "silent": true,
440
+ "type": "octokit",
441
+ },
402
442
{
403
443
"endpoint": "PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}",
404
444
"parameters": {
0 commit comments