{"action":"created","comment":{"url":"https://api.github.com/repos/progit/progit2-fr/pulls/comments/44857227","id":44857227,"diff_hunk":"@@ -271,23 +241,23 @@ post '/payload' do\n end\n ----\n \n-Hopefully this is fairly simple to follow. In this web hook handler we look through each commit that was just pushed, we look for the string 'Signed-off-by' in the commit message and finally we POST via HTTP to the `/repos/<user>/<repo>/statuses/<commit_sha>` API endpoint with the status.\n+Heureusement c'est assez simple à suivre. Dans ce crochet web, nous examinons chaque _commit_ qui a été poussé, nous cherchons la chaîne \"Signed-off-by\"  dans le message de validation et enfin nous faisons un POST via HTTP au point d'entrée applicatif `/repos/<utilisateur>/<dépôt>/statuses/<commit_sha>` avec le statut.\n \n-In this case you can send a state ('success', 'failure', 'error'), a description of what happened, a target URL the user can go to for more information and a ``context'' in case there are multiple statuses for a single commit. For example, a testing service may provide a status and a validation service like this may also provide a status -- the ``context'' field is how they're differentiated.\n+Dans ce cas, vous pouvez envoyer un état (\"success\", \"failure\", \"error\"), une description de ce qui s'est passé, un URL cible où l'utilisateur peut aller pour plus d'informations et un ``contexte'' dans le cas où il y a de multiples statuts pour un seul commit. Par exemple, un service de test peut fournir un statut et un service de validation comme celui-ci peut aussi fournir un statut -- le champ ``contexte'' est ce qui les différenciera.\n \n-If someone opens a new Pull Request on GitHub and this hook is setup, you may see something like <<_commit_status>>.\n+Si quelqu'un ouvre une nouvelle requête de tirage sur GitHub et que ce crochet est opérationnel, vous pouvez voir quelque chose comme <<_commit_status>>.\n \n [[_commit_status]]\n-.Commit status via the API.\n+.Statut de _commit_ via l'interface de programmation.\n image::images/scripting-07-status.png[Commit status]\n \n-You can now see a little green check mark next to the commit that has a ``Signed-off-by'' string in the message and a red cross through the one where the author forgot to sign off. You can also see that the Pull Request takes the status of the last commit on the branch and warns you if it is a failure. This is really useful if you're using this API for test results so you don't accidentally merge something where the last commit is failing tests.\n+Vous pouvez voir maintenant une petite coche verte près du _commit_ qui contient la chaîne ``Signed-off-by'' dans le message et une croix rouge pour celui que l'auteur à oublié de signer. Vous pouvez aussi voir que la requête de tirage prend le statut du dernier _commit_ de la branche et avertit si c'est un échec. C'est très utile si vous utilisez cette interface de programmation pour des résultats de test pour que vous ne fusionniez pas accidentellement quelque chose où le dernier _commit_ échoue aux tests.\n \n ==== Octokit\n \n-Though we've been doing nearly everything through `curl` and simple HTTP requests in these examples, several open-source libraries exist that make this API available in a more idiomatic way.\n-At the time of this writing, the supported languages include Go, Objective-C, Ruby, and .NET.\n-Check out http://github.com/octokit[] for more information on these, as they handle much of the HTTP for you.\n+Bien que nous ayons presque tout fait à travers `curl` et de simples requêtes HTTP dans ces exemples, il existe plusieurs librairies open source qui rendent cette interface de programmation disponible d'une manière plus idiomatique.\n+Au moment de la rédaction de ce document, les langages supportés incluent Python, Go, Objective-C, Ruby et .NET.","path":"book/06-github/sections/5-scripting.asc","position":245,"original_position":245,"commit_id":"8539da0c7ed2b50d6f1a2316916c87d9f2bf1d4a","original_commit_id":"8539da0c7ed2b50d6f1a2316916c87d9f2bf1d4a","user":{"login":"aollier","id":13087713,"avatar_url":"https://avatars.githubusercontent.com/u/13087713?v=3","gravatar_id":"","url":"https://api.github.com/users/aollier","html_url":"https://github.com/aollier","followers_url":"https://api.github.com/users/aollier/followers","following_url":"https://api.github.com/users/aollier/following{/other_user}","gists_url":"https://api.github.com/users/aollier/gists{/gist_id}","starred_url":"https://api.github.com/users/aollier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aollier/subscriptions","organizations_url":"https://api.github.com/users/aollier/orgs","repos_url":"https://api.github.com/users/aollier/repos","events_url":"https://api.github.com/users/aollier/events{/privacy}","received_events_url":"https://api.github.com/users/aollier/received_events","type":"User","site_admin":false},"body":"\"les langages supportés sont [...]\" plutôt qu'\"incluent [...]\" non ? Sinon il faudrait dire \"la liste des langages supportés inclut [...]\" à mon avis.\r\nQu'en penses-tu ?","created_at":"2015-11-14T10:34:05Z","updated_at":"2015-11-14T10:34:05Z","html_url":"https://github.com/progit/progit2-fr/pull/53#discussion_r44857227","pull_request_url":"https://api.github.com/repos/progit/progit2-fr/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/progit/progit2-fr/pulls/comments/44857227"},"html":{"href":"https://github.com/progit/progit2-fr/pull/53#discussion_r44857227"},"pull_request":{"href":"https://api.github.com/repos/progit/progit2-fr/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/progit/progit2-fr/pulls/53","id":50550990,"html_url":"https://github.com/progit/progit2-fr/pull/53","diff_url":"https://github.com/progit/progit2-fr/pull/53.diff","patch_url":"https://github.com/progit/progit2-fr/pull/53.patch","issue_url":"https://api.github.com/repos/progit/progit2-fr/issues/53","number":53,"state":"open","locked":false,"title":"Chap6","user":{"login":"aollier","id":13087713,"avatar_url":"https://avatars.githubusercontent.com/u/13087713?v=3","gravatar_id":"","url":"https://api.github.com/users/aollier","html_url":"https://github.com/aollier","followers_url":"https://api.github.com/users/aollier/followers","following_url":"https://api.github.com/users/aollier/following{/other_user}","gists_url":"https://api.github.com/users/aollier/gists{/gist_id}","starred_url":"https://api.github.com/users/aollier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aollier/subscriptions","organizations_url":"https://api.github.com/users/aollier/orgs","repos_url":"https://api.github.com/users/aollier/repos","events_url":"https://api.github.com/users/aollier/events{/privacy}","received_events_url":"https://api.github.com/users/aollier/received_events","type":"User","site_admin":false},"body":"Bonjour,\r\n\r\nvoici un lot de corrections et de la traduction pour le chapitre 6.\r\nMerci de bien vouloir étudier mes propositions.\r\n\r\nAdrien Ollier","created_at":"2015-11-12T18:49:45Z","updated_at":"2015-11-14T10:34:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf64c2c847577d9da3c475bb90e2910d46369a56","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/progit/progit2-fr/pulls/53/commits","review_comments_url":"https://api.github.com/repos/progit/progit2-fr/pulls/53/comments","review_comment_url":"https://api.github.com/repos/progit/progit2-fr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/progit/progit2-fr/issues/53/comments","statuses_url":"https://api.github.com/repos/progit/progit2-fr/statuses/8539da0c7ed2b50d6f1a2316916c87d9f2bf1d4a","head":{"label":"aollier:chap6","ref":"chap6","sha":"8539da0c7ed2b50d6f1a2316916c87d9f2bf1d4a","user":{"login":"aollier","id":13087713,"avatar_url":"https://avatars.githubusercontent.com/u/13087713?v=3","gravatar_id":"","url":"https://api.github.com/users/aollier","html_url":"https://github.com/aollier","followers_url":"https://api.github.com/users/aollier/followers","following_url":"https://api.github.com/users/aollier/following{/other_user}","gists_url":"https://api.github.com/users/aollier/gists{/gist_id}","starred_url":"https://api.github.com/users/aollier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aollier/subscriptions","organizations_url":"https://api.github.com/users/aollier/orgs","repos_url":"https://api.github.com/users/aollier/repos","events_url":"https://api.github.com/users/aollier/events{/privacy}","received_events_url":"https://api.github.com/users/aollier/received_events","type":"User","site_admin":false},"repo":{"id":40808129,"name":"progit2-fr","full_name":"aollier/progit2-fr","owner":{"login":"aollier","id":13087713,"avatar_url":"https://avatars.githubusercontent.com/u/13087713?v=3","gravatar_id":"","url":"https://api.github.com/users/aollier","html_url":"https://github.com/aollier","followers_url":"https://api.github.com/users/aollier/followers","following_url":"https://api.github.com/users/aollier/following{/other_user}","gists_url":"https://api.github.com/users/aollier/gists{/gist_id}","starred_url":"https://api.github.com/users/aollier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aollier/subscriptions","organizations_url":"https://api.github.com/users/aollier/orgs","repos_url":"https://api.github.com/users/aollier/repos","events_url":"https://api.github.com/users/aollier/events{/privacy}","received_events_url":"https://api.github.com/users/aollier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aollier/progit2-fr","description":"","fork":true,"url":"https://api.github.com/repos/aollier/progit2-fr","forks_url":"https://api.github.com/repos/aollier/progit2-fr/forks","keys_url":"https://api.github.com/repos/aollier/progit2-fr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aollier/progit2-fr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aollier/progit2-fr/teams","hooks_url":"https://api.github.com/repos/aollier/progit2-fr/hooks","issue_events_url":"https://api.github.com/repos/aollier/progit2-fr/issues/events{/number}","events_url":"https://api.github.com/repos/aollier/progit2-fr/events","assignees_url":"https://api.github.com/repos/aollier/progit2-fr/assignees{/user}","branches_url":"https://api.github.com/repos/aollier/progit2-fr/branches{/branch}","tags_url":"https://api.github.com/repos/aollier/progit2-fr/tags","blobs_url":"https://api.github.com/repos/aollier/progit2-fr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aollier/progit2-fr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aollier/progit2-fr/git/refs{/sha}","trees_url":"https://api.github.com/repos/aollier/progit2-fr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aollier/progit2-fr/statuses/{sha}","languages_url":"https://api.github.com/repos/aollier/progit2-fr/languages","stargazers_url":"https://api.github.com/repos/aollier/progit2-fr/stargazers","contributors_url":"https://api.github.com/repos/aollier/progit2-fr/contributors","subscribers_url":"https://api.github.com/repos/aollier/progit2-fr/subscribers","subscription_url":"https://api.github.com/repos/aollier/progit2-fr/subscription","commits_url":"https://api.github.com/repos/aollier/progit2-fr/commits{/sha}","git_commits_url":"https://api.github.com/repos/aollier/progit2-fr/git/commits{/sha}","comments_url":"https://api.github.com/repos/aollier/progit2-fr/comments{/number}","issue_comment_url":"https://api.github.com/repos/aollier/progit2-fr/issues/comments{/number}","contents_url":"https://api.github.com/repos/aollier/progit2-fr/contents/{+path}","compare_url":"https://api.github.com/repos/aollier/progit2-fr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aollier/progit2-fr/merges","archive_url":"https://api.github.com/repos/aollier/progit2-fr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aollier/progit2-fr/downloads","issues_url":"https://api.github.com/repos/aollier/progit2-fr/issues{/number}","pulls_url":"https://api.github.com/repos/aollier/progit2-fr/pulls{/number}","milestones_url":"https://api.github.com/repos/aollier/progit2-fr/milestones{/number}","notifications_url":"https://api.github.com/repos/aollier/progit2-fr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aollier/progit2-fr/labels{/name}","releases_url":"https://api.github.com/repos/aollier/progit2-fr/releases{/id}","created_at":"2015-08-16T09:38:41Z","updated_at":"2015-08-16T09:38:43Z","pushed_at":"2015-11-12T18:45:52Z","git_url":"git://github.com/aollier/progit2-fr.git","ssh_url":"git@github.com:aollier/progit2-fr.git","clone_url":"https://github.com/aollier/progit2-fr.git","svn_url":"https://github.com/aollier/progit2-fr","homepage":null,"size":123702,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"progit:master","ref":"master","sha":"d6350a2607edd9d6ea3461b7ed7f83dd41561a52","user":{"login":"progit","id":95588,"avatar_url":"https://avatars.githubusercontent.com/u/95588?v=3","gravatar_id":"","url":"https://api.github.com/users/progit","html_url":"https://github.com/progit","followers_url":"https://api.github.com/users/progit/followers","following_url":"https://api.github.com/users/progit/following{/other_user}","gists_url":"https://api.github.com/users/progit/gists{/gist_id}","starred_url":"https://api.github.com/users/progit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progit/subscriptions","organizations_url":"https://api.github.com/users/progit/orgs","repos_url":"https://api.github.com/users/progit/repos","events_url":"https://api.github.com/users/progit/events{/privacy}","received_events_url":"https://api.github.com/users/progit/received_events","type":"Organization","site_admin":false},"repo":{"id":25540457,"name":"progit2-fr","full_name":"progit/progit2-fr","owner":{"login":"progit","id":95588,"avatar_url":"https://avatars.githubusercontent.com/u/95588?v=3","gravatar_id":"","url":"https://api.github.com/users/progit","html_url":"https://github.com/progit","followers_url":"https://api.github.com/users/progit/followers","following_url":"https://api.github.com/users/progit/following{/other_user}","gists_url":"https://api.github.com/users/progit/gists{/gist_id}","starred_url":"https://api.github.com/users/progit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progit/subscriptions","organizations_url":"https://api.github.com/users/progit/orgs","repos_url":"https://api.github.com/users/progit/repos","events_url":"https://api.github.com/users/progit/events{/privacy}","received_events_url":"https://api.github.com/users/progit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/progit/progit2-fr","description":"","fork":false,"url":"https://api.github.com/repos/progit/progit2-fr","forks_url":"https://api.github.com/repos/progit/progit2-fr/forks","keys_url":"https://api.github.com/repos/progit/progit2-fr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/progit/progit2-fr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/progit/progit2-fr/teams","hooks_url":"https://api.github.com/repos/progit/progit2-fr/hooks","issue_events_url":"https://api.github.com/repos/progit/progit2-fr/issues/events{/number}","events_url":"https://api.github.com/repos/progit/progit2-fr/events","assignees_url":"https://api.github.com/repos/progit/progit2-fr/assignees{/user}","branches_url":"https://api.github.com/repos/progit/progit2-fr/branches{/branch}","tags_url":"https://api.github.com/repos/progit/progit2-fr/tags","blobs_url":"https://api.github.com/repos/progit/progit2-fr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/progit/progit2-fr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/progit/progit2-fr/git/refs{/sha}","trees_url":"https://api.github.com/repos/progit/progit2-fr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/progit/progit2-fr/statuses/{sha}","languages_url":"https://api.github.com/repos/progit/progit2-fr/languages","stargazers_url":"https://api.github.com/repos/progit/progit2-fr/stargazers","contributors_url":"https://api.github.com/repos/progit/progit2-fr/contributors","subscribers_url":"https://api.github.com/repos/progit/progit2-fr/subscribers","subscription_url":"https://api.github.com/repos/progit/progit2-fr/subscription","commits_url":"https://api.github.com/repos/progit/progit2-fr/commits{/sha}","git_commits_url":"https://api.github.com/repos/progit/progit2-fr/git/commits{/sha}","comments_url":"https://api.github.com/repos/progit/progit2-fr/comments{/number}","issue_comment_url":"https://api.github.com/repos/progit/progit2-fr/issues/comments{/number}","contents_url":"https://api.github.com/repos/progit/progit2-fr/contents/{+path}","compare_url":"https://api.github.com/repos/progit/progit2-fr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/progit/progit2-fr/merges","archive_url":"https://api.github.com/repos/progit/progit2-fr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/progit/progit2-fr/downloads","issues_url":"https://api.github.com/repos/progit/progit2-fr/issues{/number}","pulls_url":"https://api.github.com/repos/progit/progit2-fr/pulls{/number}","milestones_url":"https://api.github.com/repos/progit/progit2-fr/milestones{/number}","notifications_url":"https://api.github.com/repos/progit/progit2-fr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/progit/progit2-fr/labels{/name}","releases_url":"https://api.github.com/repos/progit/progit2-fr/releases{/id}","created_at":"2014-10-21T19:02:50Z","updated_at":"2015-10-08T06:28:12Z","pushed_at":"2015-11-12T18:49:46Z","git_url":"git://github.com/progit/progit2-fr.git","ssh_url":"git@github.com:progit/progit2-fr.git","clone_url":"https://github.com/progit/progit2-fr.git","svn_url":"https://github.com/progit/progit2-fr","homepage":null,"size":124082,"stargazers_count":10,"watchers_count":10,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":1,"forks":14,"open_issues":1,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/progit/progit2-fr/pulls/53"},"html":{"href":"https://github.com/progit/progit2-fr/pull/53"},"issue":{"href":"https://api.github.com/repos/progit/progit2-fr/issues/53"},"comments":{"href":"https://api.github.com/repos/progit/progit2-fr/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/progit/progit2-fr/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/progit/progit2-fr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/progit/progit2-fr/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/progit/progit2-fr/statuses/8539da0c7ed2b50d6f1a2316916c87d9f2bf1d4a"}}}}