{"action":"closed","number":125,"pull_request":{"url":"https://api.github.com/repos/desihub/desiutil/pulls/125","id":227004368,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3MDA0MzY4","html_url":"https://github.com/desihub/desiutil/pull/125","diff_url":"https://github.com/desihub/desiutil/pull/125.diff","patch_url":"https://github.com/desihub/desiutil/pull/125.patch","issue_url":"https://api.github.com/repos/desihub/desiutil/issues/125","number":125,"state":"closed","locked":false,"title":"Permission unlock","user":{"login":"weaverba137","id":3780690,"node_id":"MDQ6VXNlcjM3ODA2OTA=","avatar_url":"https://avatars1.githubusercontent.com/u/3780690?v=4","gravatar_id":"","url":"https://api.github.com/users/weaverba137","html_url":"https://github.com/weaverba137","followers_url":"https://api.github.com/users/weaverba137/followers","following_url":"https://api.github.com/users/weaverba137/following{/other_user}","gists_url":"https://api.github.com/users/weaverba137/gists{/gist_id}","starred_url":"https://api.github.com/users/weaverba137/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaverba137/subscriptions","organizations_url":"https://api.github.com/users/weaverba137/orgs","repos_url":"https://api.github.com/users/weaverba137/repos","events_url":"https://api.github.com/users/weaverba137/events{/privacy}","received_events_url":"https://api.github.com/users/weaverba137/received_events","type":"User","site_admin":false},"body":"This PR fixes #123.  In so doing:\r\n\r\n* Permission changes on Module files are moved into the `modules.py` file.\r\n* A new context manager, `unlock_file()`, temporarily grants user-write permission on a read-only file.  This might be useful in other code, so it's available in `desiutil.io`.  It is a drop-in replacement for the Python built-in `open()`.\r\n","created_at":"2018-10-30T16:59:46Z","updated_at":"2018-11-14T19:41:09Z","closed_at":"2018-11-14T19:41:08Z","merged_at":"2018-11-14T19:41:08Z","merge_commit_sha":"f3420e60b618705fb96676a15016a5103d2ea3ad","assignee":{"login":"weaverba137","id":3780690,"node_id":"MDQ6VXNlcjM3ODA2OTA=","avatar_url":"https://avatars1.githubusercontent.com/u/3780690?v=4","gravatar_id":"","url":"https://api.github.com/users/weaverba137","html_url":"https://github.com/weaverba137","followers_url":"https://api.github.com/users/weaverba137/followers","following_url":"https://api.github.com/users/weaverba137/following{/other_user}","gists_url":"https://api.github.com/users/weaverba137/gists{/gist_id}","starred_url":"https://api.github.com/users/weaverba137/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaverba137/subscriptions","organizations_url":"https://api.github.com/users/weaverba137/orgs","repos_url":"https://api.github.com/users/weaverba137/repos","events_url":"https://api.github.com/users/weaverba137/events{/privacy}","received_events_url":"https://api.github.com/users/weaverba137/received_events","type":"User","site_admin":false},"assignees":[{"login":"weaverba137","id":3780690,"node_id":"MDQ6VXNlcjM3ODA2OTA=","avatar_url":"https://avatars1.githubusercontent.com/u/3780690?v=4","gravatar_id":"","url":"https://api.github.com/users/weaverba137","html_url":"https://github.com/weaverba137","followers_url":"https://api.github.com/users/weaverba137/followers","following_url":"https://api.github.com/users/weaverba137/following{/other_user}","gists_url":"https://api.github.com/users/weaverba137/gists{/gist_id}","starred_url":"https://api.github.com/users/weaverba137/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaverba137/subscriptions","organizations_url":"https://api.github.com/users/weaverba137/orgs","repos_url":"https://api.github.com/users/weaverba137/repos","events_url":"https://api.github.com/users/weaverba137/events{/privacy}","received_events_url":"https://api.github.com/users/weaverba137/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/desihub/desiutil/pulls/125/commits","review_comments_url":"https://api.github.com/repos/desihub/desiutil/pulls/125/comments","review_comment_url":"https://api.github.com/repos/desihub/desiutil/pulls/comments{/number}","comments_url":"https://api.github.com/repos/desihub/desiutil/issues/125/comments","statuses_url":"https://api.github.com/repos/desihub/desiutil/statuses/218e46d08e0cd4bc724d72c93df554992fb4b274","head":{"label":"desihub:permission-unlock","ref":"permission-unlock","sha":"218e46d08e0cd4bc724d72c93df554992fb4b274","user":{"login":"desihub","id":9540621,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk1NDA2MjE=","avatar_url":"https://avatars3.githubusercontent.com/u/9540621?v=4","gravatar_id":"","url":"https://api.github.com/users/desihub","html_url":"https://github.com/desihub","followers_url":"https://api.github.com/users/desihub/followers","following_url":"https://api.github.com/users/desihub/following{/other_user}","gists_url":"https://api.github.com/users/desihub/gists{/gist_id}","starred_url":"https://api.github.com/users/desihub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desihub/subscriptions","organizations_url":"https://api.github.com/users/desihub/orgs","repos_url":"https://api.github.com/users/desihub/repos","events_url":"https://api.github.com/users/desihub/events{/privacy}","received_events_url":"https://api.github.com/users/desihub/received_events","type":"Organization","site_admin":false},"repo":{"id":40208831,"node_id":"MDEwOlJlcG9zaXRvcnk0MDIwODgzMQ==","name":"desiutil","full_name":"desihub/desiutil","private":false,"owner":{"login":"desihub","id":9540621,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk1NDA2MjE=","avatar_url":"https://avatars3.githubusercontent.com/u/9540621?v=4","gravatar_id":"","url":"https://api.github.com/users/desihub","html_url":"https://github.com/desihub","followers_url":"https://api.github.com/users/desihub/followers","following_url":"https://api.github.com/users/desihub/following{/other_user}","gists_url":"https://api.github.com/users/desihub/gists{/gist_id}","starred_url":"https://api.github.com/users/desihub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desihub/subscriptions","organizations_url":"https://api.github.com/users/desihub/orgs","repos_url":"https://api.github.com/users/desihub/repos","events_url":"https://api.github.com/users/desihub/events{/privacy}","received_events_url":"https://api.github.com/users/desihub/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/desihub/desiutil","description":"General DESI utilities, shell scripts, desiInstall, etc.","fork":false,"url":"https://api.github.com/repos/desihub/desiutil","forks_url":"https://api.github.com/repos/desihub/desiutil/forks","keys_url":"https://api.github.com/repos/desihub/desiutil/keys{/key_id}","collaborators_url":"https://api.github.com/repos/desihub/desiutil/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/desihub/desiutil/teams","hooks_url":"https://api.github.com/repos/desihub/desiutil/hooks","issue_events_url":"https://api.github.com/repos/desihub/desiutil/issues/events{/number}","events_url":"https://api.github.com/repos/desihub/desiutil/events","assignees_url":"https://api.github.com/repos/desihub/desiutil/assignees{/user}","branches_url":"https://api.github.com/repos/desihub/desiutil/branches{/branch}","tags_url":"https://api.github.com/repos/desihub/desiutil/tags","blobs_url":"https://api.github.com/repos/desihub/desiutil/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/desihub/desiutil/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/desihub/desiutil/git/refs{/sha}","trees_url":"https://api.github.com/repos/desihub/desiutil/git/trees{/sha}","statuses_url":"https://api.github.com/repos/desihub/desiutil/statuses/{sha}","languages_url":"https://api.github.com/repos/desihub/desiutil/languages","stargazers_url":"https://api.github.com/repos/desihub/desiutil/stargazers","contributors_url":"https://api.github.com/repos/desihub/desiutil/contributors","subscribers_url":"https://api.github.com/repos/desihub/desiutil/subscribers","subscription_url":"https://api.github.com/repos/desihub/desiutil/subscription","commits_url":"https://api.github.com/repos/desihub/desiutil/commits{/sha}","git_commits_url":"https://api.github.com/repos/desihub/desiutil/git/commits{/sha}","comments_url":"https://api.github.com/repos/desihub/desiutil/comments{/number}","issue_comment_url":"https://api.github.com/repos/desihub/desiutil/issues/comments{/number}","contents_url":"https://api.github.com/repos/desihub/desiutil/contents/{+path}","compare_url":"https://api.github.com/repos/desihub/desiutil/compare/{base}...{head}","merges_url":"https://api.github.com/repos/desihub/desiutil/merges","archive_url":"https://api.github.com/repos/desihub/desiutil/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/desihub/desiutil/downloads","issues_url":"https://api.github.com/repos/desihub/desiutil/issues{/number}","pulls_url":"https://api.github.com/repos/desihub/desiutil/pulls{/number}","milestones_url":"https://api.github.com/repos/desihub/desiutil/milestones{/number}","notifications_url":"https://api.github.com/repos/desihub/desiutil/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/desihub/desiutil/labels{/name}","releases_url":"https://api.github.com/repos/desihub/desiutil/releases{/id}","deployments_url":"https://api.github.com/repos/desihub/desiutil/deployments","created_at":"2015-08-04T21:00:20Z","updated_at":"2018-11-14T18:08:33Z","pushed_at":"2018-11-14T19:41:08Z","git_url":"git://github.com/desihub/desiutil.git","ssh_url":"git@github.com:desihub/desiutil.git","clone_url":"https://github.com/desihub/desiutil.git","svn_url":"https://github.com/desihub/desiutil","homepage":null,"size":1858,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":5,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"desihub:master","ref":"master","sha":"07df949c0cd4e94db02a8941b369899245df5af0","user":{"login":"desihub","id":9540621,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk1NDA2MjE=","avatar_url":"https://avatars3.githubusercontent.com/u/9540621?v=4","gravatar_id":"","url":"https://api.github.com/users/desihub","html_url":"https://github.com/desihub","followers_url":"https://api.github.com/users/desihub/followers","following_url":"https://api.github.com/users/desihub/following{/other_user}","gists_url":"https://api.github.com/users/desihub/gists{/gist_id}","starred_url":"https://api.github.com/users/desihub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desihub/subscriptions","organizations_url":"https://api.github.com/users/desihub/orgs","repos_url":"https://api.github.com/users/desihub/repos","events_url":"https://api.github.com/users/desihub/events{/privacy}","received_events_url":"https://api.github.com/users/desihub/received_events","type":"Organization","site_admin":false},"repo":{"id":40208831,"node_id":"MDEwOlJlcG9zaXRvcnk0MDIwODgzMQ==","name":"desiutil","full_name":"desihub/desiutil","private":false,"owner":{"login":"desihub","id":9540621,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk1NDA2MjE=","avatar_url":"https://avatars3.githubusercontent.com/u/9540621?v=4","gravatar_id":"","url":"https://api.github.com/users/desihub","html_url":"https://github.com/desihub","followers_url":"https://api.github.com/users/desihub/followers","following_url":"https://api.github.com/users/desihub/following{/other_user}","gists_url":"https://api.github.com/users/desihub/gists{/gist_id}","starred_url":"https://api.github.com/users/desihub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desihub/subscriptions","organizations_url":"https://api.github.com/users/desihub/orgs","repos_url":"https://api.github.com/users/desihub/repos","events_url":"https://api.github.com/users/desihub/events{/privacy}","received_events_url":"https://api.github.com/users/desihub/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/desihub/desiutil","description":"General DESI utilities, shell scripts, desiInstall, etc.","fork":false,"url":"https://api.github.com/repos/desihub/desiutil","forks_url":"https://api.github.com/repos/desihub/desiutil/forks","keys_url":"https://api.github.com/repos/desihub/desiutil/keys{/key_id}","collaborators_url":"https://api.github.com/repos/desihub/desiutil/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/desihub/desiutil/teams","hooks_url":"https://api.github.com/repos/desihub/desiutil/hooks","issue_events_url":"https://api.github.com/repos/desihub/desiutil/issues/events{/number}","events_url":"https://api.github.com/repos/desihub/desiutil/events","assignees_url":"https://api.github.com/repos/desihub/desiutil/assignees{/user}","branches_url":"https://api.github.com/repos/desihub/desiutil/branches{/branch}","tags_url":"https://api.github.com/repos/desihub/desiutil/tags","blobs_url":"https://api.github.com/repos/desihub/desiutil/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/desihub/desiutil/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/desihub/desiutil/git/refs{/sha}","trees_url":"https://api.github.com/repos/desihub/desiutil/git/trees{/sha}","statuses_url":"https://api.github.com/repos/desihub/desiutil/statuses/{sha}","languages_url":"https://api.github.com/repos/desihub/desiutil/languages","stargazers_url":"https://api.github.com/repos/desihub/desiutil/stargazers","contributors_url":"https://api.github.com/repos/desihub/desiutil/contributors","subscribers_url":"https://api.github.com/repos/desihub/desiutil/subscribers","subscription_url":"https://api.github.com/repos/desihub/desiutil/subscription","commits_url":"https://api.github.com/repos/desihub/desiutil/commits{/sha}","git_commits_url":"https://api.github.com/repos/desihub/desiutil/git/commits{/sha}","comments_url":"https://api.github.com/repos/desihub/desiutil/comments{/number}","issue_comment_url":"https://api.github.com/repos/desihub/desiutil/issues/comments{/number}","contents_url":"https://api.github.com/repos/desihub/desiutil/contents/{+path}","compare_url":"https://api.github.com/repos/desihub/desiutil/compare/{base}...{head}","merges_url":"https://api.github.com/repos/desihub/desiutil/merges","archive_url":"https://api.github.com/repos/desihub/desiutil/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/desihub/desiutil/downloads","issues_url":"https://api.github.com/repos/desihub/desiutil/issues{/number}","pulls_url":"https://api.github.com/repos/desihub/desiutil/pulls{/number}","milestones_url":"https://api.github.com/repos/desihub/desiutil/milestones{/number}","notifications_url":"https://api.github.com/repos/desihub/desiutil/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/desihub/desiutil/labels{/name}","releases_url":"https://api.github.com/repos/desihub/desiutil/releases{/id}","deployments_url":"https://api.github.com/repos/desihub/desiutil/deployments","created_at":"2015-08-04T21:00:20Z","updated_at":"2018-11-14T18:08:33Z","pushed_at":"2018-11-14T19:41:08Z","git_url":"git://github.com/desihub/desiutil.git","ssh_url":"git@github.com:desihub/desiutil.git","clone_url":"https://github.com/desihub/desiutil.git","svn_url":"https://github.com/desihub/desiutil","homepage":null,"size":1858,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":5,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/desihub/desiutil/pulls/125"},"html":{"href":"https://github.com/desihub/desiutil/pull/125"},"issue":{"href":"https://api.github.com/repos/desihub/desiutil/issues/125"},"comments":{"href":"https://api.github.com/repos/desihub/desiutil/issues/125/comments"},"review_comments":{"href":"https://api.github.com/repos/desihub/desiutil/pulls/125/comments"},"review_comment":{"href":"https://api.github.com/repos/desihub/desiutil/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/desihub/desiutil/pulls/125/commits"},"statuses":{"href":"https://api.github.com/repos/desihub/desiutil/statuses/218e46d08e0cd4bc724d72c93df554992fb4b274"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"weaverba137","id":3780690,"node_id":"MDQ6VXNlcjM3ODA2OTA=","avatar_url":"https://avatars1.githubusercontent.com/u/3780690?v=4","gravatar_id":"","url":"https://api.github.com/users/weaverba137","html_url":"https://github.com/weaverba137","followers_url":"https://api.github.com/users/weaverba137/followers","following_url":"https://api.github.com/users/weaverba137/following{/other_user}","gists_url":"https://api.github.com/users/weaverba137/gists{/gist_id}","starred_url":"https://api.github.com/users/weaverba137/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaverba137/subscriptions","organizations_url":"https://api.github.com/users/weaverba137/orgs","repos_url":"https://api.github.com/users/weaverba137/repos","events_url":"https://api.github.com/users/weaverba137/events{/privacy}","received_events_url":"https://api.github.com/users/weaverba137/received_events","type":"User","site_admin":false},"comments":8,"review_comments":0,"maintainer_can_modify":false,"commits":12,"additions":115,"deletions":10,"changed_files":6}}
{"actor":{"display_login":"weaverba137"}}