{"action":"created","issue":{"url":"https://api.github.com/repos/SwiftGit2/SwiftGit2/issues/131","repository_url":"https://api.github.com/repos/SwiftGit2/SwiftGit2","labels_url":"https://api.github.com/repos/SwiftGit2/SwiftGit2/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/SwiftGit2/SwiftGit2/issues/131/comments","events_url":"https://api.github.com/repos/SwiftGit2/SwiftGit2/issues/131/events","html_url":"https://github.com/SwiftGit2/SwiftGit2/issues/131","id":324722750,"number":131,"title":"No such file or directory","user":{"login":"lucascorrea","id":385947,"avatar_url":"https://avatars1.githubusercontent.com/u/385947?v=4","gravatar_id":"","url":"https://api.github.com/users/lucascorrea","html_url":"https://github.com/lucascorrea","followers_url":"https://api.github.com/users/lucascorrea/followers","following_url":"https://api.github.com/users/lucascorrea/following{/other_user}","gists_url":"https://api.github.com/users/lucascorrea/gists{/gist_id}","starred_url":"https://api.github.com/users/lucascorrea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucascorrea/subscriptions","organizations_url":"https://api.github.com/users/lucascorrea/orgs","repos_url":"https://api.github.com/users/lucascorrea/repos","events_url":"https://api.github.com/users/lucascorrea/events{/privacy}","received_events_url":"https://api.github.com/users/lucascorrea/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-20T16:39:35Z","updated_at":"2018-05-21T22:22:08Z","closed_at":"2018-05-21T22:08:50Z","author_association":"NONE","body":"Hi everyone, I'm trying to use the framework but I received this error.\r\n`No such file or directory`\r\n\r\nCould you send me an example to clone, please?\r\n\r\nI've tried it just a test of connection.\r\n\r\nThank you.\r\n\r\n```\r\nlet url: URL = URL(string: \"https://github.com/klaidliadon/tent-sample\")!\r\n        let repo = Repository.at(url)\r\n        print(repo)\r\n        if let repo = repo.value {\r\n            let latestCommit: Result<Commit, NSError> = repo\r\n                .HEAD()\r\n                .flatMap { repo.commit($0.oid) }\r\n            if let commit = latestCommit.value {\r\n                print(\"Latest Commit: \\(commit.message) by \\(commit.author.name)\")\r\n            } else {\r\n                print(\"Could not get commit: \\(latestCommit.error)\")\r\n            }\r\n        } else {\r\n            print(\"Could not open repository: \\(repo.error)\")\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/SwiftGit2/SwiftGit2/issues/comments/390800848","html_url":"https://github.com/SwiftGit2/SwiftGit2/issues/131#issuecomment-390800848","issue_url":"https://api.github.com/repos/SwiftGit2/SwiftGit2/issues/131","id":390800848,"user":{"login":"mdiep","id":1302,"avatar_url":"https://avatars2.githubusercontent.com/u/1302?v=4","gravatar_id":"","url":"https://api.github.com/users/mdiep","html_url":"https://github.com/mdiep","followers_url":"https://api.github.com/users/mdiep/followers","following_url":"https://api.github.com/users/mdiep/following{/other_user}","gists_url":"https://api.github.com/users/mdiep/gists{/gist_id}","starred_url":"https://api.github.com/users/mdiep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdiep/subscriptions","organizations_url":"https://api.github.com/users/mdiep/orgs","repos_url":"https://api.github.com/users/mdiep/repos","events_url":"https://api.github.com/users/mdiep/events{/privacy}","received_events_url":"https://api.github.com/users/mdiep/received_events","type":"User","site_admin":false},"created_at":"2018-05-21T22:22:08Z","updated_at":"2018-05-21T22:22:08Z","author_association":"CONTRIBUTOR","body":"> I think that could put more examples on Readme.md\r\n\r\nPull requests welcome! 😄 "}}
{"actor":{"display_login":"mdiep"}}