{"action":"closed","number":1603,"pull_request":{"url":"https://api.github.com/repos/getnikola/nikola/pulls/1603","id":28218069,"html_url":"https://github.com/getnikola/nikola/pull/1603","diff_url":"https://github.com/getnikola/nikola/pull/1603.diff","patch_url":"https://github.com/getnikola/nikola/pull/1603.patch","issue_url":"https://api.github.com/repos/getnikola/nikola/issues/1603","number":1603,"state":"closed","locked":false,"title":"Allow plugins to provide metadata","user":{"login":"Carreau","id":335567,"avatar_url":"https://avatars.githubusercontent.com/u/335567?v=3","gravatar_id":"","url":"https://api.github.com/users/Carreau","html_url":"https://github.com/Carreau","followers_url":"https://api.github.com/users/Carreau/followers","following_url":"https://api.github.com/users/Carreau/following{/other_user}","gists_url":"https://api.github.com/users/Carreau/gists{/gist_id}","starred_url":"https://api.github.com/users/Carreau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carreau/subscriptions","organizations_url":"https://api.github.com/users/Carreau/orgs","repos_url":"https://api.github.com/users/Carreau/repos","events_url":"https://api.github.com/users/Carreau/events{/privacy}","received_events_url":"https://api.github.com/users/Carreau/received_events","type":"User","site_admin":false},"body":"This allow plugins to provide a way to extract metadata from file the way\r\nthey wish to.\r\n\r\nMetadata will be search first from the default value of as before this\r\nPR. Metadata extracted by the plugin will then be merged into the\r\nmetadata dict, which in turn will be extended by the value in the\r\n`.meta` file if present.\r\n\r\n--- \r\n\r\nSee start of discussion from #1602 \r\n\r\nI tried to get the api to extract metadata by way of plugins, as close as possible as other `get_meta` calls. \r\nI also implement this for 1 plugin (`.ipynb`) the one I'm interested in.\r\n\r\nThis should not change current behavior for reading metadata from other places. ","created_at":"2015-01-28T18:41:39Z","updated_at":"2015-02-02T16:09:31Z","closed_at":"2015-02-02T16:09:30Z","merged_at":"2015-02-02T16:09:30Z","merge_commit_sha":"3d1550cdefad6441160b19b9ad048df2e8ba4a43","assignee":{"login":"Kwpolska","id":327323,"avatar_url":"https://avatars.githubusercontent.com/u/327323?v=3","gravatar_id":"","url":"https://api.github.com/users/Kwpolska","html_url":"https://github.com/Kwpolska","followers_url":"https://api.github.com/users/Kwpolska/followers","following_url":"https://api.github.com/users/Kwpolska/following{/other_user}","gists_url":"https://api.github.com/users/Kwpolska/gists{/gist_id}","starred_url":"https://api.github.com/users/Kwpolska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kwpolska/subscriptions","organizations_url":"https://api.github.com/users/Kwpolska/orgs","repos_url":"https://api.github.com/users/Kwpolska/repos","events_url":"https://api.github.com/users/Kwpolska/events{/privacy}","received_events_url":"https://api.github.com/users/Kwpolska/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/getnikola/nikola/milestones/19","labels_url":"https://api.github.com/repos/getnikola/nikola/milestones/19/labels","id":936103,"number":19,"title":"v7.3.1","description":"Bugfixes and minor features. Unless you write a big feature.","creator":{"login":"ralsina","id":1579,"avatar_url":"https://avatars.githubusercontent.com/u/1579?v=3","gravatar_id":"","url":"https://api.github.com/users/ralsina","html_url":"https://github.com/ralsina","followers_url":"https://api.github.com/users/ralsina/followers","following_url":"https://api.github.com/users/ralsina/following{/other_user}","gists_url":"https://api.github.com/users/ralsina/gists{/gist_id}","starred_url":"https://api.github.com/users/ralsina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralsina/subscriptions","organizations_url":"https://api.github.com/users/ralsina/orgs","repos_url":"https://api.github.com/users/ralsina/repos","events_url":"https://api.github.com/users/ralsina/events{/privacy}","received_events_url":"https://api.github.com/users/ralsina/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":29,"state":"open","created_at":"2015-01-15T01:31:38Z","updated_at":"2015-02-02T16:09:30Z","due_on":"2015-01-28T03:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/getnikola/nikola/pulls/1603/commits","review_comments_url":"https://api.github.com/repos/getnikola/nikola/pulls/1603/comments","review_comment_url":"https://api.github.com/repos/getnikola/nikola/pulls/comments/{number}","comments_url":"https://api.github.com/repos/getnikola/nikola/issues/1603/comments","statuses_url":"https://api.github.com/repos/getnikola/nikola/statuses/90a005a6a055da9d00f6c43415de69e0fd669685","head":{"label":"Carreau:plugin-meta","ref":"plugin-meta","sha":"90a005a6a055da9d00f6c43415de69e0fd669685","user":{"login":"Carreau","id":335567,"avatar_url":"https://avatars.githubusercontent.com/u/335567?v=3","gravatar_id":"","url":"https://api.github.com/users/Carreau","html_url":"https://github.com/Carreau","followers_url":"https://api.github.com/users/Carreau/followers","following_url":"https://api.github.com/users/Carreau/following{/other_user}","gists_url":"https://api.github.com/users/Carreau/gists{/gist_id}","starred_url":"https://api.github.com/users/Carreau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carreau/subscriptions","organizations_url":"https://api.github.com/users/Carreau/orgs","repos_url":"https://api.github.com/users/Carreau/repos","events_url":"https://api.github.com/users/Carreau/events{/privacy}","received_events_url":"https://api.github.com/users/Carreau/received_events","type":"User","site_admin":false},"repo":{"id":29982061,"name":"nikola","full_name":"Carreau/nikola","owner":{"login":"Carreau","id":335567,"avatar_url":"https://avatars.githubusercontent.com/u/335567?v=3","gravatar_id":"","url":"https://api.github.com/users/Carreau","html_url":"https://github.com/Carreau","followers_url":"https://api.github.com/users/Carreau/followers","following_url":"https://api.github.com/users/Carreau/following{/other_user}","gists_url":"https://api.github.com/users/Carreau/gists{/gist_id}","starred_url":"https://api.github.com/users/Carreau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carreau/subscriptions","organizations_url":"https://api.github.com/users/Carreau/orgs","repos_url":"https://api.github.com/users/Carreau/repos","events_url":"https://api.github.com/users/Carreau/events{/privacy}","received_events_url":"https://api.github.com/users/Carreau/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Carreau/nikola","description":"A static website and blog generator","fork":true,"url":"https://api.github.com/repos/Carreau/nikola","forks_url":"https://api.github.com/repos/Carreau/nikola/forks","keys_url":"https://api.github.com/repos/Carreau/nikola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Carreau/nikola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Carreau/nikola/teams","hooks_url":"https://api.github.com/repos/Carreau/nikola/hooks","issue_events_url":"https://api.github.com/repos/Carreau/nikola/issues/events{/number}","events_url":"https://api.github.com/repos/Carreau/nikola/events","assignees_url":"https://api.github.com/repos/Carreau/nikola/assignees{/user}","branches_url":"https://api.github.com/repos/Carreau/nikola/branches{/branch}","tags_url":"https://api.github.com/repos/Carreau/nikola/tags","blobs_url":"https://api.github.com/repos/Carreau/nikola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Carreau/nikola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Carreau/nikola/git/refs{/sha}","trees_url":"https://api.github.com/repos/Carreau/nikola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Carreau/nikola/statuses/{sha}","languages_url":"https://api.github.com/repos/Carreau/nikola/languages","stargazers_url":"https://api.github.com/repos/Carreau/nikola/stargazers","contributors_url":"https://api.github.com/repos/Carreau/nikola/contributors","subscribers_url":"https://api.github.com/repos/Carreau/nikola/subscribers","subscription_url":"https://api.github.com/repos/Carreau/nikola/subscription","commits_url":"https://api.github.com/repos/Carreau/nikola/commits{/sha}","git_commits_url":"https://api.github.com/repos/Carreau/nikola/git/commits{/sha}","comments_url":"https://api.github.com/repos/Carreau/nikola/comments{/number}","issue_comment_url":"https://api.github.com/repos/Carreau/nikola/issues/comments/{number}","contents_url":"https://api.github.com/repos/Carreau/nikola/contents/{+path}","compare_url":"https://api.github.com/repos/Carreau/nikola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Carreau/nikola/merges","archive_url":"https://api.github.com/repos/Carreau/nikola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Carreau/nikola/downloads","issues_url":"https://api.github.com/repos/Carreau/nikola/issues{/number}","pulls_url":"https://api.github.com/repos/Carreau/nikola/pulls{/number}","milestones_url":"https://api.github.com/repos/Carreau/nikola/milestones{/number}","notifications_url":"https://api.github.com/repos/Carreau/nikola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Carreau/nikola/labels{/name}","releases_url":"https://api.github.com/repos/Carreau/nikola/releases{/id}","created_at":"2015-01-28T18:38:10Z","updated_at":"2015-01-28T18:38:12Z","pushed_at":"2015-02-01T18:44:21Z","git_url":"git://github.com/Carreau/nikola.git","ssh_url":"git@github.com:Carreau/nikola.git","clone_url":"https://github.com/Carreau/nikola.git","svn_url":"https://github.com/Carreau/nikola","homepage":"http://getnikola.com/","size":25516,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"getnikola:master","ref":"master","sha":"b6ee1007c964deaacc7558c478b42e0bf5d6d096","user":{"login":"getnikola","id":5413476,"avatar_url":"https://avatars.githubusercontent.com/u/5413476?v=3","gravatar_id":"","url":"https://api.github.com/users/getnikola","html_url":"https://github.com/getnikola","followers_url":"https://api.github.com/users/getnikola/followers","following_url":"https://api.github.com/users/getnikola/following{/other_user}","gists_url":"https://api.github.com/users/getnikola/gists{/gist_id}","starred_url":"https://api.github.com/users/getnikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getnikola/subscriptions","organizations_url":"https://api.github.com/users/getnikola/orgs","repos_url":"https://api.github.com/users/getnikola/repos","events_url":"https://api.github.com/users/getnikola/events{/privacy}","received_events_url":"https://api.github.com/users/getnikola/received_events","type":"Organization","site_admin":false},"repo":{"id":4025121,"name":"nikola","full_name":"getnikola/nikola","owner":{"login":"getnikola","id":5413476,"avatar_url":"https://avatars.githubusercontent.com/u/5413476?v=3","gravatar_id":"","url":"https://api.github.com/users/getnikola","html_url":"https://github.com/getnikola","followers_url":"https://api.github.com/users/getnikola/followers","following_url":"https://api.github.com/users/getnikola/following{/other_user}","gists_url":"https://api.github.com/users/getnikola/gists{/gist_id}","starred_url":"https://api.github.com/users/getnikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getnikola/subscriptions","organizations_url":"https://api.github.com/users/getnikola/orgs","repos_url":"https://api.github.com/users/getnikola/repos","events_url":"https://api.github.com/users/getnikola/events{/privacy}","received_events_url":"https://api.github.com/users/getnikola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getnikola/nikola","description":"A static website and blog generator","fork":false,"url":"https://api.github.com/repos/getnikola/nikola","forks_url":"https://api.github.com/repos/getnikola/nikola/forks","keys_url":"https://api.github.com/repos/getnikola/nikola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getnikola/nikola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getnikola/nikola/teams","hooks_url":"https://api.github.com/repos/getnikola/nikola/hooks","issue_events_url":"https://api.github.com/repos/getnikola/nikola/issues/events{/number}","events_url":"https://api.github.com/repos/getnikola/nikola/events","assignees_url":"https://api.github.com/repos/getnikola/nikola/assignees{/user}","branches_url":"https://api.github.com/repos/getnikola/nikola/branches{/branch}","tags_url":"https://api.github.com/repos/getnikola/nikola/tags","blobs_url":"https://api.github.com/repos/getnikola/nikola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getnikola/nikola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getnikola/nikola/git/refs{/sha}","trees_url":"https://api.github.com/repos/getnikola/nikola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getnikola/nikola/statuses/{sha}","languages_url":"https://api.github.com/repos/getnikola/nikola/languages","stargazers_url":"https://api.github.com/repos/getnikola/nikola/stargazers","contributors_url":"https://api.github.com/repos/getnikola/nikola/contributors","subscribers_url":"https://api.github.com/repos/getnikola/nikola/subscribers","subscription_url":"https://api.github.com/repos/getnikola/nikola/subscription","commits_url":"https://api.github.com/repos/getnikola/nikola/commits{/sha}","git_commits_url":"https://api.github.com/repos/getnikola/nikola/git/commits{/sha}","comments_url":"https://api.github.com/repos/getnikola/nikola/comments{/number}","issue_comment_url":"https://api.github.com/repos/getnikola/nikola/issues/comments/{number}","contents_url":"https://api.github.com/repos/getnikola/nikola/contents/{+path}","compare_url":"https://api.github.com/repos/getnikola/nikola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getnikola/nikola/merges","archive_url":"https://api.github.com/repos/getnikola/nikola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getnikola/nikola/downloads","issues_url":"https://api.github.com/repos/getnikola/nikola/issues{/number}","pulls_url":"https://api.github.com/repos/getnikola/nikola/pulls{/number}","milestones_url":"https://api.github.com/repos/getnikola/nikola/milestones{/number}","notifications_url":"https://api.github.com/repos/getnikola/nikola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getnikola/nikola/labels{/name}","releases_url":"https://api.github.com/repos/getnikola/nikola/releases{/id}","created_at":"2012-04-14T13:53:22Z","updated_at":"2015-02-02T15:53:26Z","pushed_at":"2015-02-02T16:09:31Z","git_url":"git://github.com/getnikola/nikola.git","ssh_url":"git@github.com:getnikola/nikola.git","clone_url":"https://github.com/getnikola/nikola.git","svn_url":"https://github.com/getnikola/nikola","homepage":"http://getnikola.com/","size":25516,"stargazers_count":692,"watchers_count":692,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":210,"mirror_url":null,"open_issues_count":73,"forks":210,"open_issues":73,"watchers":692,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getnikola/nikola/pulls/1603"},"html":{"href":"https://github.com/getnikola/nikola/pull/1603"},"issue":{"href":"https://api.github.com/repos/getnikola/nikola/issues/1603"},"comments":{"href":"https://api.github.com/repos/getnikola/nikola/issues/1603/comments"},"review_comments":{"href":"https://api.github.com/repos/getnikola/nikola/pulls/1603/comments"},"review_comment":{"href":"https://api.github.com/repos/getnikola/nikola/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/getnikola/nikola/pulls/1603/commits"},"statuses":{"href":"https://api.github.com/repos/getnikola/nikola/statuses/90a005a6a055da9d00f6c43415de69e0fd669685"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Kwpolska","id":327323,"avatar_url":"https://avatars.githubusercontent.com/u/327323?v=3","gravatar_id":"","url":"https://api.github.com/users/Kwpolska","html_url":"https://github.com/Kwpolska","followers_url":"https://api.github.com/users/Kwpolska/followers","following_url":"https://api.github.com/users/Kwpolska/following{/other_user}","gists_url":"https://api.github.com/users/Kwpolska/gists{/gist_id}","starred_url":"https://api.github.com/users/Kwpolska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kwpolska/subscriptions","organizations_url":"https://api.github.com/users/Kwpolska/orgs","repos_url":"https://api.github.com/users/Kwpolska/repos","events_url":"https://api.github.com/users/Kwpolska/events{/privacy}","received_events_url":"https://api.github.com/users/Kwpolska/received_events","type":"User","site_admin":false},"comments":7,"review_comments":6,"commits":1,"additions":34,"deletions":5,"changed_files":7}}