[
  {
    "scope": "https://api.github.com:443",
    "method": "get",
    "path": "/repos/octokit-fixture-org/branch-protection/branches/main/protection",
    "body": "",
    "status": 404,
    "response": {
      "message": "Branch not protected",
      "documentation_url": "https://docs.github.com/rest/reference/repos#get-branch-protection"
    },
    "reqheaders": {
      "accept": "application/vnd.github.v3+json",
      "authorization": "token 0000000000000000000000000000000000000001",
      "host": "api.github.com"
    },
    "responseIsBinary": false,
    "headers": {
      "access-control-allow-origin": "*",
      "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset",
      "connection": "close",
      "content-length": "123",
      "content-security-policy": "default-src 'none'",
      "content-type": "application/json; charset=utf-8",
      "date": "Tue, 10 Oct 2017 16:00:00 GMT",
      "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
      "strict-transport-security": "max-age=31536000; includeSubdomains; preload",
      "x-accepted-oauth-scopes": "",
      "x-content-type-options": "nosniff",
      "x-frame-options": "deny",
      "x-github-media-type": "github.v3; format=json",
      "x-github-request-id": "0000:00000:0000000:0000000:00000000",
      "x-oauth-scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow",
      "x-ratelimit-limit": "5000",
      "x-ratelimit-remaining": "4999",
      "x-ratelimit-reset": "1507651200000",
      "x-ratelimit-resource": "core",
      "x-ratelimit-used": 1,
      "x-xss-protection": "0"
    }
  },
  {
    "scope": "https://api.github.com:443",
    "method": "put",
    "path": "/repos/octokit-fixture-org/branch-protection/branches/main/protection",
    "body": {
      "required_status_checks": null,
      "required_pull_request_reviews": null,
      "restrictions": null,
      "enforce_admins": false
    },
    "status": 200,
    "response": {
      "url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection",
      "required_signatures": {
        "url": "https://api.github.com/repos/octokit-fixture-org/tmp-scenario-branch-protection-20220719043700727-wbo1k/branches/main/protection/required_signatures",
        "enabled": false
      },
      "enforce_admins": {
        "url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection/enforce_admins",
        "enabled": false
      },
      "required_linear_history": { "enabled": false },
      "allow_force_pushes": { "enabled": false },
      "allow_deletions": { "enabled": false },
      "block_creations": { "enabled": false },
      "required_conversation_resolution": { "enabled": false }
    },
    "reqheaders": {
      "accept": "application/vnd.github.v3+json",
      "content-type": "application/json; charset=utf-8",
      "authorization": "token 0000000000000000000000000000000000000001",
      "content-length": 111,
      "host": "api.github.com"
    },
    "responseIsBinary": false,
    "headers": {
      "access-control-allow-origin": "*",
      "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset",
      "cache-control": "private, max-age=60, s-maxage=60",
      "connection": "close",
      "content-length": "656",
      "content-security-policy": "default-src 'none'",
      "content-type": "application/json; charset=utf-8",
      "date": "Tue, 10 Oct 2017 16:00:00 GMT",
      "etag": "\"00000000000000000000000000000000\"",
      "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
      "strict-transport-security": "max-age=31536000; includeSubdomains; preload",
      "x-accepted-oauth-scopes": "",
      "x-content-type-options": "nosniff",
      "x-frame-options": "deny",
      "x-github-media-type": "github.v3; format=json",
      "x-github-request-id": "0000:00000:0000000:0000000:00000000",
      "x-oauth-scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow",
      "x-ratelimit-limit": "5000",
      "x-ratelimit-remaining": "4999",
      "x-ratelimit-reset": "1507651200000",
      "x-ratelimit-resource": "core",
      "x-ratelimit-used": 1,
      "x-xss-protection": "0"
    }
  },
  {
    "scope": "https://api.github.com:443",
    "method": "put",
    "path": "/repos/octokit-fixture-org/branch-protection/branches/main/protection",
    "body": {
      "required_status_checks": { "strict": true, "contexts": ["foo/bar"] },
      "required_pull_request_reviews": {
        "dismissal_restrictions": {
          "users": ["octokit-fixture-user-a"],
          "teams": []
        },
        "dismiss_stale_reviews": true,
        "require_code_owner_reviews": false
      },
      "restrictions": {
        "users": ["octokit-fixture-user-a"],
        "teams": ["a-team"]
      },
      "enforce_admins": true
    },
    "status": 200,
    "response": {
      "url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection",
      "required_status_checks": {
        "url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection/required_status_checks",
        "strict": true,
        "contexts": ["foo/bar"],
        "contexts_url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection/required_status_checks/contexts",
        "checks": [{ "context": "foo/bar", "app_id": null }]
      },
      "restrictions": {
        "url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection/restrictions",
        "users_url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection/restrictions/users",
        "teams_url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection/restrictions/teams",
        "apps_url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection/restrictions/apps",
        "users": [
          {
            "login": "octokit-fixture-user-a",
            "id": 1000,
            "node_id": "MDA6RW50aXR5MQ==",
            "avatar_url": "https://avatars.githubusercontent.com/u/1000?v=4",
            "gravatar_id": "",
            "url": "https://api.github.com/users/octokit-fixture-user-a",
            "html_url": "https://github.com/octokit-fixture-user-a",
            "followers_url": "https://api.github.com/users/octokit-fixture-user-a/followers",
            "following_url": "https://api.github.com/users/octokit-fixture-user-a/following{/other_user}",
            "gists_url": "https://api.github.com/users/octokit-fixture-user-a/gists{/gist_id}",
            "starred_url": "https://api.github.com/users/octokit-fixture-user-a/starred{/owner}{/repo}",
            "subscriptions_url": "https://api.github.com/users/octokit-fixture-user-a/subscriptions",
            "organizations_url": "https://api.github.com/users/octokit-fixture-user-a/orgs",
            "repos_url": "https://api.github.com/users/octokit-fixture-user-a/repos",
            "events_url": "https://api.github.com/users/octokit-fixture-user-a/events{/privacy}",
            "received_events_url": "https://api.github.com/users/octokit-fixture-user-a/received_events",
            "type": "User",
            "site_admin": false
          }
        ],
        "teams": [
          {
            "name": "A-Team",
            "id": 1000,
            "node_id": "MDA6RW50aXR5MQ==",
            "slug": "a-team",
            "description": "If you have a problem, if no one else can help you, then if you can find them, maybe you can hire the A-Team!",
            "privacy": "closed",
            "url": "https://api.github.com/organizations/31898100/team/2527061",
            "html_url": "https://github.com/orgs/octokit-fixture-org/teams/a-team",
            "members_url": "https://api.github.com/organizations/31898100/team/2527061/members{/member}",
            "repositories_url": "https://api.github.com/organizations/31898100/team/2527061/repos",
            "permission": "pull",
            "parent": null
          }
        ],
        "apps": []
      },
      "required_pull_request_reviews": {
        "url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection/required_pull_request_reviews",
        "dismiss_stale_reviews": true,
        "require_code_owner_reviews": false,
        "required_approving_review_count": 1,
        "dismissal_restrictions": {
          "url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection/dismissal_restrictions",
          "users_url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection/dismissal_restrictions/users",
          "teams_url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection/dismissal_restrictions/teams",
          "users": [
            {
              "login": "octokit-fixture-user-a",
              "id": 1000,
              "node_id": "MDA6RW50aXR5MQ==",
              "avatar_url": "https://avatars.githubusercontent.com/u/1000?v=4",
              "gravatar_id": "",
              "url": "https://api.github.com/users/octokit-fixture-user-a",
              "html_url": "https://github.com/octokit-fixture-user-a",
              "followers_url": "https://api.github.com/users/octokit-fixture-user-a/followers",
              "following_url": "https://api.github.com/users/octokit-fixture-user-a/following{/other_user}",
              "gists_url": "https://api.github.com/users/octokit-fixture-user-a/gists{/gist_id}",
              "starred_url": "https://api.github.com/users/octokit-fixture-user-a/starred{/owner}{/repo}",
              "subscriptions_url": "https://api.github.com/users/octokit-fixture-user-a/subscriptions",
              "organizations_url": "https://api.github.com/users/octokit-fixture-user-a/orgs",
              "repos_url": "https://api.github.com/users/octokit-fixture-user-a/repos",
              "events_url": "https://api.github.com/users/octokit-fixture-user-a/events{/privacy}",
              "received_events_url": "https://api.github.com/users/octokit-fixture-user-a/received_events",
              "type": "User",
              "site_admin": false
            }
          ],
          "teams": [],
          "apps": []
        }
      },
      "required_signatures": {
        "url": "https://api.github.com/repos/octokit-fixture-org/tmp-scenario-branch-protection-20220719043700727-wbo1k/branches/main/protection/required_signatures",
        "enabled": false
      },
      "enforce_admins": {
        "url": "https://api.github.com/repos/octokit-fixture-org/branch-protection/branches/main/protection/enforce_admins",
        "enabled": true
      },
      "required_linear_history": { "enabled": false },
      "allow_force_pushes": { "enabled": false },
      "allow_deletions": { "enabled": false },
      "block_creations": { "enabled": false },
      "required_conversation_resolution": { "enabled": false }
    },
    "reqheaders": {
      "accept": "application/vnd.github.v3+json",
      "content-type": "application/json; charset=utf-8",
      "authorization": "token 0000000000000000000000000000000000000001",
      "content-length": 329,
      "host": "api.github.com"
    },
    "responseIsBinary": false,
    "headers": {
      "access-control-allow-origin": "*",
      "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset",
      "cache-control": "private, max-age=60, s-maxage=60",
      "connection": "close",
      "content-length": "4973",
      "content-security-policy": "default-src 'none'",
      "content-type": "application/json; charset=utf-8",
      "date": "Tue, 10 Oct 2017 16:00:00 GMT",
      "etag": "\"00000000000000000000000000000000\"",
      "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
      "strict-transport-security": "max-age=31536000; includeSubdomains; preload",
      "x-accepted-oauth-scopes": "",
      "x-content-type-options": "nosniff",
      "x-frame-options": "deny",
      "x-github-media-type": "github.v3; format=json",
      "x-github-request-id": "0000:00000:0000000:0000000:00000000",
      "x-oauth-scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow",
      "x-ratelimit-limit": "5000",
      "x-ratelimit-remaining": "4999",
      "x-ratelimit-reset": "1507651200000",
      "x-ratelimit-resource": "core",
      "x-ratelimit-used": 1,
      "x-xss-protection": "0"
    }
  },
  {
    "scope": "https://api.github.com:443",
    "method": "delete",
    "path": "/repos/octokit-fixture-org/branch-protection/branches/main/protection",
    "body": "",
    "status": 204,
    "response": "",
    "reqheaders": {
      "accept": "application/vnd.github.v3+json",
      "authorization": "token 0000000000000000000000000000000000000001",
      "host": "api.github.com"
    },
    "responseIsBinary": false,
    "headers": {
      "access-control-allow-origin": "*",
      "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset",
      "connection": "close",
      "content-security-policy": "default-src 'none'",
      "date": "Tue, 10 Oct 2017 16:00:00 GMT",
      "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
      "strict-transport-security": "max-age=31536000; includeSubdomains; preload",
      "x-accepted-oauth-scopes": "",
      "x-content-type-options": "nosniff",
      "x-frame-options": "deny",
      "x-github-media-type": "github.v3; format=json",
      "x-github-request-id": "0000:00000:0000000:0000000:00000000",
      "x-oauth-scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow",
      "x-ratelimit-limit": "5000",
      "x-ratelimit-remaining": "4999",
      "x-ratelimit-reset": "1507651200000",
      "x-ratelimit-resource": "core",
      "x-ratelimit-used": 1,
      "x-xss-protection": "0"
    }
  }
]
