{"action":"created","comment":{"url":"https://api.github.com/repos/screwdriver-cd/data-model/pulls/comments/64604292","id":64604292,"diff_hunk":"@@ -0,0 +1,58 @@\n+'use strict';\n+const assert = require('chai').assert;\n+const yaml = require('js-yaml');\n+const joi = require('joi');\n+const fs = require('fs');\n+const path = require('path');\n+const model = require('../index');\n+const DATA_DIR = path.join(__dirname, 'data');\n+\n+describe('pipeline test', () => {\n+    describe('base', () => {\n+        it('validates the base', () => {\n+            const exampleFile = path.join(DATA_DIR, 'pipeline.yaml');","path":"test/pipeline.test.js","position":13,"original_position":13,"commit_id":"4398d4b772e957ddd86dd5e302babe9c58f6844c","original_commit_id":"4398d4b772e957ddd86dd5e302babe9c58f6844c","user":{"login":"stjohnjohnson","id":622065,"avatar_url":"https://avatars.githubusercontent.com/u/622065?v=3","gravatar_id":"","url":"https://api.github.com/users/stjohnjohnson","html_url":"https://github.com/stjohnjohnson","followers_url":"https://api.github.com/users/stjohnjohnson/followers","following_url":"https://api.github.com/users/stjohnjohnson/following{/other_user}","gists_url":"https://api.github.com/users/stjohnjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/stjohnjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjohnjohnson/subscriptions","organizations_url":"https://api.github.com/users/stjohnjohnson/orgs","repos_url":"https://api.github.com/users/stjohnjohnson/repos","events_url":"https://api.github.com/users/stjohnjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/stjohnjohnson/received_events","type":"User","site_admin":false},"body":"Good idea, on it.","created_at":"2016-05-25T16:20:46Z","updated_at":"2016-05-25T16:20:46Z","html_url":"https://github.com/screwdriver-cd/data-model/pull/1#discussion_r64604292","pull_request_url":"https://api.github.com/repos/screwdriver-cd/data-model/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/screwdriver-cd/data-model/pulls/comments/64604292"},"html":{"href":"https://github.com/screwdriver-cd/data-model/pull/1#discussion_r64604292"},"pull_request":{"href":"https://api.github.com/repos/screwdriver-cd/data-model/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/screwdriver-cd/data-model/pulls/1","id":71268765,"html_url":"https://github.com/screwdriver-cd/data-model/pull/1","diff_url":"https://github.com/screwdriver-cd/data-model/pull/1.diff","patch_url":"https://github.com/screwdriver-cd/data-model/pull/1.patch","issue_url":"https://api.github.com/repos/screwdriver-cd/data-model/issues/1","number":1,"state":"open","locked":false,"title":"Migrating to eslint and adding Pipeline and Build model","user":{"login":"stjohnjohnson","id":622065,"avatar_url":"https://avatars.githubusercontent.com/u/622065?v=3","gravatar_id":"","url":"https://api.github.com/users/stjohnjohnson","html_url":"https://github.com/stjohnjohnson","followers_url":"https://api.github.com/users/stjohnjohnson/followers","following_url":"https://api.github.com/users/stjohnjohnson/following{/other_user}","gists_url":"https://api.github.com/users/stjohnjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/stjohnjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjohnjohnson/subscriptions","organizations_url":"https://api.github.com/users/stjohnjohnson/orgs","repos_url":"https://api.github.com/users/stjohnjohnson/repos","events_url":"https://api.github.com/users/stjohnjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/stjohnjohnson/received_events","type":"User","site_admin":false},"body":"This upgrades to our new eslint/generator and adds the basic Build and Pipeline model.","created_at":"2016-05-24T18:23:32Z","updated_at":"2016-05-25T16:20:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1e06941920c911ddab8baa8e441310ef80d6b1a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/screwdriver-cd/data-model/pulls/1/commits","review_comments_url":"https://api.github.com/repos/screwdriver-cd/data-model/pulls/1/comments","review_comment_url":"https://api.github.com/repos/screwdriver-cd/data-model/pulls/comments{/number}","comments_url":"https://api.github.com/repos/screwdriver-cd/data-model/issues/1/comments","statuses_url":"https://api.github.com/repos/screwdriver-cd/data-model/statuses/4398d4b772e957ddd86dd5e302babe9c58f6844c","head":{"label":"screwdriver-cd:AddingPipelineBuild","ref":"AddingPipelineBuild","sha":"4398d4b772e957ddd86dd5e302babe9c58f6844c","user":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars.githubusercontent.com/u/19417863?v=3","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"repo":{"id":59503868,"name":"data-model","full_name":"screwdriver-cd/data-model","owner":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars.githubusercontent.com/u/19417863?v=3","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/screwdriver-cd/data-model","description":"Screwdriver Internal Data Model","fork":false,"url":"https://api.github.com/repos/screwdriver-cd/data-model","forks_url":"https://api.github.com/repos/screwdriver-cd/data-model/forks","keys_url":"https://api.github.com/repos/screwdriver-cd/data-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/screwdriver-cd/data-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/screwdriver-cd/data-model/teams","hooks_url":"https://api.github.com/repos/screwdriver-cd/data-model/hooks","issue_events_url":"https://api.github.com/repos/screwdriver-cd/data-model/issues/events{/number}","events_url":"https://api.github.com/repos/screwdriver-cd/data-model/events","assignees_url":"https://api.github.com/repos/screwdriver-cd/data-model/assignees{/user}","branches_url":"https://api.github.com/repos/screwdriver-cd/data-model/branches{/branch}","tags_url":"https://api.github.com/repos/screwdriver-cd/data-model/tags","blobs_url":"https://api.github.com/repos/screwdriver-cd/data-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/screwdriver-cd/data-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/screwdriver-cd/data-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/screwdriver-cd/data-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/screwdriver-cd/data-model/statuses/{sha}","languages_url":"https://api.github.com/repos/screwdriver-cd/data-model/languages","stargazers_url":"https://api.github.com/repos/screwdriver-cd/data-model/stargazers","contributors_url":"https://api.github.com/repos/screwdriver-cd/data-model/contributors","subscribers_url":"https://api.github.com/repos/screwdriver-cd/data-model/subscribers","subscription_url":"https://api.github.com/repos/screwdriver-cd/data-model/subscription","commits_url":"https://api.github.com/repos/screwdriver-cd/data-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/screwdriver-cd/data-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/screwdriver-cd/data-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/screwdriver-cd/data-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/screwdriver-cd/data-model/contents/{+path}","compare_url":"https://api.github.com/repos/screwdriver-cd/data-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/screwdriver-cd/data-model/merges","archive_url":"https://api.github.com/repos/screwdriver-cd/data-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/screwdriver-cd/data-model/downloads","issues_url":"https://api.github.com/repos/screwdriver-cd/data-model/issues{/number}","pulls_url":"https://api.github.com/repos/screwdriver-cd/data-model/pulls{/number}","milestones_url":"https://api.github.com/repos/screwdriver-cd/data-model/milestones{/number}","notifications_url":"https://api.github.com/repos/screwdriver-cd/data-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/screwdriver-cd/data-model/labels{/name}","releases_url":"https://api.github.com/repos/screwdriver-cd/data-model/releases{/id}","deployments_url":"https://api.github.com/repos/screwdriver-cd/data-model/deployments","created_at":"2016-05-23T17:25:33Z","updated_at":"2016-05-23T17:42:46Z","pushed_at":"2016-05-25T00:54:50Z","git_url":"git://github.com/screwdriver-cd/data-model.git","ssh_url":"git@github.com:screwdriver-cd/data-model.git","clone_url":"https://github.com/screwdriver-cd/data-model.git","svn_url":"https://github.com/screwdriver-cd/data-model","homepage":null,"size":8,"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":"screwdriver-cd:master","ref":"master","sha":"04105d9c7ea01c0681ff6370939b26254727a15a","user":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars.githubusercontent.com/u/19417863?v=3","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"repo":{"id":59503868,"name":"data-model","full_name":"screwdriver-cd/data-model","owner":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars.githubusercontent.com/u/19417863?v=3","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/screwdriver-cd/data-model","description":"Screwdriver Internal Data Model","fork":false,"url":"https://api.github.com/repos/screwdriver-cd/data-model","forks_url":"https://api.github.com/repos/screwdriver-cd/data-model/forks","keys_url":"https://api.github.com/repos/screwdriver-cd/data-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/screwdriver-cd/data-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/screwdriver-cd/data-model/teams","hooks_url":"https://api.github.com/repos/screwdriver-cd/data-model/hooks","issue_events_url":"https://api.github.com/repos/screwdriver-cd/data-model/issues/events{/number}","events_url":"https://api.github.com/repos/screwdriver-cd/data-model/events","assignees_url":"https://api.github.com/repos/screwdriver-cd/data-model/assignees{/user}","branches_url":"https://api.github.com/repos/screwdriver-cd/data-model/branches{/branch}","tags_url":"https://api.github.com/repos/screwdriver-cd/data-model/tags","blobs_url":"https://api.github.com/repos/screwdriver-cd/data-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/screwdriver-cd/data-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/screwdriver-cd/data-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/screwdriver-cd/data-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/screwdriver-cd/data-model/statuses/{sha}","languages_url":"https://api.github.com/repos/screwdriver-cd/data-model/languages","stargazers_url":"https://api.github.com/repos/screwdriver-cd/data-model/stargazers","contributors_url":"https://api.github.com/repos/screwdriver-cd/data-model/contributors","subscribers_url":"https://api.github.com/repos/screwdriver-cd/data-model/subscribers","subscription_url":"https://api.github.com/repos/screwdriver-cd/data-model/subscription","commits_url":"https://api.github.com/repos/screwdriver-cd/data-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/screwdriver-cd/data-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/screwdriver-cd/data-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/screwdriver-cd/data-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/screwdriver-cd/data-model/contents/{+path}","compare_url":"https://api.github.com/repos/screwdriver-cd/data-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/screwdriver-cd/data-model/merges","archive_url":"https://api.github.com/repos/screwdriver-cd/data-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/screwdriver-cd/data-model/downloads","issues_url":"https://api.github.com/repos/screwdriver-cd/data-model/issues{/number}","pulls_url":"https://api.github.com/repos/screwdriver-cd/data-model/pulls{/number}","milestones_url":"https://api.github.com/repos/screwdriver-cd/data-model/milestones{/number}","notifications_url":"https://api.github.com/repos/screwdriver-cd/data-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/screwdriver-cd/data-model/labels{/name}","releases_url":"https://api.github.com/repos/screwdriver-cd/data-model/releases{/id}","deployments_url":"https://api.github.com/repos/screwdriver-cd/data-model/deployments","created_at":"2016-05-23T17:25:33Z","updated_at":"2016-05-23T17:42:46Z","pushed_at":"2016-05-25T00:54:50Z","git_url":"git://github.com/screwdriver-cd/data-model.git","ssh_url":"git@github.com:screwdriver-cd/data-model.git","clone_url":"https://github.com/screwdriver-cd/data-model.git","svn_url":"https://github.com/screwdriver-cd/data-model","homepage":null,"size":8,"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/screwdriver-cd/data-model/pulls/1"},"html":{"href":"https://github.com/screwdriver-cd/data-model/pull/1"},"issue":{"href":"https://api.github.com/repos/screwdriver-cd/data-model/issues/1"},"comments":{"href":"https://api.github.com/repos/screwdriver-cd/data-model/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/screwdriver-cd/data-model/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/screwdriver-cd/data-model/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/screwdriver-cd/data-model/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/screwdriver-cd/data-model/statuses/4398d4b772e957ddd86dd5e302babe9c58f6844c"}}}}
{"actor":{"display_login":"stjohnjohnson"}}