{"id":17686585,"url":"https://github.com/mwarkentin/gatekeeper","last_synced_at":"2025-03-30T20:47:53.561Z","repository":{"id":4496807,"uuid":"5636160","full_name":"mwarkentin/gatekeeper","owner":"mwarkentin","description":"Gatekeeper is a service that lets you temporarily mark an environment as locked for deployment.","archived":false,"fork":false,"pushed_at":"2019-01-10T20:23:18.000Z","size":30,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T23:57:16.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://mwarkentin.github.io/gatekeeper/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mwarkentin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-01T02:17:28.000Z","updated_at":"2018-12-30T19:23:12.000Z","dependencies_parsed_at":"2022-08-29T04:01:21.771Z","dependency_job_id":null,"html_url":"https://github.com/mwarkentin/gatekeeper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwarkentin%2Fgatekeeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwarkentin%2Fgatekeeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwarkentin%2Fgatekeeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwarkentin%2Fgatekeeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mwarkentin","download_url":"https://codeload.github.com/mwarkentin/gatekeeper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246379385,"owners_count":20767696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-24T10:45:19.549Z","updated_at":"2025-03-30T20:47:53.530Z","avatar_url":"https://github.com/mwarkentin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"gatekeeper\n==========\n\nGatekeeper is a service that lets you temporarily mark an environment as locked for deployment.\n\n![Gatekeeper](http://f.cl.ly/items/1d432U1P130t1v0d1h2d/Gate%2520keeper.jpeg)\n\nUsage\n-----\n\n### List all environment locks\n\n```\nGET /locks/\n```\n\n#### Response\nStatus **200 OK**\n\n```\n{\n  \"locks\": [\n    {\n      \"environment\": \"acct-dev\", \n      \"owner\": \"mwarkentin\", \n      \"message\": \"Testing CDN\", \n      \"since\": \"2012-09-03 16:10:29.165004\"\n    }, \n    {\n      \"environment\": \"acct-stage\", \n      \"owner\": \"dlanger\", \n      \"message\": \"Testing weekly email fix branch\", \n      \"since\": \"2012-09-03 15:53:46.717481\"\n    }, \n    {\n      \"environment\": \"acct-prod\", \n      \"owner\": \"dlanger\", \n      \"message\": \"Testing weekly email fix branch\", \n      \"since\": \"2012-09-03 15:52:52.008120\"\n    }\n  ]\n}\n```\n\n### Get the status of a single environment lock\n```\nGET /locks/:environment/\n```\n\n#### Response\nStatus **200 OK**\n\n```\n{\n  \"environment\": \"acct-stage\", \n  \"owner\": \"dlanger\", \n  \"message\": \"Testing weekly email fix branch\", \n  \"since\": \"2012-09-03 15:53:46.717481\"\n}\n```\n\n#### No such environment response\nStatus **404 Not Found**\n\n### Lock an environment\n```\nPOST /locks/:environment/\n```\n\n#### Parameters\n**user**  \n*Required* **string** - User who locked the environment.\n\n**message**  \n*Optional* **string** - Description of why the environment has been locked.\n\n```\n{\n  \"user\": \"mwarkentin\",\n  \"message\": \"Testing CDN\"\n}\n```\n\n#### Successful response\nStatus **200 OK**\n\n```\n{\n  'environment': 'acct-dev', \n  'owner': 'mwarkentin', \n  'message': 'Testing CDN', \n  'since': '2012-09-03 16:10:29.165004'\n}\n```\n\n#### Already locked response\nStatus **409 Conflict**\n\n\n### Unlock an environment\n```\nDELETE /locks/:environment/\n```\n\n#### Successful response\nStatus **200 OK**\n\n#### Already unlocked response\nStatus **404 Not Found**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwarkentin%2Fgatekeeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwarkentin%2Fgatekeeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwarkentin%2Fgatekeeper/lists"}