{"action":"created","issue":{"url":"https://api.github.com/repos/libmir/mir-algorithm/issues/125","repository_url":"https://api.github.com/repos/libmir/mir-algorithm","labels_url":"https://api.github.com/repos/libmir/mir-algorithm/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/libmir/mir-algorithm/issues/125/comments","events_url":"https://api.github.com/repos/libmir/mir-algorithm/issues/125/events","html_url":"https://github.com/libmir/mir-algorithm/pull/125","id":294134255,"number":125,"title":"Use latest stable version for run.dlang.io for now","user":{"login":"wilzbach","id":4370550,"avatar_url":"https://avatars3.githubusercontent.com/u/4370550?v=4","gravatar_id":"","url":"https://api.github.com/users/wilzbach","html_url":"https://github.com/wilzbach","followers_url":"https://api.github.com/users/wilzbach/followers","following_url":"https://api.github.com/users/wilzbach/following{/other_user}","gists_url":"https://api.github.com/users/wilzbach/gists{/gist_id}","starred_url":"https://api.github.com/users/wilzbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilzbach/subscriptions","organizations_url":"https://api.github.com/users/wilzbach/orgs","repos_url":"https://api.github.com/users/wilzbach/repos","events_url":"https://api.github.com/users/wilzbach/events{/privacy}","received_events_url":"https://api.github.com/users/wilzbach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-03T18:34:07Z","updated_at":"2018-02-03T18:37:18Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/libmir/mir-algorithm/pulls/125","html_url":"https://github.com/libmir/mir-algorithm/pull/125","diff_url":"https://github.com/libmir/mir-algorithm/pull/125.diff","patch_url":"https://github.com/libmir/mir-algorithm/pull/125.patch"},"body":"For now, run.dlang.io only contains the latest stable release.\nThis will make sure, that this is selected.\nI might build the latest unstable release too over the next days, but not today anymore."},"comment":{"url":"https://api.github.com/repos/libmir/mir-algorithm/issues/comments/362843351","html_url":"https://github.com/libmir/mir-algorithm/pull/125#issuecomment-362843351","issue_url":"https://api.github.com/repos/libmir/mir-algorithm/issues/125","id":362843351,"user":{"login":"wilzbach","id":4370550,"avatar_url":"https://avatars3.githubusercontent.com/u/4370550?v=4","gravatar_id":"","url":"https://api.github.com/users/wilzbach","html_url":"https://github.com/wilzbach","followers_url":"https://api.github.com/users/wilzbach/followers","following_url":"https://api.github.com/users/wilzbach/following{/other_user}","gists_url":"https://api.github.com/users/wilzbach/gists{/gist_id}","starred_url":"https://api.github.com/users/wilzbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilzbach/subscriptions","organizations_url":"https://api.github.com/users/wilzbach/orgs","repos_url":"https://api.github.com/users/wilzbach/repos","events_url":"https://api.github.com/users/wilzbach/events{/privacy}","received_events_url":"https://api.github.com/users/wilzbach/received_events","type":"User","site_admin":false},"created_at":"2018-02-03T18:37:18Z","updated_at":"2018-02-03T18:37:18Z","author_association":"OWNER","body":"BTW @9il I saw that many public examples miss the `mir.ndslice.slide` import.\r\nWe could automatically add that one to all example with something like this:\r\n\r\n```diff\r\ndiff --git a/doc/run_examples_custom.js b/doc/run_examples_custom.js\r\nindex b6ef413..c211279 100644\r\n--- a/doc/run_examples_custom.js\r\n+++ b/doc/run_examples_custom.js\r\n@@ -21,6 +21,9 @@ function wrapIntoMain(code) {\r\n     else {\r\n         codeOut += \"void main()\\n{\\n\";\r\n         codeOut += \"    import \" + currentPackage + \";\\n\";\r\n+        if (currentPackage !== \"mir.ndslice.slice\") {\r\n+          codeOut += \"    import mir.ndslice.slice;\\n\"\r\n+        }\r\n         // writing to the stdout is probably often used\r\n         codeOut += \"    import std.stdio: write, writeln, writef, writefln;\\n    \";\r\n         codeOut += code.split(\"\\n\").join(\"\\n    \");\r\n```\r\n\r\nbut I'm thinking that's probably more valuable to potential readers to add the imports in the public unittest directly where needed, s.t. they don't get an error when they copy/paste.\r\nWhat do you think?"}}
{"actor":{"display_login":"wilzbach"}}