GitHub PullRequestEvent at 2014-04-03 00:52:01
Repository: xblock-sdk
Actor: sefk
Payload: {"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/edx/xblock-sdk/pulls/5","id":14310407,"html_url":"https://github.com/edx/xblock-sdk/pull/5","diff_url":"https://github.com/edx/xblock-sdk/pull/5.diff","patch_url":"https://github.com/edx/xblock-sdk/pull/5.patch","issue_url":"https://api.github.com/repos/edx/xblock-sdk/issues/5","number":5,"state":"open","title":"force short_name to lowercase; add cookiecutter reqt","user":{"login":"sefk","id":621565,"avatar_url":"https://avatars.githubusercontent.com/u/621565?","gravatar_id":"08ddf1c0d47b1542450f6b3fbd6fedf2","url":"https://api.github.com/users/sefk","html_url":"https://github.com/sefk","followers_url":"https://api.github.com/users/sefk/followers","following_url":"https://api.github.com/users/sefk/following{/other_user}","gists_url":"https://api.github.com/users/sefk/gists{/gist_id}","starred_url":"https://api.github.com/users/sefk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sefk/subscriptions","organizations_url":"https://api.github.com/users/sefk/orgs","repos_url":"https://api.github.com/users/sefk/repos","events_url":"https://api.github.com/users/sefk/events{/privacy}","received_events_url":"https://api.github.com/users/sefk/received_events","type":"User","site_admin":false},"body":"Fixes to two problems that tripped me up during this week's\r\nextensibility hackathon:\r\n\r\n1. Missing requirement, \"cookiecutter\"\r\n\r\n2. Even though the instructions say that the short name needs to be\r\n   lower case, if you *miss* that, this creates an xblock that will\r\n   silently fail to load.  This is frustrating to debug.  This change\r\n   just forces the name to all lowercase whenever it's used just using\r\n   Jinja templating.\r\n\r\nPutting \"|lower\" everywhere is kind of a hassle but I couldn't spot an\r\nobvious better way to do.  The cookiecutter config language isn't rich\r\nenough to do variale reassigment.  The hooks don't get passed any of\r\nthese variables, so you can't even do validations in there.","created_at":"2014-04-03T00:52:01Z","updated_at":"2014-04-03T00:52:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/xblock-sdk/pulls/5/commits","review_comments_url":"https://api.github.com/repos/edx/xblock-sdk/pulls/5/comments","review_comment_url":"https://api.github.com/repos/edx/xblock-sdk/pulls/comments/{number}","comments_url":"https://api.github.com/repos/edx/xblock-sdk/issues/5/comments","statuses_url":"https://api.github.com/repos/edx/xblock-sdk/statuses/c95cce4c7ba9a9ab72d755337f3a694b14657190","head":{"label":"edx:sef/post-hackathon","ref":"sef/post-hackathon","sha":"c95cce4c7ba9a9ab72d755337f3a694b14657190","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?","gravatar_id":"e1f6c6dc8772c47c0261cd5df2ed2814","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":17491768,"name":"xblock-sdk","full_name":"edx/xblock-sdk","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?","gravatar_id":"e1f6c6dc8772c47c0261cd5df2ed2814","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/xblock-sdk","description":"Workbench and example xblocks","fork":true,"url":"https://api.github.com/repos/edx/xblock-sdk","forks_url":"https://api.github.com/repos/edx/xblock-sdk/forks","keys_url":"https://api.github.com/repos/edx/xblock-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/xblock-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/xblock-sdk/teams","hooks_url":"https://api.github.com/repos/edx/xblock-sdk/hooks","issue_events_url":"https://api.github.com/repos/edx/xblock-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/edx/xblock-sdk/events","assignees_url":"https://api.github.com/repos/edx/xblock-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/edx/xblock-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/edx/xblock-sdk/tags","blobs_url":"https://api.github.com/repos/edx/xblock-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/xblock-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/xblock-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/xblock-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/xblock-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/xblock-sdk/languages","stargazers_url":"https://api.github.com/repos/edx/xblock-sdk/stargazers","contributors_url":"https://api.github.com/repos/edx/xblock-sdk/contributors","subscribers_url":"https://api.github.com/repos/edx/xblock-sdk/subscribers","subscription_url":"https://api.github.com/repos/edx/xblock-sdk/subscription","commits_url":"https://api.github.com/repos/edx/xblock-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/xblock-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/xblock-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/xblock-sdk/issues/comments/{number}","contents_url":"https://api.github.com/repos/edx/xblock-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/edx/xblock-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/xblock-sdk/merges","archive_url":"https://api.github.com/repos/edx/xblock-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/xblock-sdk/downloads","issues_url":"https://api.github.com/repos/edx/xblock-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/edx/xblock-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/xblock-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/xblock-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/xblock-sdk/labels{/name}","releases_url":"https://api.github.com/repos/edx/xblock-sdk/releases{/id}","created_at":"2014-03-06T20:34:41Z","updated_at":"2014-04-03T00:52:01Z","pushed_at":"2014-04-03T00:51:31Z","git_url":"git://github.com/edx/xblock-sdk.git","ssh_url":"git@github.com:edx/xblock-sdk.git","clone_url":"https://github.com/edx/xblock-sdk.git","svn_url":"https://github.com/edx/xblock-sdk","homepage":"","size":1495,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master","master_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"50ed1646d24f6f0a21d6d0bb074e3b7c8a78fd5a","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?","gravatar_id":"e1f6c6dc8772c47c0261cd5df2ed2814","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":17491768,"name":"xblock-sdk","full_name":"edx/xblock-sdk","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?","gravatar_id":"e1f6c6dc8772c47c0261cd5df2ed2814","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/xblock-sdk","description":"Workbench and example xblocks","fork":true,"url":"https://api.github.com/repos/edx/xblock-sdk","forks_url":"https://api.github.com/repos/edx/xblock-sdk/forks","keys_url":"https://api.github.com/repos/edx/xblock-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/xblock-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/xblock-sdk/teams","hooks_url":"https://api.github.com/repos/edx/xblock-sdk/hooks","issue_events_url":"https://api.github.com/repos/edx/xblock-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/edx/xblock-sdk/events","assignees_url":"https://api.github.com/repos/edx/xblock-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/edx/xblock-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/edx/xblock-sdk/tags","blobs_url":"https://api.github.com/repos/edx/xblock-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/xblock-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/xblock-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/xblock-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/xblock-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/xblock-sdk/languages","stargazers_url":"https://api.github.com/repos/edx/xblock-sdk/stargazers","contributors_url":"https://api.github.com/repos/edx/xblock-sdk/contributors","subscribers_url":"https://api.github.com/repos/edx/xblock-sdk/subscribers","subscription_url":"https://api.github.com/repos/edx/xblock-sdk/subscription","commits_url":"https://api.github.com/repos/edx/xblock-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/xblock-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/xblock-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/xblock-sdk/issues/comments/{number}","contents_url":"https://api.github.com/repos/edx/xblock-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/edx/xblock-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/xblock-sdk/merges","archive_url":"https://api.github.com/repos/edx/xblock-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/xblock-sdk/downloads","issues_url":"https://api.github.com/repos/edx/xblock-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/edx/xblock-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/xblock-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/xblock-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/xblock-sdk/labels{/name}","releases_url":"https://api.github.com/repos/edx/xblock-sdk/releases{/id}","created_at":"2014-03-06T20:34:41Z","updated_at":"2014-04-03T00:52:01Z","pushed_at":"2014-04-03T00:51:31Z","git_url":"git://github.com/edx/xblock-sdk.git","ssh_url":"git@github.com:edx/xblock-sdk.git","clone_url":"https://github.com/edx/xblock-sdk.git","svn_url":"https://github.com/edx/xblock-sdk","homepage":"","size":1495,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/xblock-sdk/pulls/5"},"html":{"href":"https://github.com/edx/xblock-sdk/pull/5"},"issue":{"href":"https://api.github.com/repos/edx/xblock-sdk/issues/5"},"comments":{"href":"https://api.github.com/repos/edx/xblock-sdk/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/xblock-sdk/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/xblock-sdk/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/edx/xblock-sdk/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/edx/xblock-sdk/statuses/c95cce4c7ba9a9ab72d755337f3a694b14657190"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":25,"deletions":23,"changed_files":9}}