{"action":"created","comment":{"url":"https://api.github.com/repos/freeorion/freeorion/pulls/comments/34705367","id":34705367,"diff_hunk":"@@ -0,0 +1,78 @@\n+// The UserSitRepLabel tags and data are required if the message template (and label) is simply provided here rather than being drawn from the stringtable.\n+// The data value for the UserSitRepLabel serves as the label to be used in the SitReps filters, and CustomSitrepPriority1 through CustomSitrepPriority4\n+// will be at the top of the SitReps display.  As seen below, other labels are fine as well, but they cannot have any spaces if you want to use them in the SITREP_PRIORITY_ORDER\n+\n+effectsgroups = [\n+\n+\n+EffectsGroup\n+    scope = Capital\n+    activation = Turn high = 1\n+    effects =\n+        GenerateSitRepMessage\n+            message = \"This is a sample Custom Sitrep, which is enabled by the [[tech SPY_CUSTOM_ADVISORIES]] and all the busy empire servants reporting information back to %system%\"\n+            icon = \"icons/tech/categories/spy.png\"\n+            parameters = [\n+                tag = \"UserSitRepLabel\" data = \"CustomSitrepPriority1\"","path":"default/customizations/custom_sitreps.txt","position":16,"original_position":16,"commit_id":"f9ed86c673dc2c817810ebce406185f039a86e02","original_commit_id":"f9ed86c673dc2c817810ebce406185f039a86e02","user":{"login":"Dilvish-fo","id":10995939,"avatar_url":"https://avatars.githubusercontent.com/u/10995939?v=3","gravatar_id":"","url":"https://api.github.com/users/Dilvish-fo","html_url":"https://github.com/Dilvish-fo","followers_url":"https://api.github.com/users/Dilvish-fo/followers","following_url":"https://api.github.com/users/Dilvish-fo/following{/other_user}","gists_url":"https://api.github.com/users/Dilvish-fo/gists{/gist_id}","starred_url":"https://api.github.com/users/Dilvish-fo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dilvish-fo/subscriptions","organizations_url":"https://api.github.com/users/Dilvish-fo/orgs","repos_url":"https://api.github.com/users/Dilvish-fo/repos","events_url":"https://api.github.com/users/Dilvish-fo/events{/privacy}","received_events_url":"https://api.github.com/users/Dilvish-fo/received_events","type":"User","site_admin":false},"body":"Isn't that though pretty much just essentially moving the 'tag = \"UserSitRepLabel\" data = \"CustomSitrepPriority1\"' a few lines over, and maybe using different words than tag and data?\r\nIt rather seems like a \"6 of one, half a dozen of the other\" kind of thing.  You have a firm view of what the parameters are for based on current usage, but I think to anyone else these meet the general qualifications of a parameter for the message.","created_at":"2015-07-15T17:32:50Z","updated_at":"2015-07-15T17:32:50Z","html_url":"https://github.com/freeorion/freeorion/pull/215#discussion_r34705367","pull_request_url":"https://api.github.com/repos/freeorion/freeorion/pulls/215","_links":{"self":{"href":"https://api.github.com/repos/freeorion/freeorion/pulls/comments/34705367"},"html":{"href":"https://github.com/freeorion/freeorion/pull/215#discussion_r34705367"},"pull_request":{"href":"https://api.github.com/repos/freeorion/freeorion/pulls/215"}}},"pull_request":{"url":"https://api.github.com/repos/freeorion/freeorion/pulls/215","id":40006404,"html_url":"https://github.com/freeorion/freeorion/pull/215","diff_url":"https://github.com/freeorion/freeorion/pull/215.diff","patch_url":"https://github.com/freeorion/freeorion/pull/215.patch","issue_url":"https://api.github.com/repos/freeorion/freeorion/issues/215","number":215,"state":"open","locked":false,"title":"Added support for easily customized advisory SitReps","user":{"login":"Dilvish-fo","id":10995939,"avatar_url":"https://avatars.githubusercontent.com/u/10995939?v=3","gravatar_id":"","url":"https://api.github.com/users/Dilvish-fo","html_url":"https://github.com/Dilvish-fo","followers_url":"https://api.github.com/users/Dilvish-fo/followers","following_url":"https://api.github.com/users/Dilvish-fo/following{/other_user}","gists_url":"https://api.github.com/users/Dilvish-fo/gists{/gist_id}","starred_url":"https://api.github.com/users/Dilvish-fo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dilvish-fo/subscriptions","organizations_url":"https://api.github.com/users/Dilvish-fo/orgs","repos_url":"https://api.github.com/users/Dilvish-fo/repos","events_url":"https://api.github.com/users/Dilvish-fo/events{/privacy}","received_events_url":"https://api.github.com/users/Dilvish-fo/received_events","type":"User","site_admin":false},"body":"So this is a little pet project I've had in mind for a while-- to enable very easily customized advisory sitreps, like the situation below, which in an advanced game I often forget about for a while; I'll be glad to have a reminder.  ![advisory] (http://i.imgur.com/c4rajd3.png)\r\n\r\nSuch things could already have been managed by editing a suitable tech in  techs.txt and then adding the template and label to the stringtable, but that's a bit involved for a casual player (heck, it's kept me away from doing some of these that I wanted), so I wanted to make it even easier.  With this PR, all that is necessary is to edit the file /default/customizations/custom_sitreps.txt, and nothing else.  \r\n\r\nAs you may notice above, for some reason the Pedia links aren't working with these sitreps, I haven't figured out why yet.  It's certainly not critical, but would be nice.  If anyone has ideas about it, please let me know.","created_at":"2015-07-15T10:06:17Z","updated_at":"2015-07-15T17:32:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4475d645107e6331ef9b88c488e177958a4d71ca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/freeorion/freeorion/pulls/215/commits","review_comments_url":"https://api.github.com/repos/freeorion/freeorion/pulls/215/comments","review_comment_url":"https://api.github.com/repos/freeorion/freeorion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/freeorion/freeorion/issues/215/comments","statuses_url":"https://api.github.com/repos/freeorion/freeorion/statuses/f9ed86c673dc2c817810ebce406185f039a86e02","head":{"label":"Dilvish-fo:custom_advisory_sitreps","ref":"custom_advisory_sitreps","sha":"f9ed86c673dc2c817810ebce406185f039a86e02","user":{"login":"Dilvish-fo","id":10995939,"avatar_url":"https://avatars.githubusercontent.com/u/10995939?v=3","gravatar_id":"","url":"https://api.github.com/users/Dilvish-fo","html_url":"https://github.com/Dilvish-fo","followers_url":"https://api.github.com/users/Dilvish-fo/followers","following_url":"https://api.github.com/users/Dilvish-fo/following{/other_user}","gists_url":"https://api.github.com/users/Dilvish-fo/gists{/gist_id}","starred_url":"https://api.github.com/users/Dilvish-fo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dilvish-fo/subscriptions","organizations_url":"https://api.github.com/users/Dilvish-fo/orgs","repos_url":"https://api.github.com/users/Dilvish-fo/repos","events_url":"https://api.github.com/users/Dilvish-fo/events{/privacy}","received_events_url":"https://api.github.com/users/Dilvish-fo/received_events","type":"User","site_admin":false},"repo":{"id":33093847,"name":"freeorion","full_name":"Dilvish-fo/freeorion","owner":{"login":"Dilvish-fo","id":10995939,"avatar_url":"https://avatars.githubusercontent.com/u/10995939?v=3","gravatar_id":"","url":"https://api.github.com/users/Dilvish-fo","html_url":"https://github.com/Dilvish-fo","followers_url":"https://api.github.com/users/Dilvish-fo/followers","following_url":"https://api.github.com/users/Dilvish-fo/following{/other_user}","gists_url":"https://api.github.com/users/Dilvish-fo/gists{/gist_id}","starred_url":"https://api.github.com/users/Dilvish-fo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dilvish-fo/subscriptions","organizations_url":"https://api.github.com/users/Dilvish-fo/orgs","repos_url":"https://api.github.com/users/Dilvish-fo/repos","events_url":"https://api.github.com/users/Dilvish-fo/events{/privacy}","received_events_url":"https://api.github.com/users/Dilvish-fo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dilvish-fo/freeorion","description":"Source code repository of the FreeOrion project.","fork":true,"url":"https://api.github.com/repos/Dilvish-fo/freeorion","forks_url":"https://api.github.com/repos/Dilvish-fo/freeorion/forks","keys_url":"https://api.github.com/repos/Dilvish-fo/freeorion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dilvish-fo/freeorion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dilvish-fo/freeorion/teams","hooks_url":"https://api.github.com/repos/Dilvish-fo/freeorion/hooks","issue_events_url":"https://api.github.com/repos/Dilvish-fo/freeorion/issues/events{/number}","events_url":"https://api.github.com/repos/Dilvish-fo/freeorion/events","assignees_url":"https://api.github.com/repos/Dilvish-fo/freeorion/assignees{/user}","branches_url":"https://api.github.com/repos/Dilvish-fo/freeorion/branches{/branch}","tags_url":"https://api.github.com/repos/Dilvish-fo/freeorion/tags","blobs_url":"https://api.github.com/repos/Dilvish-fo/freeorion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dilvish-fo/freeorion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dilvish-fo/freeorion/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dilvish-fo/freeorion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dilvish-fo/freeorion/statuses/{sha}","languages_url":"https://api.github.com/repos/Dilvish-fo/freeorion/languages","stargazers_url":"https://api.github.com/repos/Dilvish-fo/freeorion/stargazers","contributors_url":"https://api.github.com/repos/Dilvish-fo/freeorion/contributors","subscribers_url":"https://api.github.com/repos/Dilvish-fo/freeorion/subscribers","subscription_url":"https://api.github.com/repos/Dilvish-fo/freeorion/subscription","commits_url":"https://api.github.com/repos/Dilvish-fo/freeorion/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dilvish-fo/freeorion/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dilvish-fo/freeorion/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dilvish-fo/freeorion/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dilvish-fo/freeorion/contents/{+path}","compare_url":"https://api.github.com/repos/Dilvish-fo/freeorion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dilvish-fo/freeorion/merges","archive_url":"https://api.github.com/repos/Dilvish-fo/freeorion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dilvish-fo/freeorion/downloads","issues_url":"https://api.github.com/repos/Dilvish-fo/freeorion/issues{/number}","pulls_url":"https://api.github.com/repos/Dilvish-fo/freeorion/pulls{/number}","milestones_url":"https://api.github.com/repos/Dilvish-fo/freeorion/milestones{/number}","notifications_url":"https://api.github.com/repos/Dilvish-fo/freeorion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dilvish-fo/freeorion/labels{/name}","releases_url":"https://api.github.com/repos/Dilvish-fo/freeorion/releases{/id}","created_at":"2015-03-29T23:31:21Z","updated_at":"2015-05-08T02:37:34Z","pushed_at":"2015-07-15T09:58:49Z","git_url":"git://github.com/Dilvish-fo/freeorion.git","ssh_url":"git@github.com:Dilvish-fo/freeorion.git","clone_url":"https://github.com/Dilvish-fo/freeorion.git","svn_url":"https://github.com/Dilvish-fo/freeorion","homepage":"http://www.freeorion.org/","size":481006,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"freeorion:master","ref":"master","sha":"ea64d83856997ac07307a59a94a08d0b7fb14b67","user":{"login":"freeorion","id":1025550,"avatar_url":"https://avatars.githubusercontent.com/u/1025550?v=3","gravatar_id":"","url":"https://api.github.com/users/freeorion","html_url":"https://github.com/freeorion","followers_url":"https://api.github.com/users/freeorion/followers","following_url":"https://api.github.com/users/freeorion/following{/other_user}","gists_url":"https://api.github.com/users/freeorion/gists{/gist_id}","starred_url":"https://api.github.com/users/freeorion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeorion/subscriptions","organizations_url":"https://api.github.com/users/freeorion/orgs","repos_url":"https://api.github.com/users/freeorion/repos","events_url":"https://api.github.com/users/freeorion/events{/privacy}","received_events_url":"https://api.github.com/users/freeorion/received_events","type":"Organization","site_admin":false},"repo":{"id":33066062,"name":"freeorion","full_name":"freeorion/freeorion","owner":{"login":"freeorion","id":1025550,"avatar_url":"https://avatars.githubusercontent.com/u/1025550?v=3","gravatar_id":"","url":"https://api.github.com/users/freeorion","html_url":"https://github.com/freeorion","followers_url":"https://api.github.com/users/freeorion/followers","following_url":"https://api.github.com/users/freeorion/following{/other_user}","gists_url":"https://api.github.com/users/freeorion/gists{/gist_id}","starred_url":"https://api.github.com/users/freeorion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeorion/subscriptions","organizations_url":"https://api.github.com/users/freeorion/orgs","repos_url":"https://api.github.com/users/freeorion/repos","events_url":"https://api.github.com/users/freeorion/events{/privacy}","received_events_url":"https://api.github.com/users/freeorion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/freeorion/freeorion","description":"Source code repository of the FreeOrion project.","fork":false,"url":"https://api.github.com/repos/freeorion/freeorion","forks_url":"https://api.github.com/repos/freeorion/freeorion/forks","keys_url":"https://api.github.com/repos/freeorion/freeorion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freeorion/freeorion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freeorion/freeorion/teams","hooks_url":"https://api.github.com/repos/freeorion/freeorion/hooks","issue_events_url":"https://api.github.com/repos/freeorion/freeorion/issues/events{/number}","events_url":"https://api.github.com/repos/freeorion/freeorion/events","assignees_url":"https://api.github.com/repos/freeorion/freeorion/assignees{/user}","branches_url":"https://api.github.com/repos/freeorion/freeorion/branches{/branch}","tags_url":"https://api.github.com/repos/freeorion/freeorion/tags","blobs_url":"https://api.github.com/repos/freeorion/freeorion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freeorion/freeorion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freeorion/freeorion/git/refs{/sha}","trees_url":"https://api.github.com/repos/freeorion/freeorion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freeorion/freeorion/statuses/{sha}","languages_url":"https://api.github.com/repos/freeorion/freeorion/languages","stargazers_url":"https://api.github.com/repos/freeorion/freeorion/stargazers","contributors_url":"https://api.github.com/repos/freeorion/freeorion/contributors","subscribers_url":"https://api.github.com/repos/freeorion/freeorion/subscribers","subscription_url":"https://api.github.com/repos/freeorion/freeorion/subscription","commits_url":"https://api.github.com/repos/freeorion/freeorion/commits{/sha}","git_commits_url":"https://api.github.com/repos/freeorion/freeorion/git/commits{/sha}","comments_url":"https://api.github.com/repos/freeorion/freeorion/comments{/number}","issue_comment_url":"https://api.github.com/repos/freeorion/freeorion/issues/comments{/number}","contents_url":"https://api.github.com/repos/freeorion/freeorion/contents/{+path}","compare_url":"https://api.github.com/repos/freeorion/freeorion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freeorion/freeorion/merges","archive_url":"https://api.github.com/repos/freeorion/freeorion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freeorion/freeorion/downloads","issues_url":"https://api.github.com/repos/freeorion/freeorion/issues{/number}","pulls_url":"https://api.github.com/repos/freeorion/freeorion/pulls{/number}","milestones_url":"https://api.github.com/repos/freeorion/freeorion/milestones{/number}","notifications_url":"https://api.github.com/repos/freeorion/freeorion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freeorion/freeorion/labels{/name}","releases_url":"https://api.github.com/repos/freeorion/freeorion/releases{/id}","created_at":"2015-03-29T08:22:20Z","updated_at":"2015-07-09T22:34:42Z","pushed_at":"2015-07-15T11:43:30Z","git_url":"git://github.com/freeorion/freeorion.git","ssh_url":"git@github.com:freeorion/freeorion.git","clone_url":"https://github.com/freeorion/freeorion.git","svn_url":"https://github.com/freeorion/freeorion","homepage":"http://www.freeorion.org/","size":491427,"stargazers_count":56,"watchers_count":56,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":8,"forks":30,"open_issues":8,"watchers":56,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/freeorion/freeorion/pulls/215"},"html":{"href":"https://github.com/freeorion/freeorion/pull/215"},"issue":{"href":"https://api.github.com/repos/freeorion/freeorion/issues/215"},"comments":{"href":"https://api.github.com/repos/freeorion/freeorion/issues/215/comments"},"review_comments":{"href":"https://api.github.com/repos/freeorion/freeorion/pulls/215/comments"},"review_comment":{"href":"https://api.github.com/repos/freeorion/freeorion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/freeorion/freeorion/pulls/215/commits"},"statuses":{"href":"https://api.github.com/repos/freeorion/freeorion/statuses/f9ed86c673dc2c817810ebce406185f039a86e02"}}}}