{"action":"created","comment":{"url":"https://api.github.com/repos/wp-cli/i18n-command/pulls/comments/205567343","pull_request_review_id":140865099,"id":205567343,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTU2NzM0Mw==","diff_hunk":"@@ -99,6 +99,24 @@ Feature: Generate a POT file of a WordPress plugin\n       \"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hello-world\\n\"\n       \"\"\"\n \n+  Scenario: Sets custom Report-Msgid-Bugs-To\n+    When I run `wp scaffold plugin hello-world`\n+\n+    When I run `wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot --headers='{\"Report-Msgid-Bugs-To\":\"https://github.com/hello-world/hello-world/\"}'`\n+    And the wp-content/plugins/hello-world/languages/hello-world.pot file should contain:\n+      \"\"\"\n+      \"Report-Msgid-Bugs-To: https://github.com/hello-world/hello-world/\\n\"","path":"features/makepot.feature","position":10,"original_position":10,"commit_id":"dad8b7bd8463a60d8b55462f79056b63368a78f3","original_commit_id":"dad8b7bd8463a60d8b55462f79056b63368a78f3","user":{"login":"swissspidy","id":841956,"node_id":"MDQ6VXNlcjg0MTk1Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/841956?v=4","gravatar_id":"","url":"https://api.github.com/users/swissspidy","html_url":"https://github.com/swissspidy","followers_url":"https://api.github.com/users/swissspidy/followers","following_url":"https://api.github.com/users/swissspidy/following{/other_user}","gists_url":"https://api.github.com/users/swissspidy/gists{/gist_id}","starred_url":"https://api.github.com/users/swissspidy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swissspidy/subscriptions","organizations_url":"https://api.github.com/users/swissspidy/orgs","repos_url":"https://api.github.com/users/swissspidy/repos","events_url":"https://api.github.com/users/swissspidy/events{/privacy}","received_events_url":"https://api.github.com/users/swissspidy/received_events","type":"User","site_admin":false},"body":"I would add another test like\r\n\r\n```gherkin\r\nAnd the wp-content/plugins/hello-world/languages/hello-world.pot file should not contain:\r\n  \"\"\"\r\n  \"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hello-world\\n\"\r\n  \"\"\"\r\n```\r\n\r\nto prove that the heaader is indeed being replaced and not added.","created_at":"2018-07-26T18:57:02Z","updated_at":"2018-07-26T18:57:02Z","html_url":"https://github.com/wp-cli/i18n-command/pull/58#discussion_r205567343","pull_request_url":"https://api.github.com/repos/wp-cli/i18n-command/pulls/58","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/wp-cli/i18n-command/pulls/comments/205567343"},"html":{"href":"https://github.com/wp-cli/i18n-command/pull/58#discussion_r205567343"},"pull_request":{"href":"https://api.github.com/repos/wp-cli/i18n-command/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/wp-cli/i18n-command/pulls/58","id":204233594,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MjMzNTk0","html_url":"https://github.com/wp-cli/i18n-command/pull/58","diff_url":"https://github.com/wp-cli/i18n-command/pull/58.diff","patch_url":"https://github.com/wp-cli/i18n-command/pull/58.patch","issue_url":"https://api.github.com/repos/wp-cli/i18n-command/issues/58","number":58,"state":"open","locked":false,"title":"Add --headers parameter","user":{"login":"greatislander","id":605361,"node_id":"MDQ6VXNlcjYwNTM2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/605361?v=4","gravatar_id":"","url":"https://api.github.com/users/greatislander","html_url":"https://github.com/greatislander","followers_url":"https://api.github.com/users/greatislander/followers","following_url":"https://api.github.com/users/greatislander/following{/other_user}","gists_url":"https://api.github.com/users/greatislander/gists{/gist_id}","starred_url":"https://api.github.com/users/greatislander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greatislander/subscriptions","organizations_url":"https://api.github.com/users/greatislander/orgs","repos_url":"https://api.github.com/users/greatislander/repos","events_url":"https://api.github.com/users/greatislander/events{/privacy}","received_events_url":"https://api.github.com/users/greatislander/received_events","type":"User","site_admin":false},"body":"This PR resolves #47 by adding a `--headers` parameter which accepts a JSON-formatted array of custom header values which are added to the POT file. If custom headers are passed which correspond to defaults, the default values will be replaced.","created_at":"2018-07-26T18:49:17Z","updated_at":"2018-07-26T18:57:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd64ba3500baa91689e16dceb4a823e958789172","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wp-cli/i18n-command/pulls/58/commits","review_comments_url":"https://api.github.com/repos/wp-cli/i18n-command/pulls/58/comments","review_comment_url":"https://api.github.com/repos/wp-cli/i18n-command/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wp-cli/i18n-command/issues/58/comments","statuses_url":"https://api.github.com/repos/wp-cli/i18n-command/statuses/dad8b7bd8463a60d8b55462f79056b63368a78f3","head":{"label":"greatislander:headers-parameter","ref":"headers-parameter","sha":"dad8b7bd8463a60d8b55462f79056b63368a78f3","user":{"login":"greatislander","id":605361,"node_id":"MDQ6VXNlcjYwNTM2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/605361?v=4","gravatar_id":"","url":"https://api.github.com/users/greatislander","html_url":"https://github.com/greatislander","followers_url":"https://api.github.com/users/greatislander/followers","following_url":"https://api.github.com/users/greatislander/following{/other_user}","gists_url":"https://api.github.com/users/greatislander/gists{/gist_id}","starred_url":"https://api.github.com/users/greatislander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greatislander/subscriptions","organizations_url":"https://api.github.com/users/greatislander/orgs","repos_url":"https://api.github.com/users/greatislander/repos","events_url":"https://api.github.com/users/greatislander/events{/privacy}","received_events_url":"https://api.github.com/users/greatislander/received_events","type":"User","site_admin":false},"repo":{"id":142184619,"node_id":"MDEwOlJlcG9zaXRvcnkxNDIxODQ2MTk=","name":"i18n-command","full_name":"greatislander/i18n-command","owner":{"login":"greatislander","id":605361,"node_id":"MDQ6VXNlcjYwNTM2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/605361?v=4","gravatar_id":"","url":"https://api.github.com/users/greatislander","html_url":"https://github.com/greatislander","followers_url":"https://api.github.com/users/greatislander/followers","following_url":"https://api.github.com/users/greatislander/following{/other_user}","gists_url":"https://api.github.com/users/greatislander/gists{/gist_id}","starred_url":"https://api.github.com/users/greatislander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greatislander/subscriptions","organizations_url":"https://api.github.com/users/greatislander/orgs","repos_url":"https://api.github.com/users/greatislander/repos","events_url":"https://api.github.com/users/greatislander/events{/privacy}","received_events_url":"https://api.github.com/users/greatislander/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/greatislander/i18n-command","description":"Provides internationalization tools for WordPress projects.","fork":true,"url":"https://api.github.com/repos/greatislander/i18n-command","forks_url":"https://api.github.com/repos/greatislander/i18n-command/forks","keys_url":"https://api.github.com/repos/greatislander/i18n-command/keys{/key_id}","collaborators_url":"https://api.github.com/repos/greatislander/i18n-command/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/greatislander/i18n-command/teams","hooks_url":"https://api.github.com/repos/greatislander/i18n-command/hooks","issue_events_url":"https://api.github.com/repos/greatislander/i18n-command/issues/events{/number}","events_url":"https://api.github.com/repos/greatislander/i18n-command/events","assignees_url":"https://api.github.com/repos/greatislander/i18n-command/assignees{/user}","branches_url":"https://api.github.com/repos/greatislander/i18n-command/branches{/branch}","tags_url":"https://api.github.com/repos/greatislander/i18n-command/tags","blobs_url":"https://api.github.com/repos/greatislander/i18n-command/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/greatislander/i18n-command/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/greatislander/i18n-command/git/refs{/sha}","trees_url":"https://api.github.com/repos/greatislander/i18n-command/git/trees{/sha}","statuses_url":"https://api.github.com/repos/greatislander/i18n-command/statuses/{sha}","languages_url":"https://api.github.com/repos/greatislander/i18n-command/languages","stargazers_url":"https://api.github.com/repos/greatislander/i18n-command/stargazers","contributors_url":"https://api.github.com/repos/greatislander/i18n-command/contributors","subscribers_url":"https://api.github.com/repos/greatislander/i18n-command/subscribers","subscription_url":"https://api.github.com/repos/greatislander/i18n-command/subscription","commits_url":"https://api.github.com/repos/greatislander/i18n-command/commits{/sha}","git_commits_url":"https://api.github.com/repos/greatislander/i18n-command/git/commits{/sha}","comments_url":"https://api.github.com/repos/greatislander/i18n-command/comments{/number}","issue_comment_url":"https://api.github.com/repos/greatislander/i18n-command/issues/comments{/number}","contents_url":"https://api.github.com/repos/greatislander/i18n-command/contents/{+path}","compare_url":"https://api.github.com/repos/greatislander/i18n-command/compare/{base}...{head}","merges_url":"https://api.github.com/repos/greatislander/i18n-command/merges","archive_url":"https://api.github.com/repos/greatislander/i18n-command/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/greatislander/i18n-command/downloads","issues_url":"https://api.github.com/repos/greatislander/i18n-command/issues{/number}","pulls_url":"https://api.github.com/repos/greatislander/i18n-command/pulls{/number}","milestones_url":"https://api.github.com/repos/greatislander/i18n-command/milestones{/number}","notifications_url":"https://api.github.com/repos/greatislander/i18n-command/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/greatislander/i18n-command/labels{/name}","releases_url":"https://api.github.com/repos/greatislander/i18n-command/releases{/id}","deployments_url":"https://api.github.com/repos/greatislander/i18n-command/deployments","created_at":"2018-07-24T16:24:13Z","updated_at":"2018-07-24T16:24:15Z","pushed_at":"2018-07-26T18:48:02Z","git_url":"git://github.com/greatislander/i18n-command.git","ssh_url":"git@github.com:greatislander/i18n-command.git","clone_url":"https://github.com/greatislander/i18n-command.git","svn_url":"https://github.com/greatislander/i18n-command","homepage":"","size":353,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wp-cli:master","ref":"master","sha":"bd16b5fd631980dea4684e9b290b3e80674b4401","user":{"login":"wp-cli","id":1570774,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NzA3NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1570774?v=4","gravatar_id":"","url":"https://api.github.com/users/wp-cli","html_url":"https://github.com/wp-cli","followers_url":"https://api.github.com/users/wp-cli/followers","following_url":"https://api.github.com/users/wp-cli/following{/other_user}","gists_url":"https://api.github.com/users/wp-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-cli/subscriptions","organizations_url":"https://api.github.com/users/wp-cli/orgs","repos_url":"https://api.github.com/users/wp-cli/repos","events_url":"https://api.github.com/users/wp-cli/events{/privacy}","received_events_url":"https://api.github.com/users/wp-cli/received_events","type":"Organization","site_admin":false},"repo":{"id":111592377,"node_id":"MDEwOlJlcG9zaXRvcnkxMTE1OTIzNzc=","name":"i18n-command","full_name":"wp-cli/i18n-command","owner":{"login":"wp-cli","id":1570774,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NzA3NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1570774?v=4","gravatar_id":"","url":"https://api.github.com/users/wp-cli","html_url":"https://github.com/wp-cli","followers_url":"https://api.github.com/users/wp-cli/followers","following_url":"https://api.github.com/users/wp-cli/following{/other_user}","gists_url":"https://api.github.com/users/wp-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-cli/subscriptions","organizations_url":"https://api.github.com/users/wp-cli/orgs","repos_url":"https://api.github.com/users/wp-cli/repos","events_url":"https://api.github.com/users/wp-cli/events{/privacy}","received_events_url":"https://api.github.com/users/wp-cli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wp-cli/i18n-command","description":"Provides internationalization tools for WordPress projects.","fork":false,"url":"https://api.github.com/repos/wp-cli/i18n-command","forks_url":"https://api.github.com/repos/wp-cli/i18n-command/forks","keys_url":"https://api.github.com/repos/wp-cli/i18n-command/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wp-cli/i18n-command/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wp-cli/i18n-command/teams","hooks_url":"https://api.github.com/repos/wp-cli/i18n-command/hooks","issue_events_url":"https://api.github.com/repos/wp-cli/i18n-command/issues/events{/number}","events_url":"https://api.github.com/repos/wp-cli/i18n-command/events","assignees_url":"https://api.github.com/repos/wp-cli/i18n-command/assignees{/user}","branches_url":"https://api.github.com/repos/wp-cli/i18n-command/branches{/branch}","tags_url":"https://api.github.com/repos/wp-cli/i18n-command/tags","blobs_url":"https://api.github.com/repos/wp-cli/i18n-command/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wp-cli/i18n-command/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wp-cli/i18n-command/git/refs{/sha}","trees_url":"https://api.github.com/repos/wp-cli/i18n-command/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wp-cli/i18n-command/statuses/{sha}","languages_url":"https://api.github.com/repos/wp-cli/i18n-command/languages","stargazers_url":"https://api.github.com/repos/wp-cli/i18n-command/stargazers","contributors_url":"https://api.github.com/repos/wp-cli/i18n-command/contributors","subscribers_url":"https://api.github.com/repos/wp-cli/i18n-command/subscribers","subscription_url":"https://api.github.com/repos/wp-cli/i18n-command/subscription","commits_url":"https://api.github.com/repos/wp-cli/i18n-command/commits{/sha}","git_commits_url":"https://api.github.com/repos/wp-cli/i18n-command/git/commits{/sha}","comments_url":"https://api.github.com/repos/wp-cli/i18n-command/comments{/number}","issue_comment_url":"https://api.github.com/repos/wp-cli/i18n-command/issues/comments{/number}","contents_url":"https://api.github.com/repos/wp-cli/i18n-command/contents/{+path}","compare_url":"https://api.github.com/repos/wp-cli/i18n-command/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wp-cli/i18n-command/merges","archive_url":"https://api.github.com/repos/wp-cli/i18n-command/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wp-cli/i18n-command/downloads","issues_url":"https://api.github.com/repos/wp-cli/i18n-command/issues{/number}","pulls_url":"https://api.github.com/repos/wp-cli/i18n-command/pulls{/number}","milestones_url":"https://api.github.com/repos/wp-cli/i18n-command/milestones{/number}","notifications_url":"https://api.github.com/repos/wp-cli/i18n-command/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wp-cli/i18n-command/labels{/name}","releases_url":"https://api.github.com/repos/wp-cli/i18n-command/releases{/id}","deployments_url":"https://api.github.com/repos/wp-cli/i18n-command/deployments","created_at":"2017-11-21T19:29:57Z","updated_at":"2018-07-12T16:21:42Z","pushed_at":"2018-07-26T18:49:17Z","git_url":"git://github.com/wp-cli/i18n-command.git","ssh_url":"git@github.com:wp-cli/i18n-command.git","clone_url":"https://github.com/wp-cli/i18n-command.git","svn_url":"https://github.com/wp-cli/i18n-command","homepage":"","size":255,"stargazers_count":24,"watchers_count":24,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":16,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wp-cli/i18n-command/pulls/58"},"html":{"href":"https://github.com/wp-cli/i18n-command/pull/58"},"issue":{"href":"https://api.github.com/repos/wp-cli/i18n-command/issues/58"},"comments":{"href":"https://api.github.com/repos/wp-cli/i18n-command/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/wp-cli/i18n-command/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/wp-cli/i18n-command/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wp-cli/i18n-command/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/wp-cli/i18n-command/statuses/dad8b7bd8463a60d8b55462f79056b63368a78f3"}},"author_association":"NONE"}}
{"actor":{"display_login":"swissspidy"}}