https
PUT
api.github.com
None
/repos/alson/PyGithub/environments/test%2Fenv
{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"wait_timer": 42, "reviewers": [{"type": "User", "id": 19245}], "deployment_branch_policy": {"protected_branches": true, "custom_branch_policies": false}, "prevent_self_review": true}
200
[('Server', 'GitHub.com'), ('Date', 'Wed, 20 Apr 2022 10:41:27 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"6a0e8d2fa745fa04719de5c68f6535950341c778998f7979827ab4a865451879"'), ('X-OAuth-Scopes', 'repo'), ('X-Accepted-OAuth-Scopes', ''), ('github-authentication-token-expiration', '2022-05-13 15:01:13 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4992'), ('X-RateLimit-Reset', '1650454681'), ('X-RateLimit-Used', '8'), ('X-RateLimit-Resource', 'core'), ('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'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0C7:FF6E:A162C:A41FF:625FE356')]
{"id":470015651,"node_id":"EN_kwDOHKhL9c4cA96j","name":"test","url":"https://api.github.com/repos/alson/PyGithub/environments/test/env","html_url":"https://github.com/alson/PyGithub/deployments/activity_log?environments_filter=test%2Fenv","created_at":"2022-04-19T14:04:32Z","updated_at":"2022-04-19T14:04:32Z","can_admins_bypass":true,"protection_rules":[{"id":222463,"node_id":"GA_kwDOHKhL9c4AA2T_","type":"required_reviewers","prevent_self_review":true,"reviewers":[{"type":"User","reviewer":{"login":"alson","id":19245,"node_id":"MDQ6VXNlcjE5MjQ1","avatar_url":"https://avatars.githubusercontent.com/u/19245?v=4","gravatar_id":"","url":"https://api.github.com/users/alson","html_url":"https://github.com/alson","followers_url":"https://api.github.com/users/alson/followers","following_url":"https://api.github.com/users/alson/following{/other_user}","gists_url":"https://api.github.com/users/alson/gists{/gist_id}","starred_url":"https://api.github.com/users/alson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alson/subscriptions","organizations_url":"https://api.github.com/users/alson/orgs","repos_url":"https://api.github.com/users/alson/repos","events_url":"https://api.github.com/users/alson/events{/privacy}","received_events_url":"https://api.github.com/users/alson/received_events","type":"User","user_view_type":"public","site_admin":false}}]},{"id":222464,"node_id":"GA_kwDOHKhL9c4AA2UA","type":"wait_timer","wait_timer":42},{"id":222465,"node_id":"GA_kwDOHKhL9c4AA2UB","type":"branch_policy"}],"deployment_branch_policy":{"protected_branches":true,"custom_branch_policies":false}}
