{"action":"created","issue":{"url":"https://api.github.com/repos/kevindavus/personal-goals-cli/issues/1","repository_url":"https://api.github.com/repos/kevindavus/personal-goals-cli","labels_url":"https://api.github.com/repos/kevindavus/personal-goals-cli/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/kevindavus/personal-goals-cli/issues/1/comments","events_url":"https://api.github.com/repos/kevindavus/personal-goals-cli/issues/1/events","html_url":"https://github.com/kevindavus/personal-goals-cli/issues/1","id":254824228,"number":1,"title":"Custom README","user":{"login":"mxstbr","id":7525670,"avatar_url":"https://avatars0.githubusercontent.com/u/7525670?v=4","gravatar_id":"","url":"https://api.github.com/users/mxstbr","html_url":"https://github.com/mxstbr","followers_url":"https://api.github.com/users/mxstbr/followers","following_url":"https://api.github.com/users/mxstbr/following{/other_user}","gists_url":"https://api.github.com/users/mxstbr/gists{/gist_id}","starred_url":"https://api.github.com/users/mxstbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxstbr/subscriptions","organizations_url":"https://api.github.com/users/mxstbr/orgs","repos_url":"https://api.github.com/users/mxstbr/repos","events_url":"https://api.github.com/users/mxstbr/events{/privacy}","received_events_url":"https://api.github.com/users/mxstbr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-09-02T17:14:31Z","updated_at":"2017-09-02T17:23:11Z","closed_at":null,"author_association":"NONE","body":"Right now, the CLI replaces the full README every time a change is requested and inserts the change in the new content. This means I can't change the boilerplate content of the README, since it's just going to revert back to the initial state when I change/add/remove a goal.\r\n\r\nInstead, the first time the CLI is run and the README would be adapted it should create a new README based on the template, with a small change: it has invisible markers for goals. Something like this:\r\n\r\n```markdown\r\n\r\nPersonal Goals\r\n==============\r\nPersonal goals made open source for accessibility across computers I use, transparency, accountability, and versioning. Learn more about it [here](http://una.im/personal-goals-guide).\r\n\r\n# Overarching Goals for 2017:\r\n### This year's focus: Do good things this year\r\n\r\n  \r\n<!-- personal-goals-cli yearly -->\r\n  \r\n# Weekly Goals Aug 27th, 2017:\r\n### This week's focus: Do good things this week\r\n\r\n<!-- personal-goals-cli weekly -->\r\n\r\n# Monthly Goals August 2017:\r\n### This month's focus: Do good things this month\r\n\r\n<!-- personal-goals-cli monthly -->\r\n\r\n# Other Goals:\r\n\r\n<!-- personal-goals-cli other -->\r\n```\r\n\r\n(notice the HTML comments; those won't show up on GitHub)\r\n\r\nNow, rather than replacing the whole README when a goal is added/changed/removed, it just looks for the marker and adds/changes/removes the goal there. That way, I can change the format, edit the top part of the README or add more information add the bottom but the goal setting will still work!\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/kevindavus/personal-goals-cli/issues/comments/326758060","html_url":"https://github.com/kevindavus/personal-goals-cli/issues/1#issuecomment-326758060","issue_url":"https://api.github.com/repos/kevindavus/personal-goals-cli/issues/1","id":326758060,"user":{"login":"mxstbr","id":7525670,"avatar_url":"https://avatars0.githubusercontent.com/u/7525670?v=4","gravatar_id":"","url":"https://api.github.com/users/mxstbr","html_url":"https://github.com/mxstbr","followers_url":"https://api.github.com/users/mxstbr/followers","following_url":"https://api.github.com/users/mxstbr/following{/other_user}","gists_url":"https://api.github.com/users/mxstbr/gists{/gist_id}","starred_url":"https://api.github.com/users/mxstbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxstbr/subscriptions","organizations_url":"https://api.github.com/users/mxstbr/orgs","repos_url":"https://api.github.com/users/mxstbr/repos","events_url":"https://api.github.com/users/mxstbr/events{/privacy}","received_events_url":"https://api.github.com/users/mxstbr/received_events","type":"User","site_admin":false},"created_at":"2017-09-02T17:23:11Z","updated_at":"2017-09-02T17:23:11Z","author_association":"NONE","body":"> Or stick with this, you should be able to edit the readme at any time and it will look for those comments before writing anything new\r\n\r\nThat sounds very great to me. Could also make the markers more explicit, something like `<!-- DO NOT TOUCH THIS COMMENT, PERSONAL GOALS CLI NEEDS IT TO KNOW WHERE WEEKLY GOALS GO -->` or something haha"}}
{"actor":{"display_login":"mxstbr"}}