{"action":"opened","issue":{"url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/393","repository_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior","labels_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/393/comments","events_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/issues/393/events","html_url":"https://github.com/GothenburgBitFactory/taskwarrior/issues/393","id":296586361,"number":393,"title":"[TW-358] Config::createDefaultRC in 2.3.0 is JSON-encoding the default RC file contents","user":{"login":"taskwarrior","id":146045,"avatar_url":"https://avatars0.githubusercontent.com/u/146045?v=4","gravatar_id":"","url":"https://api.github.com/users/taskwarrior","html_url":"https://github.com/taskwarrior","followers_url":"https://api.github.com/users/taskwarrior/followers","following_url":"https://api.github.com/users/taskwarrior/following{/other_user}","gists_url":"https://api.github.com/users/taskwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/taskwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskwarrior/subscriptions","organizations_url":"https://api.github.com/users/taskwarrior/orgs","repos_url":"https://api.github.com/users/taskwarrior/repos","events_url":"https://api.github.com/users/taskwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/taskwarrior/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/milestones/17","html_url":"https://github.com/GothenburgBitFactory/taskwarrior/milestone/17","labels_url":"https://api.github.com/repos/GothenburgBitFactory/taskwarrior/milestones/17/labels","id":3107835,"number":17,"title":"2.3.0","description":null,"creator":{"login":"taskwarrior","id":146045,"avatar_url":"https://avatars0.githubusercontent.com/u/146045?v=4","gravatar_id":"","url":"https://api.github.com/users/taskwarrior","html_url":"https://github.com/taskwarrior","followers_url":"https://api.github.com/users/taskwarrior/followers","following_url":"https://api.github.com/users/taskwarrior/following{/other_user}","gists_url":"https://api.github.com/users/taskwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/taskwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskwarrior/subscriptions","organizations_url":"https://api.github.com/users/taskwarrior/orgs","repos_url":"https://api.github.com/users/taskwarrior/repos","events_url":"https://api.github.com/users/taskwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/taskwarrior/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":9,"state":"open","created_at":"2018-02-12T14:06:49Z","updated_at":"2018-02-13T01:45:41Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-02-13T01:45:40Z","updated_at":"2018-02-13T01:45:40Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"_Jonathan Hankins on 2013-12-11T23:48:56Z says:_ \n\n This is a change from 2.2.x to 2.3.0.  Starting at task-2.3.0.beta2/src/Config.cpp line 553:\n\n553   // Write out the new file.\n554   if (! File::write (rc, json::encode (contents.str ())))\n555     throw format (STRING_CONFIG_BAD_WRITE, rc);\n\nIf you look at 2.2.x, the json::encode was not there.\n\nIf you start without a .taskrc file, and answer yes to the prompt to create a default config, it looks like this:\n1.  [Created by task 2.3.0.beta2 12\\/11\\/2013 17:45:29]\\n# Taskwarrior program configuration file.\\n# For more documentation, see http:\\/\\/taskwarrior.org or try 'man task', 'man task-faq',\\n# 'man task-tutorial', 'man task-color', 'man task-sync' or 'man taskrc'\\n\\n# Here is an example of entries that use the default, override and blank values\\n#   variable=foo   -- By specifying a value, this overrides the default\\n#   variable=      -- By specifying no value, this means no default\\n#   #variable=foo  -- By commenting out the line, or deleting it, this uses the default\\n\\n# Use the command 'task show' to see all defaults and overrides\\n\\n# Files\\ndata.location=~\\/.task\\n\\n# Color theme (uncomment one to use)\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/light-16.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/light-256.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-16.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-256.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-red-256.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-green-256.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-blue-256.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-violets-256.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-yellow-green.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-gray-256.theme\\n\\n\n\n(that's all one line)\n\nHowever, after a \"task config verbose no\", it is apparent that it just appends the new directive correctly:\n1.  [Created by task 2.3.0.beta2 12\\/11\\/2013 17:45:29]\\n# Taskwarrior program configuration file.\\n# For more documentation, see http:\\/\\/taskwarrior.org or try 'man task', 'man task-faq',\\n# 'man task-tutorial', 'man task-color', 'man task-sync' or 'man taskrc'\\n\\n# Here is an example of entries that use the default, override and blank values\\n#   variable=foo   -- By specifying a value, this overrides the default\\n#   variable=      -- By specifying no value, this means no default\\n#   #variable=foo  -- By commenting out the line, or deleting it, this uses the default\\n\\n# Use the command 'task show' to see all defaults and overrides\\n\\n# Files\\ndata.location=~\\/.task\\n\\n# Color theme (uncomment one to use)\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/light-16.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/light-256.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-16.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-256.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-red-256.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-green-256.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-blue-256.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-violets-256.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-yellow-green.theme\\n#include \\/usr\\/local\\/share\\/doc\\/task\\/rc\\/dark-gray-256.theme\\n\\n\nverbose=no"}}
{"actor":{"display_login":"taskwarrior"}}