{"action":"created","comment":{"url":"https://api.github.com/repos/patacrep/patacrep/pulls/comments/48400338","id":48400338,"diff_hunk":"@@ -1,17 +1,26 @@\n-bookoptions: \n-  - \"diagram\"\n-  - \"repeatchords\"\n-  - \"lilypond\"\n-  - \"pictures\"\n-booktype: \"chorded\"\n-datadir: \".\"\n-template: \"patacrep.tex\"\n-lang: \"fr\"\n-encoding: \"utf8\"\n-authwords: \n-  sep: \n+book:\n+  lang: fr\n+  encoding: utf8\n+  template: patacrep.tex\n+  datadir: \".\"\n+  pictures: yes\n+chords:\n+  show: yes\n+  diagramreminder: all\n+  repeatchords: yes\n+\n+authors:\n+  separators:\n     - \"and\"\n     - \"et\"\n-content: \n-  - \n-    - \"sorted\"\n\\ No newline at end of file\n+content: [[\"sorted\"]]\n+\n+template:\n+  patacrep.tex:","path":"examples/example-all.yaml.sb","position":35,"original_position":35,"commit_id":"342ffe8919ffc42ff1b9055b412b26d07fe47ce0","original_commit_id":"2547a750a4e8fb402133731f8fef09fd69020e64","user":{"login":"oliverpool","id":3864879,"avatar_url":"https://avatars.githubusercontent.com/u/3864879?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverpool","html_url":"https://github.com/oliverpool","followers_url":"https://api.github.com/users/oliverpool/followers","following_url":"https://api.github.com/users/oliverpool/following{/other_user}","gists_url":"https://api.github.com/users/oliverpool/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverpool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverpool/subscriptions","organizations_url":"https://api.github.com/users/oliverpool/orgs","repos_url":"https://api.github.com/users/oliverpool/repos","events_url":"https://api.github.com/users/oliverpool/events{/privacy}","received_events_url":"https://api.github.com/users/oliverpool/received_events","type":"User","site_admin":false},"body":"Oui, via `template['patacrep.tex'].color.songlink`.\r\n\r\nLes variables déclarée dans un templates sont automatiquement regroupée dans une section `template['nomdutemplate.tex']`.\r\n\r\nCf https://github.com/patacrep/patacrep/blob/yaml_options/patacrep/data/templates/patacrep.tex#L85","created_at":"2015-12-24T07:34:49Z","updated_at":"2015-12-24T07:34:49Z","html_url":"https://github.com/patacrep/patacrep/pull/184#discussion_r48400338","pull_request_url":"https://api.github.com/repos/patacrep/patacrep/pulls/184","_links":{"self":{"href":"https://api.github.com/repos/patacrep/patacrep/pulls/comments/48400338"},"html":{"href":"https://github.com/patacrep/patacrep/pull/184#discussion_r48400338"},"pull_request":{"href":"https://api.github.com/repos/patacrep/patacrep/pulls/184"}}},"pull_request":{"url":"https://api.github.com/repos/patacrep/patacrep/pulls/184","id":53962268,"html_url":"https://github.com/patacrep/patacrep/pull/184","diff_url":"https://github.com/patacrep/patacrep/pull/184.diff","patch_url":"https://github.com/patacrep/patacrep/pull/184.patch","issue_url":"https://api.github.com/repos/patacrep/patacrep/issues/184","number":184,"state":"open","locked":false,"title":"Use Rx to check songbook schema","user":{"login":"oliverpool","id":3864879,"avatar_url":"https://avatars.githubusercontent.com/u/3864879?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverpool","html_url":"https://github.com/oliverpool","followers_url":"https://api.github.com/users/oliverpool/followers","following_url":"https://api.github.com/users/oliverpool/following{/other_user}","gists_url":"https://api.github.com/users/oliverpool/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverpool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverpool/subscriptions","organizations_url":"https://api.github.com/users/oliverpool/orgs","repos_url":"https://api.github.com/users/oliverpool/repos","events_url":"https://api.github.com/users/oliverpool/events{/privacy}","received_events_url":"https://api.github.com/users/oliverpool/received_events","type":"User","site_admin":false},"body":"Plutôt que de réinventer la roue pour la vérification du yaml d'un carnet de chant, je propose d'inclure le module [`Rx`](http://rx.codesimply.com/).\r\n\r\nAvantage:\r\n* le système a l'air assez complet et robuste\r\n\r\nInconvénients:\r\n* il faut un apprendre la syntaxe du schema (mais celle-ci n'a pas l'air trop difficile)\r\n* il faut gérer la description et les paramètres par défauts différemment\r\n\r\n","created_at":"2015-12-17T11:02:47Z","updated_at":"2015-12-24T07:34:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8f3662caa5c8925cbc1ff4ce796f0b930866ee9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/patacrep/patacrep/pulls/184/commits","review_comments_url":"https://api.github.com/repos/patacrep/patacrep/pulls/184/comments","review_comment_url":"https://api.github.com/repos/patacrep/patacrep/pulls/comments{/number}","comments_url":"https://api.github.com/repos/patacrep/patacrep/issues/184/comments","statuses_url":"https://api.github.com/repos/patacrep/patacrep/statuses/342ffe8919ffc42ff1b9055b412b26d07fe47ce0","head":{"label":"patacrep:yaml_options","ref":"yaml_options","sha":"342ffe8919ffc42ff1b9055b412b26d07fe47ce0","user":{"login":"patacrep","id":6632026,"avatar_url":"https://avatars.githubusercontent.com/u/6632026?v=3","gravatar_id":"","url":"https://api.github.com/users/patacrep","html_url":"https://github.com/patacrep","followers_url":"https://api.github.com/users/patacrep/followers","following_url":"https://api.github.com/users/patacrep/following{/other_user}","gists_url":"https://api.github.com/users/patacrep/gists{/gist_id}","starred_url":"https://api.github.com/users/patacrep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patacrep/subscriptions","organizations_url":"https://api.github.com/users/patacrep/orgs","repos_url":"https://api.github.com/users/patacrep/repos","events_url":"https://api.github.com/users/patacrep/events{/privacy}","received_events_url":"https://api.github.com/users/patacrep/received_events","type":"Organization","site_admin":false},"repo":{"id":9257808,"name":"patacrep","full_name":"patacrep/patacrep","owner":{"login":"patacrep","id":6632026,"avatar_url":"https://avatars.githubusercontent.com/u/6632026?v=3","gravatar_id":"","url":"https://api.github.com/users/patacrep","html_url":"https://github.com/patacrep","followers_url":"https://api.github.com/users/patacrep/followers","following_url":"https://api.github.com/users/patacrep/following{/other_user}","gists_url":"https://api.github.com/users/patacrep/gists{/gist_id}","starred_url":"https://api.github.com/users/patacrep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patacrep/subscriptions","organizations_url":"https://api.github.com/users/patacrep/orgs","repos_url":"https://api.github.com/users/patacrep/repos","events_url":"https://api.github.com/users/patacrep/events{/privacy}","received_events_url":"https://api.github.com/users/patacrep/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/patacrep/patacrep","description":"Engine for LaTeX songbooks ","fork":false,"url":"https://api.github.com/repos/patacrep/patacrep","forks_url":"https://api.github.com/repos/patacrep/patacrep/forks","keys_url":"https://api.github.com/repos/patacrep/patacrep/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patacrep/patacrep/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patacrep/patacrep/teams","hooks_url":"https://api.github.com/repos/patacrep/patacrep/hooks","issue_events_url":"https://api.github.com/repos/patacrep/patacrep/issues/events{/number}","events_url":"https://api.github.com/repos/patacrep/patacrep/events","assignees_url":"https://api.github.com/repos/patacrep/patacrep/assignees{/user}","branches_url":"https://api.github.com/repos/patacrep/patacrep/branches{/branch}","tags_url":"https://api.github.com/repos/patacrep/patacrep/tags","blobs_url":"https://api.github.com/repos/patacrep/patacrep/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patacrep/patacrep/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patacrep/patacrep/git/refs{/sha}","trees_url":"https://api.github.com/repos/patacrep/patacrep/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patacrep/patacrep/statuses/{sha}","languages_url":"https://api.github.com/repos/patacrep/patacrep/languages","stargazers_url":"https://api.github.com/repos/patacrep/patacrep/stargazers","contributors_url":"https://api.github.com/repos/patacrep/patacrep/contributors","subscribers_url":"https://api.github.com/repos/patacrep/patacrep/subscribers","subscription_url":"https://api.github.com/repos/patacrep/patacrep/subscription","commits_url":"https://api.github.com/repos/patacrep/patacrep/commits{/sha}","git_commits_url":"https://api.github.com/repos/patacrep/patacrep/git/commits{/sha}","comments_url":"https://api.github.com/repos/patacrep/patacrep/comments{/number}","issue_comment_url":"https://api.github.com/repos/patacrep/patacrep/issues/comments{/number}","contents_url":"https://api.github.com/repos/patacrep/patacrep/contents/{+path}","compare_url":"https://api.github.com/repos/patacrep/patacrep/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patacrep/patacrep/merges","archive_url":"https://api.github.com/repos/patacrep/patacrep/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patacrep/patacrep/downloads","issues_url":"https://api.github.com/repos/patacrep/patacrep/issues{/number}","pulls_url":"https://api.github.com/repos/patacrep/patacrep/pulls{/number}","milestones_url":"https://api.github.com/repos/patacrep/patacrep/milestones{/number}","notifications_url":"https://api.github.com/repos/patacrep/patacrep/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patacrep/patacrep/labels{/name}","releases_url":"https://api.github.com/repos/patacrep/patacrep/releases{/id}","created_at":"2013-04-06T09:16:23Z","updated_at":"2015-11-19T12:11:31Z","pushed_at":"2015-12-24T01:07:12Z","git_url":"git://github.com/patacrep/patacrep.git","ssh_url":"git@github.com:patacrep/patacrep.git","clone_url":"https://github.com/patacrep/patacrep.git","svn_url":"https://github.com/patacrep/patacrep","homepage":"www.patacrep.com","size":23663,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":28,"forks":4,"open_issues":28,"watchers":8,"default_branch":"master"}},"base":{"label":"patacrep:master","ref":"master","sha":"c1a871b5499cb1a1250a0ab5c27f5043152533ce","user":{"login":"patacrep","id":6632026,"avatar_url":"https://avatars.githubusercontent.com/u/6632026?v=3","gravatar_id":"","url":"https://api.github.com/users/patacrep","html_url":"https://github.com/patacrep","followers_url":"https://api.github.com/users/patacrep/followers","following_url":"https://api.github.com/users/patacrep/following{/other_user}","gists_url":"https://api.github.com/users/patacrep/gists{/gist_id}","starred_url":"https://api.github.com/users/patacrep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patacrep/subscriptions","organizations_url":"https://api.github.com/users/patacrep/orgs","repos_url":"https://api.github.com/users/patacrep/repos","events_url":"https://api.github.com/users/patacrep/events{/privacy}","received_events_url":"https://api.github.com/users/patacrep/received_events","type":"Organization","site_admin":false},"repo":{"id":9257808,"name":"patacrep","full_name":"patacrep/patacrep","owner":{"login":"patacrep","id":6632026,"avatar_url":"https://avatars.githubusercontent.com/u/6632026?v=3","gravatar_id":"","url":"https://api.github.com/users/patacrep","html_url":"https://github.com/patacrep","followers_url":"https://api.github.com/users/patacrep/followers","following_url":"https://api.github.com/users/patacrep/following{/other_user}","gists_url":"https://api.github.com/users/patacrep/gists{/gist_id}","starred_url":"https://api.github.com/users/patacrep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patacrep/subscriptions","organizations_url":"https://api.github.com/users/patacrep/orgs","repos_url":"https://api.github.com/users/patacrep/repos","events_url":"https://api.github.com/users/patacrep/events{/privacy}","received_events_url":"https://api.github.com/users/patacrep/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/patacrep/patacrep","description":"Engine for LaTeX songbooks ","fork":false,"url":"https://api.github.com/repos/patacrep/patacrep","forks_url":"https://api.github.com/repos/patacrep/patacrep/forks","keys_url":"https://api.github.com/repos/patacrep/patacrep/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patacrep/patacrep/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patacrep/patacrep/teams","hooks_url":"https://api.github.com/repos/patacrep/patacrep/hooks","issue_events_url":"https://api.github.com/repos/patacrep/patacrep/issues/events{/number}","events_url":"https://api.github.com/repos/patacrep/patacrep/events","assignees_url":"https://api.github.com/repos/patacrep/patacrep/assignees{/user}","branches_url":"https://api.github.com/repos/patacrep/patacrep/branches{/branch}","tags_url":"https://api.github.com/repos/patacrep/patacrep/tags","blobs_url":"https://api.github.com/repos/patacrep/patacrep/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patacrep/patacrep/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patacrep/patacrep/git/refs{/sha}","trees_url":"https://api.github.com/repos/patacrep/patacrep/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patacrep/patacrep/statuses/{sha}","languages_url":"https://api.github.com/repos/patacrep/patacrep/languages","stargazers_url":"https://api.github.com/repos/patacrep/patacrep/stargazers","contributors_url":"https://api.github.com/repos/patacrep/patacrep/contributors","subscribers_url":"https://api.github.com/repos/patacrep/patacrep/subscribers","subscription_url":"https://api.github.com/repos/patacrep/patacrep/subscription","commits_url":"https://api.github.com/repos/patacrep/patacrep/commits{/sha}","git_commits_url":"https://api.github.com/repos/patacrep/patacrep/git/commits{/sha}","comments_url":"https://api.github.com/repos/patacrep/patacrep/comments{/number}","issue_comment_url":"https://api.github.com/repos/patacrep/patacrep/issues/comments{/number}","contents_url":"https://api.github.com/repos/patacrep/patacrep/contents/{+path}","compare_url":"https://api.github.com/repos/patacrep/patacrep/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patacrep/patacrep/merges","archive_url":"https://api.github.com/repos/patacrep/patacrep/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patacrep/patacrep/downloads","issues_url":"https://api.github.com/repos/patacrep/patacrep/issues{/number}","pulls_url":"https://api.github.com/repos/patacrep/patacrep/pulls{/number}","milestones_url":"https://api.github.com/repos/patacrep/patacrep/milestones{/number}","notifications_url":"https://api.github.com/repos/patacrep/patacrep/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patacrep/patacrep/labels{/name}","releases_url":"https://api.github.com/repos/patacrep/patacrep/releases{/id}","created_at":"2013-04-06T09:16:23Z","updated_at":"2015-11-19T12:11:31Z","pushed_at":"2015-12-24T01:07:12Z","git_url":"git://github.com/patacrep/patacrep.git","ssh_url":"git@github.com:patacrep/patacrep.git","clone_url":"https://github.com/patacrep/patacrep.git","svn_url":"https://github.com/patacrep/patacrep","homepage":"www.patacrep.com","size":23663,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":28,"forks":4,"open_issues":28,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/patacrep/patacrep/pulls/184"},"html":{"href":"https://github.com/patacrep/patacrep/pull/184"},"issue":{"href":"https://api.github.com/repos/patacrep/patacrep/issues/184"},"comments":{"href":"https://api.github.com/repos/patacrep/patacrep/issues/184/comments"},"review_comments":{"href":"https://api.github.com/repos/patacrep/patacrep/pulls/184/comments"},"review_comment":{"href":"https://api.github.com/repos/patacrep/patacrep/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/patacrep/patacrep/pulls/184/commits"},"statuses":{"href":"https://api.github.com/repos/patacrep/patacrep/statuses/342ffe8919ffc42ff1b9055b412b26d07fe47ce0"}}}}