{"action":"created","comment":{"url":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls/comments/88415774","pull_request_review_id":8988408,"id":88415774,"diff_hunk":"@@ -0,0 +1,402 @@\n+'use strict';\n+\n+/**\n+ * @author Copyright RIKSOF (Private) Limited 2016.\n+ *\n+ * @file Test repository.\n+ */\n+var assert = require('assert');\n+var Promise = require('bluebird');\n+\n+var Repository = require('../../lib/vc/Repository.js');\n+var Branches = require('../../lib/vc/Branches.js');\n+var Commits = require('../../lib/vc/Commits.js');\n+var Document = require('../../lib/vc/Document.js');\n+var Mongo = require('../../lib/db/MongoDb.js');\n+var db;\n+var Pulls = require('../../lib/vc/Pulls.js');\n+\n+describe( 'Repository Model MongoDb', function() {\n+\n+  before( function (done) {\n+\n+    db = new Mongo ( 'mongodb://localhost:27017/versioncontrol' );\n+    db.connect().then( function( connection ) { \n+      done();\n+    });\n+  });\n+\n+  describe( '#Open', function() {\n+    it( 'Should be able to open a new repository', function openRepoCb ( ) {\n+      var repo = new Repository( 'RIKSOF', db );\n+      return repo.setup();\n+    });\n+  });\n+\n+  describe( '#Commit', function() {\n+    it( 'Should be able to commit a new object', function commitObjCb ( ) {\n+      var repo = new Repository( 'RIKSOF', db );\n+\n+      return repo.setup().then( function repoSetupCb ( ) {\n+        return repo.branches.add( 'dev' );\n+      }).then( function ( branch ) {\n+        return repo.commit( branch, { name: 'John Doe' }, 'Adding new entry' );\n+      }).then( function ( obj ) {\n+\n+        assert.equal( 'John Doe', obj.name );\n+      });\n+    });\n+\n+    it( 'Should be able to do multiple commits to an object', function() {\n+      var repo = new Repository( 'RIKSOF', db );\n+      var branch = null;\n+\n+      return repo.setup().then( function( ) {\n+        return repo.branches.add( 'dev' );\n+      }).then( function ( b ) {\n+        branch = b;\n+        return repo.commit( branch, { name: 'John Doe' }, 'Adding new entry' );\n+      }).then( function ( obj ) {\n+        assert.equal( 'John Doe', obj.name );\n+        assert.equal( 'Adding new entry', Document.getCommits(obj)[0].logMessage );\n+\n+        obj.age = 10;\n+        return repo.commit( branch, obj, 'Adding age' );\n+      }).then( function ( obj ) {\n+        assert.equal( 10, obj.age );\n+        assert.equal( 'Adding age', Document.getCommits(obj)[1].logMessage );\n+      });\n+    });\n+\n+    it( 'Should be able to commit changes to an array', function() {\n+      var repo = new Repository( 'RIKSOF', db );\n+      var branch = null;\n+\n+      return repo.setup().then( function( ) {\n+        return repo.branches.add( 'dev' );\n+      }).then( function ( br ) {\n+        branch = br;\n+        return repo.commit( branch, { data: [{ name: 'Jon Doe' }] }, 'Adding new entry' );\n+      }).then( function ( obj ) {\n+        obj.data[0].name = 'John Doe';\n+        return repo.commit( branch, obj, 'Corrected name');\n+      }).then( function ( obj ) {\n+        assert.equal( 'John Doe', obj.data[0].name );\n+      });\n+    });\n+  });\n+\n+  describe( '#Merge', function() {\n+    it( 'Should be able to get correct merge report for a new object', function() {\n+      var repo = new Repository( 'RIKSOF', db );\n+      var local = null;\n+      var remote = null;\n+\n+      return repo.setup().then( function( ) {\n+        return repo.branches.add( 'local' );\n+      }).then( function ( l ) {\n+        local = l;\n+        return repo.branches.add( 'remote' );\n+      }).then( function ( r ) {\n+        remote = r;\n+\n+        return repo.commit( remote, { name: 'John Doe' }, 'Adding new contact John Doe' );\n+      }).then( function ( obj ) {\n+        obj.creationDate = new Date();\n+        return repo.commit( remote, obj, 'Added creation date' );\n+      }).then( function ( obj ) {\n+        obj.income = 1000;\n+        return repo.commit( remote, obj, 'Added income' );\n+      }).then( function ( obj ) {\n+        return repo.getMergeReport( obj, Document.getCommits(obj) );\n+      }).then( function( report ) {\n+        assert.equal( 0, report.ourCommits.length );\n+        assert.equal( 3, report.theirCommits.length );\n+        assert.equal( 0, report.conflicts );\n+      });\n+    });\n+\n+    it( 'Should be able to correctly merge a new object', function() {\n+      var repo = new Repository( 'RIKSOF', db );\n+      var local = null;\n+      var remote = null;\n+\n+      return repo.setup().then( function( ) {\n+        return repo.branches.add( 'local' );\n+      }).then( function ( l ) {\n+        local = l;\n+        return repo.branches.add( 'remote' );\n+      }).then( function ( r ) {\n+        remote = r;\n+        return repo.commit( remote, { name: 'John Doe' }, 'Adding new contact John Doe' );\n+      }).then( function( obj ) {\n+        obj.creationDate = new Date();\n+        return repo.commit( remote, obj, 'Added creation date' );\n+      }).then( function ( obj ) {\n+        obj.income = 1000;\n+        return repo.commit( remote, obj, 'Added income' );\n+      }).then( function ( obj ) {\n+        return repo.mergeToBranch( local, Document.getId(obj), Document.getCommits(obj) );\n+      }).then( function ( obj ) {\n+        assert.equal( 'John Doe', obj.name );\n+        assert.notEqual( null, obj.creationDate );\n+        assert.equal( 1000, obj.income );\n+      });\n+    });\n+\n+    it( 'Should be able to correctly merge multiple times', function() {\n+      var repo = new Repository( 'RIKSOF', db );\n+      var local = null;\n+      var remote = null;\n+      var objLocal = null;\n+      var objRemote = null;\n+\n+      return repo.setup().then( function( ) {\n+        return repo.branches.add( 'local' );\n+      }).then( function ( l ) {\n+        local = l;\n+        return repo.branches.add( 'remote' );\n+      }).then( function ( r ) {\n+        remote = r;\n+\n+        return repo.commit( remote, { name: 'John Doe' }, 'Adding new contact John Doe', '1' );\n+      }).then( function ( or ) {\n+        objRemote = or;\n+        objRemote.creationDate = new Date();\n+        return repo.commit( remote, objRemote, 'Added creation date', '2' );\n+      }).then( function ( or ) {\n+        objRemote = or;\n+        objRemote.income = 1000;\n+\n+        return repo.commit( remote, objRemote, 'Added income', '3' );\n+      }).then( function ( or ) {\n+        objRemote = or;\n+        return repo.mergeToBranch( local, Document.getId( objRemote ),\n+          Document.getCommits( objRemote ), 'MERGED: ', null, 'remote' );\n+      }).then( function ( ol ) {\n+        objLocal = ol;\n+        assert.equal( 'John Doe', objLocal.name );\n+        assert.notEqual( null, objLocal.creationDate );\n+        assert.equal( 1000, objLocal.income );\n+\n+        // Go back to the remote branch.\n+        objRemote.skills = 'JavaScript, Node.js';\n+        return repo.commit( remote, objRemote, 'Added skills', '4' );\n+      }).then( function ( or ) {\n+        objRemote = or;\n+        objRemote.company = 'RIKSOF';\n+        return repo.commit( remote, objRemote, 'Added company', '5' );\n+      }).then( function ( or ) {\n+\n+        objRemote = or;\n+\n+        var pullsInfo = new Pulls( Document.getPulls( objLocal ) );\n+\n+        var info = pullsInfo.getPullInformation( 'remote' );\n+\n+        var head = info.head;\n+\n+        var commits = new Commits( Document.getCommits(objRemote) );\n+        var cs = commits.getFilteredCommits( head );\n+\n+        return repo.mergeToBranch( local, Document.getId( objRemote ), cs,\n+          'MERGED: ', head, 'remote' );\n+      }).then( function ( ol ) {\n+        objLocal = ol;\n+\n+        objRemote.project = 'json-api-vc';\n+        return repo.commit( remote, objRemote, 'Added projects', '6' );\n+      }).then( function( or ) {\n+        objRemote = or;\n+\n+        var pullsInfo = new Pulls( Document.getPulls( objLocal ) );\n+        var info = pullsInfo.getPullInformation( 'remote' );\n+        var head = info.head;\n+        var commits = new Commits( Document.getCommits(objRemote) );\n+        var cs = commits.getFilteredCommits( head );\n+        return repo.mergeToBranch( local, Document.getId( objRemote ), cs, 'MERGED: ',\n+          head, 'remote' );\n+      }).then( function ( ol ) {\n+        objLocal = ol;\n+        assert.equal( 'John Doe', objLocal.name );\n+        assert.notEqual( null, objLocal.creationDate );\n+        assert.equal( 1000, objLocal.income );\n+        assert.equal( 'JavaScript, Node.js', objLocal.skills );\n+        assert.equal( 'RIKSOF', objLocal.company );\n+        assert.equal( 'json-api-vc', objLocal.project );\n+\n+        assert.equal( 'MERGED: Adding new contact John Doe (1). Added creation date (2). Added income (3). ',\n+          Document.getCommits(objLocal)[0].logMessage );\n+\n+        assert.equal( 'MERGED: Added skills (4). Added company (5). ',\n+          Document.getCommits(objLocal)[1].logMessage );\n+\n+        assert.equal( 'MERGED: Added projects (6). ',\n+          Document.getCommits(objLocal)[2].logMessage );\n+      });\n+    });\n+\n+    it( 'Should be able to correctly merge multiple times when both branches are being worked on', function() {\n+      var repo = new Repository( 'RIKSOF', db );\n+      var bs = repo.branches;\n+      var local = null;\n+      var remote = null;\n+      var objLocal = null;\n+      var objRemote = null;\n+\n+      return repo.setup().then( function( ) {\n+        return repo.branches.add( 'local' );\n+      }).then( function ( l ) {\n+        local = l;\n+        return repo.branches.add( 'remote' );\n+      }).then( function ( r ) {\n+        remote = r;\n+\n+        return repo.commit( remote, { name: 'John Doe' }, 'Adding new contact John Doe', '1' );\n+      }).then( function ( or ) {\n+        objRemote = or;\n+\n+        objRemote.creationDate = new Date();\n+        return repo.commit( remote, objRemote, 'Added creation date', '2' );\n+      }).then( function ( or ) {\n+        objRemote = or;\n+\n+        objRemote.income = 1000;\n+        return repo.commit( remote, objRemote, 'Added income', '3' );\n+      }).then( function ( or ) {\n+        objRemote = or;\n+        return repo.mergeToBranch( local, Document.getId( objRemote ),\n+          Document.getCommits(objRemote), 'MERGED: ', null, 'remote' );\n+      }).then( function ( ol ) {\n+        objLocal = ol;\n+\n+        assert.equal( 'John Doe', objLocal.name );\n+        assert.notEqual( null, objLocal.creationDate );\n+        assert.equal( 1000, objLocal.income );\n+\n+        // Make changes on local branch.\n+        objLocal.skills = 'JavaScript, Node.js';\n+        return repo.commit( local, objLocal, 'Added skills', '5' );\n+      }).then( function ( ol ) {\n+        objLocal = ol;\n+\n+        // Some on remote.\n+        objRemote.name = 'Joe Doe';\n+        objRemote.company = 'RIKSOF';\n+        return repo.commit( remote, objRemote, 'Added company', '4' );\n+      }).then( function ( or ) {\n+        objRemote = or;\n+\n+        var pullsInfo = new Pulls( Document.getPulls( objLocal ) );\n+        var info = pullsInfo.getPullInformation( 'remote' );\n+        var head = info.head;\n+\n+        var commits = new Commits( Document.getCommits(objRemote) );\n+        var cs = commits.getFilteredCommits( head );\n+\n+        return repo.mergeToBranch( local, Document.getId( objRemote ), cs,\n+          'MERGED: ', head, 'remote' );\n+      }).then( function ( ol ) {\n+        objLocal = ol;\n+\n+        // Some more commits on local\n+        objLocal.cellNumber = '111 111 1111';\n+        return repo.commit( local, objLocal, 'Added cell', '7' );\n+      }).then( function ( ol ) {\n+        objLocal = ol;\n+\n+        // Some more commits on remote\n+        objRemote.project = 'json-api-vc';\n+        return repo.commit( remote, objRemote, 'Added projects', '6' );\n+      }).then( function ( or ) {\n+        objRemote = or;\n+\n+        var pullsInfo = new Pulls( Document.getPulls( objLocal ) );\n+        var info = pullsInfo.getPullInformation( 'remote' );\n+        var head = info.head;\n+\n+        var commits = new Commits( Document.getCommits(objRemote) );\n+        var cs = commits.getFilteredCommits( head );\n+\n+        return repo.mergeToBranch( local, Document.getId( objRemote ), cs,\n+          'MERGED: ', head, 'remote' );\n+      }).then( function ( ol ) {\n+        objLocal = ol;\n+\n+        assert.equal( 'Joe Doe', objLocal.name );\n+        assert.notEqual( null, objLocal.creationDate );\n+        assert.equal( 1000, objLocal.income );\n+        assert.equal( 'JavaScript, Node.js', objLocal.skills );\n+        assert.equal( 'RIKSOF', objLocal.company );\n+        assert.equal( 'json-api-vc', objLocal.project );\n+        assert.equal( '111 111 1111', objLocal.cellNumber );\n+\n+        assert.equal( 'MERGED: Adding new contact John Doe (1). Added creation date (2). Added income (3). ',\n+          Document.getCommits(objLocal)[0].logMessage );\n+        assert.equal( 'Added skills',\n+          Document.getCommits(objLocal)[1].logMessage );\n+        assert.equal( 'MERGED: Added company (4). ',\n+          Document.getCommits(objLocal)[2].logMessage );\n+        assert.equal( 'MERGED: Added skills (5). ',\n+          Document.getCommits(objLocal)[3].logMessage );\n+        assert.equal( 'Added cell',\n+          Document.getCommits(objLocal)[4].logMessage );\n+        assert.equal( 'MERGED: Added projects (6). ',\n+          Document.getCommits(objLocal)[5].logMessage );\n+\n+      });\n+    });\n+  });\n+\n+  describe( '#Search', function() {\n+    it( 'Should be able to search for objects', function() {\n+      var repo = new Repository( 'RIKSOF', db );\n+      var branch = null;\n+\n+      return repo.setup().then( function( ) {\n+        return repo.branches.add( 'contacts' );\n+      }).then( function ( br ) {\n+        branch = br;\n+        var ps = [\n+          repo.commit( branch, { name: 'John Doe', age: 16} , 'Add entry' ),\n+          repo.commit( branch, { name: 'Joe Doe', age: 17} , 'Add entry' ),\n+          repo.commit( branch, { name: 'Doe John', age: 18} , 'Add entry' ),\n+          repo.commit( branch, { name: 'Susan Alpha', age: 19} , 'Add entry' ),\n+          repo.commit( branch, { name: 'Alpha Susan', age: 20} , 'Add entry' ),\n+          repo.commit( branch, { name: 'Beta Theta', age: 21} , 'Add entry' ),\n+          repo.commit( branch, { name: 'Tester Beta', age: 22} , 'Add entry' ),\n+          repo.commit( branch, { name: 'Betty Rebecca', age: 23} , 'Add entry' ),\n+          repo.commit( branch, { name: 'Alpha Charlie', age: 24} , 'Add entry' ),\n+          repo.commit( branch, { name: 'Bravo', age: 25} , 'Add entry' )\n+        ];\n+\n+        return Promise.all( ps );\n+      }).then( function ( ) {\n+        return repo.search( branch, { age: { $gt: 20 } } );\n+      }).then( function( results ) {\n+        assert.equal( 5, results.length );\n+      });\n+    });\n+\n+    it( 'Should be able to do multiple commits to an object', function() {\n+      var repo = new Repository( 'RIKSOF', db );\n+      var branch = null;\n+\n+      return repo.setup().then( function( ) {\n+        return repo.branches.add( 'dev' );\n+      }).then( function ( b ) {\n+        branch = b;\n+        return repo.commit( branch, { name: 'John Doe' }, 'Adding new entry' );\n+      }).then( function ( obj ) {\n+        assert.equal( 'John Doe', obj.name );\n+        assert.equal( 'Adding new entry', Document.getCommits(obj)[0].logMessage );\n+\n+        obj.age = 10;\n+        return repo.commit( branch, obj, 'Adding age' );\n+      }).then( function ( obj ) {","path":"test/vc/Repository.mongodb.js","position":65,"original_position":396,"commit_id":"d4fe91c60a25a419495489ec547fd6c72e27c16b","original_commit_id":"d4fe91c60a25a419495489ec547fd6c72e27c16b","user":{"login":"mkhurramali","id":1565155,"avatar_url":"https://avatars.githubusercontent.com/u/1565155?v=3","gravatar_id":"","url":"https://api.github.com/users/mkhurramali","html_url":"https://github.com/mkhurramali","followers_url":"https://api.github.com/users/mkhurramali/followers","following_url":"https://api.github.com/users/mkhurramali/following{/other_user}","gists_url":"https://api.github.com/users/mkhurramali/gists{/gist_id}","starred_url":"https://api.github.com/users/mkhurramali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkhurramali/subscriptions","organizations_url":"https://api.github.com/users/mkhurramali/orgs","repos_url":"https://api.github.com/users/mkhurramali/repos","events_url":"https://api.github.com/users/mkhurramali/events{/privacy}","received_events_url":"https://api.github.com/users/mkhurramali/received_events","type":"User","site_admin":false},"body":"Missing function expression name.\n```javascript\n      }).then( function ( obj ) {\n```","created_at":"2016-11-17T09:35:31Z","updated_at":"2016-11-17T09:35:31Z","html_url":"https://github.com/RIKSOF/json-api-vc/pull/2#discussion_r88415774","pull_request_url":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls/comments/88415774"},"html":{"href":"https://github.com/RIKSOF/json-api-vc/pull/2#discussion_r88415774"},"pull_request":{"href":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls/2","id":90525461,"html_url":"https://github.com/RIKSOF/json-api-vc/pull/2","diff_url":"https://github.com/RIKSOF/json-api-vc/pull/2.diff","patch_url":"https://github.com/RIKSOF/json-api-vc/pull/2.patch","issue_url":"https://api.github.com/repos/RIKSOF/json-api-vc/issues/2","number":2,"state":"open","locked":false,"title":"Integrate mongodb","user":{"login":"riksof-abdulbari","id":16382695,"avatar_url":"https://avatars.githubusercontent.com/u/16382695?v=3","gravatar_id":"","url":"https://api.github.com/users/riksof-abdulbari","html_url":"https://github.com/riksof-abdulbari","followers_url":"https://api.github.com/users/riksof-abdulbari/followers","following_url":"https://api.github.com/users/riksof-abdulbari/following{/other_user}","gists_url":"https://api.github.com/users/riksof-abdulbari/gists{/gist_id}","starred_url":"https://api.github.com/users/riksof-abdulbari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riksof-abdulbari/subscriptions","organizations_url":"https://api.github.com/users/riksof-abdulbari/orgs","repos_url":"https://api.github.com/users/riksof-abdulbari/repos","events_url":"https://api.github.com/users/riksof-abdulbari/events{/privacy}","received_events_url":"https://api.github.com/users/riksof-abdulbari/received_events","type":"User","site_admin":false},"body":"https://trello.com/c/P2NmZVJJ/2-integrate-with-mongodb\n","created_at":"2016-10-23T18:57:00Z","updated_at":"2016-11-17T09:35:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"208fa057c5e7215dd27a535c0e30acb241179f6a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls/2/commits","review_comments_url":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls/2/comments","review_comment_url":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RIKSOF/json-api-vc/issues/2/comments","statuses_url":"https://api.github.com/repos/RIKSOF/json-api-vc/statuses/d4fe91c60a25a419495489ec547fd6c72e27c16b","head":{"label":"RIKSOF:integrate-mongodb","ref":"integrate-mongodb","sha":"d4fe91c60a25a419495489ec547fd6c72e27c16b","user":{"login":"RIKSOF","id":1582310,"avatar_url":"https://avatars.githubusercontent.com/u/1582310?v=3","gravatar_id":"","url":"https://api.github.com/users/RIKSOF","html_url":"https://github.com/RIKSOF","followers_url":"https://api.github.com/users/RIKSOF/followers","following_url":"https://api.github.com/users/RIKSOF/following{/other_user}","gists_url":"https://api.github.com/users/RIKSOF/gists{/gist_id}","starred_url":"https://api.github.com/users/RIKSOF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIKSOF/subscriptions","organizations_url":"https://api.github.com/users/RIKSOF/orgs","repos_url":"https://api.github.com/users/RIKSOF/repos","events_url":"https://api.github.com/users/RIKSOF/events{/privacy}","received_events_url":"https://api.github.com/users/RIKSOF/received_events","type":"Organization","site_admin":false},"repo":{"id":66145247,"name":"json-api-vc","full_name":"RIKSOF/json-api-vc","owner":{"login":"RIKSOF","id":1582310,"avatar_url":"https://avatars.githubusercontent.com/u/1582310?v=3","gravatar_id":"","url":"https://api.github.com/users/RIKSOF","html_url":"https://github.com/RIKSOF","followers_url":"https://api.github.com/users/RIKSOF/followers","following_url":"https://api.github.com/users/RIKSOF/following{/other_user}","gists_url":"https://api.github.com/users/RIKSOF/gists{/gist_id}","starred_url":"https://api.github.com/users/RIKSOF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIKSOF/subscriptions","organizations_url":"https://api.github.com/users/RIKSOF/orgs","repos_url":"https://api.github.com/users/RIKSOF/repos","events_url":"https://api.github.com/users/RIKSOF/events{/privacy}","received_events_url":"https://api.github.com/users/RIKSOF/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RIKSOF/json-api-vc","description":"A module for quickly building json api with git like version control.","fork":false,"url":"https://api.github.com/repos/RIKSOF/json-api-vc","forks_url":"https://api.github.com/repos/RIKSOF/json-api-vc/forks","keys_url":"https://api.github.com/repos/RIKSOF/json-api-vc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RIKSOF/json-api-vc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RIKSOF/json-api-vc/teams","hooks_url":"https://api.github.com/repos/RIKSOF/json-api-vc/hooks","issue_events_url":"https://api.github.com/repos/RIKSOF/json-api-vc/issues/events{/number}","events_url":"https://api.github.com/repos/RIKSOF/json-api-vc/events","assignees_url":"https://api.github.com/repos/RIKSOF/json-api-vc/assignees{/user}","branches_url":"https://api.github.com/repos/RIKSOF/json-api-vc/branches{/branch}","tags_url":"https://api.github.com/repos/RIKSOF/json-api-vc/tags","blobs_url":"https://api.github.com/repos/RIKSOF/json-api-vc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RIKSOF/json-api-vc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RIKSOF/json-api-vc/git/refs{/sha}","trees_url":"https://api.github.com/repos/RIKSOF/json-api-vc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RIKSOF/json-api-vc/statuses/{sha}","languages_url":"https://api.github.com/repos/RIKSOF/json-api-vc/languages","stargazers_url":"https://api.github.com/repos/RIKSOF/json-api-vc/stargazers","contributors_url":"https://api.github.com/repos/RIKSOF/json-api-vc/contributors","subscribers_url":"https://api.github.com/repos/RIKSOF/json-api-vc/subscribers","subscription_url":"https://api.github.com/repos/RIKSOF/json-api-vc/subscription","commits_url":"https://api.github.com/repos/RIKSOF/json-api-vc/commits{/sha}","git_commits_url":"https://api.github.com/repos/RIKSOF/json-api-vc/git/commits{/sha}","comments_url":"https://api.github.com/repos/RIKSOF/json-api-vc/comments{/number}","issue_comment_url":"https://api.github.com/repos/RIKSOF/json-api-vc/issues/comments{/number}","contents_url":"https://api.github.com/repos/RIKSOF/json-api-vc/contents/{+path}","compare_url":"https://api.github.com/repos/RIKSOF/json-api-vc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RIKSOF/json-api-vc/merges","archive_url":"https://api.github.com/repos/RIKSOF/json-api-vc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RIKSOF/json-api-vc/downloads","issues_url":"https://api.github.com/repos/RIKSOF/json-api-vc/issues{/number}","pulls_url":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls{/number}","milestones_url":"https://api.github.com/repos/RIKSOF/json-api-vc/milestones{/number}","notifications_url":"https://api.github.com/repos/RIKSOF/json-api-vc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RIKSOF/json-api-vc/labels{/name}","releases_url":"https://api.github.com/repos/RIKSOF/json-api-vc/releases{/id}","deployments_url":"https://api.github.com/repos/RIKSOF/json-api-vc/deployments","created_at":"2016-08-20T12:20:09Z","updated_at":"2016-08-21T15:00:30Z","pushed_at":"2016-11-17T04:58:06Z","git_url":"git://github.com/RIKSOF/json-api-vc.git","ssh_url":"git@github.com:RIKSOF/json-api-vc.git","clone_url":"https://github.com/RIKSOF/json-api-vc.git","svn_url":"https://github.com/RIKSOF/json-api-vc","homepage":null,"size":684,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"RIKSOF:master","ref":"master","sha":"fe141a33d9fbca743f75531fae99941430840bdf","user":{"login":"RIKSOF","id":1582310,"avatar_url":"https://avatars.githubusercontent.com/u/1582310?v=3","gravatar_id":"","url":"https://api.github.com/users/RIKSOF","html_url":"https://github.com/RIKSOF","followers_url":"https://api.github.com/users/RIKSOF/followers","following_url":"https://api.github.com/users/RIKSOF/following{/other_user}","gists_url":"https://api.github.com/users/RIKSOF/gists{/gist_id}","starred_url":"https://api.github.com/users/RIKSOF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIKSOF/subscriptions","organizations_url":"https://api.github.com/users/RIKSOF/orgs","repos_url":"https://api.github.com/users/RIKSOF/repos","events_url":"https://api.github.com/users/RIKSOF/events{/privacy}","received_events_url":"https://api.github.com/users/RIKSOF/received_events","type":"Organization","site_admin":false},"repo":{"id":66145247,"name":"json-api-vc","full_name":"RIKSOF/json-api-vc","owner":{"login":"RIKSOF","id":1582310,"avatar_url":"https://avatars.githubusercontent.com/u/1582310?v=3","gravatar_id":"","url":"https://api.github.com/users/RIKSOF","html_url":"https://github.com/RIKSOF","followers_url":"https://api.github.com/users/RIKSOF/followers","following_url":"https://api.github.com/users/RIKSOF/following{/other_user}","gists_url":"https://api.github.com/users/RIKSOF/gists{/gist_id}","starred_url":"https://api.github.com/users/RIKSOF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIKSOF/subscriptions","organizations_url":"https://api.github.com/users/RIKSOF/orgs","repos_url":"https://api.github.com/users/RIKSOF/repos","events_url":"https://api.github.com/users/RIKSOF/events{/privacy}","received_events_url":"https://api.github.com/users/RIKSOF/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RIKSOF/json-api-vc","description":"A module for quickly building json api with git like version control.","fork":false,"url":"https://api.github.com/repos/RIKSOF/json-api-vc","forks_url":"https://api.github.com/repos/RIKSOF/json-api-vc/forks","keys_url":"https://api.github.com/repos/RIKSOF/json-api-vc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RIKSOF/json-api-vc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RIKSOF/json-api-vc/teams","hooks_url":"https://api.github.com/repos/RIKSOF/json-api-vc/hooks","issue_events_url":"https://api.github.com/repos/RIKSOF/json-api-vc/issues/events{/number}","events_url":"https://api.github.com/repos/RIKSOF/json-api-vc/events","assignees_url":"https://api.github.com/repos/RIKSOF/json-api-vc/assignees{/user}","branches_url":"https://api.github.com/repos/RIKSOF/json-api-vc/branches{/branch}","tags_url":"https://api.github.com/repos/RIKSOF/json-api-vc/tags","blobs_url":"https://api.github.com/repos/RIKSOF/json-api-vc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RIKSOF/json-api-vc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RIKSOF/json-api-vc/git/refs{/sha}","trees_url":"https://api.github.com/repos/RIKSOF/json-api-vc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RIKSOF/json-api-vc/statuses/{sha}","languages_url":"https://api.github.com/repos/RIKSOF/json-api-vc/languages","stargazers_url":"https://api.github.com/repos/RIKSOF/json-api-vc/stargazers","contributors_url":"https://api.github.com/repos/RIKSOF/json-api-vc/contributors","subscribers_url":"https://api.github.com/repos/RIKSOF/json-api-vc/subscribers","subscription_url":"https://api.github.com/repos/RIKSOF/json-api-vc/subscription","commits_url":"https://api.github.com/repos/RIKSOF/json-api-vc/commits{/sha}","git_commits_url":"https://api.github.com/repos/RIKSOF/json-api-vc/git/commits{/sha}","comments_url":"https://api.github.com/repos/RIKSOF/json-api-vc/comments{/number}","issue_comment_url":"https://api.github.com/repos/RIKSOF/json-api-vc/issues/comments{/number}","contents_url":"https://api.github.com/repos/RIKSOF/json-api-vc/contents/{+path}","compare_url":"https://api.github.com/repos/RIKSOF/json-api-vc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RIKSOF/json-api-vc/merges","archive_url":"https://api.github.com/repos/RIKSOF/json-api-vc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RIKSOF/json-api-vc/downloads","issues_url":"https://api.github.com/repos/RIKSOF/json-api-vc/issues{/number}","pulls_url":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls{/number}","milestones_url":"https://api.github.com/repos/RIKSOF/json-api-vc/milestones{/number}","notifications_url":"https://api.github.com/repos/RIKSOF/json-api-vc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RIKSOF/json-api-vc/labels{/name}","releases_url":"https://api.github.com/repos/RIKSOF/json-api-vc/releases{/id}","deployments_url":"https://api.github.com/repos/RIKSOF/json-api-vc/deployments","created_at":"2016-08-20T12:20:09Z","updated_at":"2016-08-21T15:00:30Z","pushed_at":"2016-11-17T04:58:06Z","git_url":"git://github.com/RIKSOF/json-api-vc.git","ssh_url":"git@github.com:RIKSOF/json-api-vc.git","clone_url":"https://github.com/RIKSOF/json-api-vc.git","svn_url":"https://github.com/RIKSOF/json-api-vc","homepage":null,"size":684,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls/2"},"html":{"href":"https://github.com/RIKSOF/json-api-vc/pull/2"},"issue":{"href":"https://api.github.com/repos/RIKSOF/json-api-vc/issues/2"},"comments":{"href":"https://api.github.com/repos/RIKSOF/json-api-vc/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RIKSOF/json-api-vc/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/RIKSOF/json-api-vc/statuses/d4fe91c60a25a419495489ec547fd6c72e27c16b"}}}}
{"actor":{"display_login":"mkhurramali"}}