{"action":"created","issue":{"url":"https://api.github.com/repos/py-pa/django-minio-storage/issues/63","repository_url":"https://api.github.com/repos/py-pa/django-minio-storage","labels_url":"https://api.github.com/repos/py-pa/django-minio-storage/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/py-pa/django-minio-storage/issues/63/comments","events_url":"https://api.github.com/repos/py-pa/django-minio-storage/issues/63/events","html_url":"https://github.com/py-pa/django-minio-storage/pull/63","id":337780201,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4ODc1MzM4","number":63,"title":"Fixed issue with `MinioStorage._sanitize_path`","user":{"login":"rafaelsierra","id":1147163,"node_id":"MDQ6VXNlcjExNDcxNjM=","avatar_url":"https://avatars1.githubusercontent.com/u/1147163?v=4","gravatar_id":"","url":"https://api.github.com/users/rafaelsierra","html_url":"https://github.com/rafaelsierra","followers_url":"https://api.github.com/users/rafaelsierra/followers","following_url":"https://api.github.com/users/rafaelsierra/following{/other_user}","gists_url":"https://api.github.com/users/rafaelsierra/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelsierra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelsierra/subscriptions","organizations_url":"https://api.github.com/users/rafaelsierra/orgs","repos_url":"https://api.github.com/users/rafaelsierra/repos","events_url":"https://api.github.com/users/rafaelsierra/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelsierra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-03T07:41:30Z","updated_at":"2018-08-23T09:31:12Z","closed_at":"2018-08-23T09:31:12Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/py-pa/django-minio-storage/pulls/63","html_url":"https://github.com/py-pa/django-minio-storage/pull/63","diff_url":"https://github.com/py-pa/django-minio-storage/pull/63.diff","patch_url":"https://github.com/py-pa/django-minio-storage/pull/63.patch"},"body":"Calling `\".foo.bar\".lstrip(\"./\")` results in `foo.bar` instead of `.foo.bar`\r\n\r\nSince the idea is to remove `./` from the beginning of the object name, I changed the `_sanitize_path` method to do that using `startswith` and slicing the string\r\n\r\nFixes #3 "},"comment":{"url":"https://api.github.com/repos/py-pa/django-minio-storage/issues/comments/415353267","html_url":"https://github.com/py-pa/django-minio-storage/pull/63#issuecomment-415353267","issue_url":"https://api.github.com/repos/py-pa/django-minio-storage/issues/63","id":415353267,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTM1MzI2Nw==","user":{"login":"thomasf","id":330847,"node_id":"MDQ6VXNlcjMzMDg0Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/330847?v=4","gravatar_id":"","url":"https://api.github.com/users/thomasf","html_url":"https://github.com/thomasf","followers_url":"https://api.github.com/users/thomasf/followers","following_url":"https://api.github.com/users/thomasf/following{/other_user}","gists_url":"https://api.github.com/users/thomasf/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasf/subscriptions","organizations_url":"https://api.github.com/users/thomasf/orgs","repos_url":"https://api.github.com/users/thomasf/repos","events_url":"https://api.github.com/users/thomasf/events{/privacy}","received_events_url":"https://api.github.com/users/thomasf/received_events","type":"User","site_admin":false},"created_at":"2018-08-23T09:31:12Z","updated_at":"2018-08-23T09:31:12Z","author_association":"COLLABORATOR","body":"I borrowed your test into #58 , closing this issue."}}
{"actor":{"display_login":"thomasf"}}