payload: {"action":"created","issue":{"url":"https://api.github.com/repos/go-yaml/yaml/issues/450","repository_url":"https://api.github.com/repos/go-yaml/yaml","labels_url":"https://api.github.com/repos/go-yaml/yaml/issues/450/labels{/name}","comments_url":"https://api.github.com/repos/go-yaml/yaml/issues/450/comments","events_url":"https://api.github.com/repos/go-yaml/yaml/issues/450/events","html_url":"https://github.com/go-yaml/yaml/issues/450","id":429802101,"node_id":"MDU6SXNzdWU0Mjk4MDIxMDE=","number":450,"title":"Support CRLF endings","user":{"login":"owlscode","id":47750176,"node_id":"MDQ6VXNlcjQ3NzUwMTc2","avatar_url":"https://avatars2.githubusercontent.com/u/47750176?v=4","gravatar_id":"","url":"https://api.github.com/users/owlscode","html_url":"https://github.com/owlscode","followers_url":"https://api.github.com/users/owlscode/followers","following_url":"https://api.github.com/users/owlscode/following{/other_user}","gists_url":"https://api.github.com/users/owlscode/gists{/gist_id}","starred_url":"https://api.github.com/users/owlscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owlscode/subscriptions","organizations_url":"https://api.github.com/users/owlscode/orgs","repos_url":"https://api.github.com/users/owlscode/repos","events_url":"https://api.github.com/users/owlscode/events{/privacy}","received_events_url":"https://api.github.com/users/owlscode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2019-04-05T15:05:07Z","updated_at":"2019-07-06T21:26:26Z","closed_at":null,"author_association":"NONE","body":"## Witnessed behavior\r\n`go-yaml` does not support CRLF line endings when reading a file directly (which would be the main use case). For instance, the following code won't work if the loaded file is written on Windows:\r\n```go\r\ntype Auth struct {\r\n\tCustomer struct {\r\n\t\tKey    string\r\n\t\tSecret string\r\n\t}\r\n\tApp struct {\r\n\t\tKey    string\r\n\t\tSecret string\r\n\t}\r\n}\r\n\r\nfunc main() {\r\n\tdata, err := ioutil.ReadFile(\"./secret.yml\")\r\n\tif err != nil {\r\n\t\tfmt.Println(err.Error())\r\n\t\tos.Exit(1)\r\n\t}\r\n\r\n\ta := Auth{}\r\n\terr = yaml.Unmarshal(data, &a)\r\n\tif err != nil {\r\n\t\tfmt.Println(err.Error())\r\n\t\tos.Exit(1)\r\n\t}\r\n\tfmt.Println(a)\r\n}\r\n```\r\nWith the following file content:\r\n```yaml\r\n--- \r\napp:\r\n  key: 10475405799b09120-vSkxPPI9HsWN61vO4DroQUGFpgNCs2\r\n  secret: Z6nG4UInQVWx7Sagpmu6GsUYWZsvd5E6uIbPdlW8csfemaxm\r\ncustomer:\r\n  key: JA2PXLd8qeXTDpx7UccWsvp60V6\r\n  secret: qOsUM6996LQSkRw9HsnxyU3EVJzACIOEUxCBTiOcTELTF800VVQ\r\n```\r\nHere's the error: `yaml: line 3: mapping values are not allowed in this context`\r\n\r\n## Expected behavior\r\nJust work as usual."},"comment":{"url":"https://api.github.com/repos/go-yaml/yaml/issues/comments/508954684","html_url":"https://github.com/go-yaml/yaml/issues/450#issuecomment-508954684","issue_url":"https://api.github.com/repos/go-yaml/yaml/issues/450","id":508954684,"node_id":"MDEyOklzc3VlQ29tbWVudDUwODk1NDY4NA==","user":{"login":"andreynering","id":7011819,"node_id":"MDQ6VXNlcjcwMTE4MTk=","avatar_url":"https://avatars2.githubusercontent.com/u/7011819?v=4","gravatar_id":"","url":"https://api.github.com/users/andreynering","html_url":"https://github.com/andreynering","followers_url":"https://api.github.com/users/andreynering/followers","following_url":"https://api.github.com/users/andreynering/following{/other_user}","gists_url":"https://api.github.com/users/andreynering/gists{/gist_id}","starred_url":"https://api.github.com/users/andreynering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreynering/subscriptions","organizations_url":"https://api.github.com/users/andreynering/orgs","repos_url":"https://api.github.com/users/andreynering/repos","events_url":"https://api.github.com/users/andreynering/events{/privacy}","received_events_url":"https://api.github.com/users/andreynering/received_events","type":"User","site_admin":false},"created_at":"2019-07-06T21:26:26Z","updated_at":"2019-07-06T21:26:26Z","author_association":"NONE","body":"@itscaro \r\n\r\n> just tested, it seems to be ok with the master\r\n\r\nThat's because `master` is still on v2, AFAIK."}}
other: {"actor":{"display_login":"andreynering"}}