GitHub PullRequestEvent at 2014-08-24 14:37:00
Repository: publish
Actor: mottosso
Payload: {"action":"closed","number":52,"pull_request":{"url":"https://api.github.com/repos/abstractfactory/publish/pulls/52","id":20208037,"html_url":"https://github.com/abstractfactory/publish/pull/52","diff_url":"https://github.com/abstractfactory/publish/pull/52.diff","patch_url":"https://github.com/abstractfactory/publish/pull/52.patch","issue_url":"https://api.github.com/repos/abstractfactory/publish/issues/52","number":52,"state":"closed","locked":false,"title":"Second pass on the configuration system","user":{"login":"mottosso","id":2152766,"avatar_url":"https://avatars.githubusercontent.com/u/2152766?v=2","gravatar_id":"1dc5f5c20aadc75577c7dd365022ebe7","url":"https://api.github.com/users/mottosso","html_url":"https://github.com/mottosso","followers_url":"https://api.github.com/users/mottosso/followers","following_url":"https://api.github.com/users/mottosso/following{/other_user}","gists_url":"https://api.github.com/users/mottosso/gists{/gist_id}","starred_url":"https://api.github.com/users/mottosso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mottosso/subscriptions","organizations_url":"https://api.github.com/users/mottosso/orgs","repos_url":"https://api.github.com/users/mottosso/repos","events_url":"https://api.github.com/users/mottosso/events{/privacy}","received_events_url":"https://api.github.com/users/mottosso/received_events","type":"User","site_admin":false},"body":"An updated configuration system, with cascading user-configuration.\r\n\r\nIn a nutshell, it mimics the configuration of Sublime and Maya amongst others in that it provides a default configuration, `config.json` and also looks for configuration in the users HOME directory. This allows users to store only modified variables in on their local computer that will override the behaviour or Publish, such as which identifier to look for within Maya (currently `publishable`) or which regex to use when looking for validators and so forth.\r\n\r\nThe configuration would persist inbetween updates of Publish and even across installs, and could be persisted either locally or on a central server so as to provide updates for an organisation; similar to `userSetup.py` of Maya.\r\n\r\nFrom the doc-string or `config.py`:\r\n\r\n```python\r\n\"\"\"Publish configuration\r\n\r\nConfiguration is copied into the users HOME directory\r\nupon first use.\r\n\r\nUsage:\r\n    To alter the configuration of Publish to suit your needs,\r\n    simply modify your own copy located at <HOME>/.publish\r\n\r\n    It is a JSON-formatted, plain-text file.\r\n\r\n    Members of the configuration is then accessed via dot-\r\n    notation.\r\n\r\n    >>> import publish.config\r\n    >>> assert publish.config.identifier == 'publishable'\r\n\r\nAttributes:\r\n    identifier: How to distinguish between publishable instances\r\n    prefix: Relative root-directory for extracted instances\r\n    date_format: Format with which to date extracted instances\r\n    paths_environment_variable: Which variable to look for added\r\n        plugin paths.\r\n    *_regex: Regular expression for finding the various plugins.\r\n\r\n\"\"\"\r\n```","created_at":"2014-08-23T08:53:36Z","updated_at":"2014-08-24T14:36:59Z","closed_at":"2014-08-24T14:36:59Z","merged_at":null,"merge_commit_sha":"c7211afc23c14d1f443530f1d597f8c43cc513f5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/abstractfactory/publish/pulls/52/commits","review_comments_url":"https://api.github.com/repos/abstractfactory/publish/pulls/52/comments","review_comment_url":"https://api.github.com/repos/abstractfactory/publish/pulls/comments/{number}","comments_url":"https://api.github.com/repos/abstractfactory/publish/issues/52/comments","statuses_url":"https://api.github.com/repos/abstractfactory/publish/statuses/cc5d859642983cbdf5e0054c9a1a8a5a6d48cb8e","head":{"label":"mottosso:master","ref":"master","sha":"cc5d859642983cbdf5e0054c9a1a8a5a6d48cb8e","user":{"login":"mottosso","id":2152766,"avatar_url":"https://avatars.githubusercontent.com/u/2152766?v=2","gravatar_id":"1dc5f5c20aadc75577c7dd365022ebe7","url":"https://api.github.com/users/mottosso","html_url":"https://github.com/mottosso","followers_url":"https://api.github.com/users/mottosso/followers","following_url":"https://api.github.com/users/mottosso/following{/other_user}","gists_url":"https://api.github.com/users/mottosso/gists{/gist_id}","starred_url":"https://api.github.com/users/mottosso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mottosso/subscriptions","organizations_url":"https://api.github.com/users/mottosso/orgs","repos_url":"https://api.github.com/users/mottosso/repos","events_url":"https://api.github.com/users/mottosso/events{/privacy}","received_events_url":"https://api.github.com/users/mottosso/received_events","type":"User","site_admin":false},"repo":{"id":22553648,"name":"publish","full_name":"mottosso/publish","owner":{"login":"mottosso","id":2152766,"avatar_url":"https://avatars.githubusercontent.com/u/2152766?v=2","gravatar_id":"1dc5f5c20aadc75577c7dd365022ebe7","url":"https://api.github.com/users/mottosso","html_url":"https://github.com/mottosso","followers_url":"https://api.github.com/users/mottosso/followers","following_url":"https://api.github.com/users/mottosso/following{/other_user}","gists_url":"https://api.github.com/users/mottosso/gists{/gist_id}","starred_url":"https://api.github.com/users/mottosso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mottosso/subscriptions","organizations_url":"https://api.github.com/users/mottosso/orgs","repos_url":"https://api.github.com/users/mottosso/repos","events_url":"https://api.github.com/users/mottosso/events{/privacy}","received_events_url":"https://api.github.com/users/mottosso/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mottosso/publish","description":"quality assurance for content","fork":true,"url":"https://api.github.com/repos/mottosso/publish","forks_url":"https://api.github.com/repos/mottosso/publish/forks","keys_url":"https://api.github.com/repos/mottosso/publish/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mottosso/publish/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mottosso/publish/teams","hooks_url":"https://api.github.com/repos/mottosso/publish/hooks","issue_events_url":"https://api.github.com/repos/mottosso/publish/issues/events{/number}","events_url":"https://api.github.com/repos/mottosso/publish/events","assignees_url":"https://api.github.com/repos/mottosso/publish/assignees{/user}","branches_url":"https://api.github.com/repos/mottosso/publish/branches{/branch}","tags_url":"https://api.github.com/repos/mottosso/publish/tags","blobs_url":"https://api.github.com/repos/mottosso/publish/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mottosso/publish/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mottosso/publish/git/refs{/sha}","trees_url":"https://api.github.com/repos/mottosso/publish/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mottosso/publish/statuses/{sha}","languages_url":"https://api.github.com/repos/mottosso/publish/languages","stargazers_url":"https://api.github.com/repos/mottosso/publish/stargazers","contributors_url":"https://api.github.com/repos/mottosso/publish/contributors","subscribers_url":"https://api.github.com/repos/mottosso/publish/subscribers","subscription_url":"https://api.github.com/repos/mottosso/publish/subscription","commits_url":"https://api.github.com/repos/mottosso/publish/commits{/sha}","git_commits_url":"https://api.github.com/repos/mottosso/publish/git/commits{/sha}","comments_url":"https://api.github.com/repos/mottosso/publish/comments{/number}","issue_comment_url":"https://api.github.com/repos/mottosso/publish/issues/comments/{number}","contents_url":"https://api.github.com/repos/mottosso/publish/contents/{+path}","compare_url":"https://api.github.com/repos/mottosso/publish/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mottosso/publish/merges","archive_url":"https://api.github.com/repos/mottosso/publish/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mottosso/publish/downloads","issues_url":"https://api.github.com/repos/mottosso/publish/issues{/number}","pulls_url":"https://api.github.com/repos/mottosso/publish/pulls{/number}","milestones_url":"https://api.github.com/repos/mottosso/publish/milestones{/number}","notifications_url":"https://api.github.com/repos/mottosso/publish/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mottosso/publish/labels{/name}","releases_url":"https://api.github.com/repos/mottosso/publish/releases{/id}","created_at":"2014-08-02T18:24:23Z","updated_at":"2014-08-24T12:25:59Z","pushed_at":"2014-08-24T14:03:21Z","git_url":"git://github.com/mottosso/publish.git","ssh_url":"git@github.com:mottosso/publish.git","clone_url":"https://github.com/mottosso/publish.git","svn_url":"https://github.com/mottosso/publish","homepage":"https://github.com/abstractfactory/publish","size":5499,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"abstractfactory:master","ref":"master","sha":"7d5283e69afc9fb8dd3367d9d40873c33bb2a3e0","user":{"login":"abstractfactory","id":5812121,"avatar_url":"https://avatars.githubusercontent.com/u/5812121?v=2","gravatar_id":null,"url":"https://api.github.com/users/abstractfactory","html_url":"https://github.com/abstractfactory","followers_url":"https://api.github.com/users/abstractfactory/followers","following_url":"https://api.github.com/users/abstractfactory/following{/other_user}","gists_url":"https://api.github.com/users/abstractfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/abstractfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abstractfactory/subscriptions","organizations_url":"https://api.github.com/users/abstractfactory/orgs","repos_url":"https://api.github.com/users/abstractfactory/repos","events_url":"https://api.github.com/users/abstractfactory/events{/privacy}","received_events_url":"https://api.github.com/users/abstractfactory/received_events","type":"Organization","site_admin":false},"repo":{"id":22350324,"name":"publish","full_name":"abstractfactory/publish","owner":{"login":"abstractfactory","id":5812121,"avatar_url":"https://avatars.githubusercontent.com/u/5812121?v=2","gravatar_id":null,"url":"https://api.github.com/users/abstractfactory","html_url":"https://github.com/abstractfactory","followers_url":"https://api.github.com/users/abstractfactory/followers","following_url":"https://api.github.com/users/abstractfactory/following{/other_user}","gists_url":"https://api.github.com/users/abstractfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/abstractfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abstractfactory/subscriptions","organizations_url":"https://api.github.com/users/abstractfactory/orgs","repos_url":"https://api.github.com/users/abstractfactory/repos","events_url":"https://api.github.com/users/abstractfactory/events{/privacy}","received_events_url":"https://api.github.com/users/abstractfactory/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/abstractfactory/publish","description":"quality assurance for content","fork":false,"url":"https://api.github.com/repos/abstractfactory/publish","forks_url":"https://api.github.com/repos/abstractfactory/publish/forks","keys_url":"https://api.github.com/repos/abstractfactory/publish/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abstractfactory/publish/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abstractfactory/publish/teams","hooks_url":"https://api.github.com/repos/abstractfactory/publish/hooks","issue_events_url":"https://api.github.com/repos/abstractfactory/publish/issues/events{/number}","events_url":"https://api.github.com/repos/abstractfactory/publish/events","assignees_url":"https://api.github.com/repos/abstractfactory/publish/assignees{/user}","branches_url":"https://api.github.com/repos/abstractfactory/publish/branches{/branch}","tags_url":"https://api.github.com/repos/abstractfactory/publish/tags","blobs_url":"https://api.github.com/repos/abstractfactory/publish/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abstractfactory/publish/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abstractfactory/publish/git/refs{/sha}","trees_url":"https://api.github.com/repos/abstractfactory/publish/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abstractfactory/publish/statuses/{sha}","languages_url":"https://api.github.com/repos/abstractfactory/publish/languages","stargazers_url":"https://api.github.com/repos/abstractfactory/publish/stargazers","contributors_url":"https://api.github.com/repos/abstractfactory/publish/contributors","subscribers_url":"https://api.github.com/repos/abstractfactory/publish/subscribers","subscription_url":"https://api.github.com/repos/abstractfactory/publish/subscription","commits_url":"https://api.github.com/repos/abstractfactory/publish/commits{/sha}","git_commits_url":"https://api.github.com/repos/abstractfactory/publish/git/commits{/sha}","comments_url":"https://api.github.com/repos/abstractfactory/publish/comments{/number}","issue_comment_url":"https://api.github.com/repos/abstractfactory/publish/issues/comments/{number}","contents_url":"https://api.github.com/repos/abstractfactory/publish/contents/{+path}","compare_url":"https://api.github.com/repos/abstractfactory/publish/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abstractfactory/publish/merges","archive_url":"https://api.github.com/repos/abstractfactory/publish/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abstractfactory/publish/downloads","issues_url":"https://api.github.com/repos/abstractfactory/publish/issues{/number}","pulls_url":"https://api.github.com/repos/abstractfactory/publish/pulls{/number}","milestones_url":"https://api.github.com/repos/abstractfactory/publish/milestones{/number}","notifications_url":"https://api.github.com/repos/abstractfactory/publish/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abstractfactory/publish/labels{/name}","releases_url":"https://api.github.com/repos/abstractfactory/publish/releases{/id}","created_at":"2014-07-28T16:51:15Z","updated_at":"2014-08-07T01:52:28Z","pushed_at":"2014-08-23T15:03:12Z","git_url":"git://github.com/abstractfactory/publish.git","ssh_url":"git@github.com:abstractfactory/publish.git","clone_url":"https://github.com/abstractfactory/publish.git","svn_url":"https://github.com/abstractfactory/publish","homepage":"https://github.com/abstractfactory/publish","size":15557,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":5,"mirror_url":null,"open_issues_count":24,"forks":5,"open_issues":24,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/abstractfactory/publish/pulls/52"},"html":{"href":"https://github.com/abstractfactory/publish/pull/52"},"issue":{"href":"https://api.github.com/repos/abstractfactory/publish/issues/52"},"comments":{"href":"https://api.github.com/repos/abstractfactory/publish/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/abstractfactory/publish/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/abstractfactory/publish/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/abstractfactory/publish/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/abstractfactory/publish/statuses/cc5d859642983cbdf5e0054c9a1a8a5a6d48cb8e"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":3,"review_comments":0,"commits":18,"additions":3858,"deletions":43182,"changed_files":181}}