{"action":"created","comment":{"url":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls/comments/102798749","pull_request_review_id":23566833,"id":102798749,"diff_hunk":"@@ -113,6 +119,36 @@ export class ProcBot<T> {\n         this.output(level, this._alertLevel, this.alertLevelStrings, message);\n     }\n \n+    // Process a configuration file from YAML into a nested object.\n+    protected processConfiguration(configFile: string): ProcBotConfiguration | void {\n+        const config: ProcBotConfiguration = yaml.safeLoad(configFile);\n+\n+        if (!config) {\n+            return;\n+        }\n+\n+        // Swap out known tags that become booleans.\n+        const minimumVersion = ((config || {}).procbot || {}).minimum_version;\n+        if (minimumVersion && process.env.npm_package_version) {\n+            config.procbot.minimum_version = (process.env.npm_package_version < minimumVersion) ? false : true;\n+        } else {\n+            config.procbot.minimum_version = true;\n+        }","path":"lib/bots/procbot.ts","position":66,"original_position":66,"commit_id":"16e0190188bdbda19eb2800b79ec451206e5e725","original_commit_id":"16e0190188bdbda19eb2800b79ec451206e5e725","user":{"login":"lurch","id":476186,"avatar_url":"https://avatars.githubusercontent.com/u/476186?v=3","gravatar_id":"","url":"https://api.github.com/users/lurch","html_url":"https://github.com/lurch","followers_url":"https://api.github.com/users/lurch/followers","following_url":"https://api.github.com/users/lurch/following{/other_user}","gists_url":"https://api.github.com/users/lurch/gists{/gist_id}","starred_url":"https://api.github.com/users/lurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lurch/subscriptions","organizations_url":"https://api.github.com/users/lurch/orgs","repos_url":"https://api.github.com/users/lurch/repos","events_url":"https://api.github.com/users/lurch/events{/privacy}","received_events_url":"https://api.github.com/users/lurch/received_events","type":"User","site_admin":false},"body":"Yeah, that's also something I'd asked about in #45 ","created_at":"2017-02-23T19:36:44Z","updated_at":"2017-02-23T19:36:45Z","html_url":"https://github.com/resin-io-modules/resin-procbots/pull/52#discussion_r102798749","pull_request_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls/comments/102798749"},"html":{"href":"https://github.com/resin-io-modules/resin-procbots/pull/52#discussion_r102798749"},"pull_request":{"href":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls/52","id":107646665,"html_url":"https://github.com/resin-io-modules/resin-procbots/pull/52","diff_url":"https://github.com/resin-io-modules/resin-procbots/pull/52.diff","patch_url":"https://github.com/resin-io-modules/resin-procbots/pull/52.patch","issue_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/issues/52","number":52,"state":"open","locked":false,"title":"Add VersionBot configuration files via Github repos; ensure `procbots/versionbot/ready-to-merge` label is removed post-merge","user":{"login":"hedss","id":8259026,"avatar_url":"https://avatars.githubusercontent.com/u/8259026?v=3","gravatar_id":"","url":"https://api.github.com/users/hedss","html_url":"https://github.com/hedss","followers_url":"https://api.github.com/users/hedss/followers","following_url":"https://api.github.com/users/hedss/following{/other_user}","gists_url":"https://api.github.com/users/hedss/gists{/gist_id}","starred_url":"https://api.github.com/users/hedss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedss/subscriptions","organizations_url":"https://api.github.com/users/hedss/orgs","repos_url":"https://api.github.com/users/hedss/repos","events_url":"https://api.github.com/users/hedss/events{/privacy}","received_events_url":"https://api.github.com/users/hedss/received_events","type":"User","site_admin":false},"body":"Github repos may now explicitly control how VersionBot behaves, via the use of\r\na YAML file. Currently, a full, valid file consists of:\r\n\r\n```\r\nprocbot:\r\n    minimum_version: <semver number>\r\n    githubbot:\r\n        versionbot:\r\n\t    maintainers:\r\n\t        - <Github username 1>\r\n\t\t- <Github username 2>\r\n\t\t- ...\r\n```\r\n\r\nAll contents are optional.\r\n* Should a `minimum_version` be found, ProcBot children will not run should their\r\n  version not at least match the value given.\r\n* Should a list of maintainers be given, VersionBot will not attempt to carry\r\n  out a merge should the `procbots/versionbot/ready-to-merge` label not have been\r\n  added by a user in the `maintainers` list.\r\n\r\nAll code methods also now explicitly define a return type.\r\n\r\nConnects to #45\r\nConnects to #51\r\nConnects to #50\r\n\r\nChange-type: minor","created_at":"2017-02-23T15:24:15Z","updated_at":"2017-02-23T19:36:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57b82b54dec0b0a2ed042cdc22f061458372c6d4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls/52/commits","review_comments_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls/52/comments","review_comment_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls/comments{/number}","comments_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/issues/52/comments","statuses_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/statuses/16e0190188bdbda19eb2800b79ec451206e5e725","head":{"label":"resin-io-modules:45-config-files","ref":"45-config-files","sha":"16e0190188bdbda19eb2800b79ec451206e5e725","user":{"login":"resin-io-modules","id":17724750,"avatar_url":"https://avatars.githubusercontent.com/u/17724750?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io-modules","html_url":"https://github.com/resin-io-modules","followers_url":"https://api.github.com/users/resin-io-modules/followers","following_url":"https://api.github.com/users/resin-io-modules/following{/other_user}","gists_url":"https://api.github.com/users/resin-io-modules/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io-modules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io-modules/subscriptions","organizations_url":"https://api.github.com/users/resin-io-modules/orgs","repos_url":"https://api.github.com/users/resin-io-modules/repos","events_url":"https://api.github.com/users/resin-io-modules/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io-modules/received_events","type":"Organization","site_admin":false},"repo":{"id":76547744,"name":"resin-procbots","full_name":"resin-io-modules/resin-procbots","owner":{"login":"resin-io-modules","id":17724750,"avatar_url":"https://avatars.githubusercontent.com/u/17724750?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io-modules","html_url":"https://github.com/resin-io-modules","followers_url":"https://api.github.com/users/resin-io-modules/followers","following_url":"https://api.github.com/users/resin-io-modules/following{/other_user}","gists_url":"https://api.github.com/users/resin-io-modules/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io-modules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io-modules/subscriptions","organizations_url":"https://api.github.com/users/resin-io-modules/orgs","repos_url":"https://api.github.com/users/resin-io-modules/repos","events_url":"https://api.github.com/users/resin-io-modules/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io-modules/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io-modules/resin-procbots","description":"Process bots used for automating the development and deployment CI pipeline","fork":false,"url":"https://api.github.com/repos/resin-io-modules/resin-procbots","forks_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/forks","keys_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/teams","hooks_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/hooks","issue_events_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/events","assignees_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/tags","blobs_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/languages","stargazers_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/stargazers","contributors_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/contributors","subscribers_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/subscribers","subscription_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/subscription","commits_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/merges","archive_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/downloads","issues_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/labels{/name}","releases_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/releases{/id}","deployments_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/deployments","created_at":"2016-12-15T09:58:14Z","updated_at":"2017-02-02T17:29:32Z","pushed_at":"2017-02-23T15:24:15Z","git_url":"git://github.com/resin-io-modules/resin-procbots.git","ssh_url":"git@github.com:resin-io-modules/resin-procbots.git","clone_url":"https://github.com/resin-io-modules/resin-procbots.git","svn_url":"https://github.com/resin-io-modules/resin-procbots","homepage":null,"size":429,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":21,"forks":0,"open_issues":21,"watchers":1,"default_branch":"master"}},"base":{"label":"resin-io-modules:master","ref":"master","sha":"4ce400c8dc14a23eb1c5f3c77bfeb4aa389b4a72","user":{"login":"resin-io-modules","id":17724750,"avatar_url":"https://avatars.githubusercontent.com/u/17724750?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io-modules","html_url":"https://github.com/resin-io-modules","followers_url":"https://api.github.com/users/resin-io-modules/followers","following_url":"https://api.github.com/users/resin-io-modules/following{/other_user}","gists_url":"https://api.github.com/users/resin-io-modules/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io-modules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io-modules/subscriptions","organizations_url":"https://api.github.com/users/resin-io-modules/orgs","repos_url":"https://api.github.com/users/resin-io-modules/repos","events_url":"https://api.github.com/users/resin-io-modules/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io-modules/received_events","type":"Organization","site_admin":false},"repo":{"id":76547744,"name":"resin-procbots","full_name":"resin-io-modules/resin-procbots","owner":{"login":"resin-io-modules","id":17724750,"avatar_url":"https://avatars.githubusercontent.com/u/17724750?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io-modules","html_url":"https://github.com/resin-io-modules","followers_url":"https://api.github.com/users/resin-io-modules/followers","following_url":"https://api.github.com/users/resin-io-modules/following{/other_user}","gists_url":"https://api.github.com/users/resin-io-modules/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io-modules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io-modules/subscriptions","organizations_url":"https://api.github.com/users/resin-io-modules/orgs","repos_url":"https://api.github.com/users/resin-io-modules/repos","events_url":"https://api.github.com/users/resin-io-modules/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io-modules/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io-modules/resin-procbots","description":"Process bots used for automating the development and deployment CI pipeline","fork":false,"url":"https://api.github.com/repos/resin-io-modules/resin-procbots","forks_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/forks","keys_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/teams","hooks_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/hooks","issue_events_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/events","assignees_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/tags","blobs_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/languages","stargazers_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/stargazers","contributors_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/contributors","subscribers_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/subscribers","subscription_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/subscription","commits_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/merges","archive_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/downloads","issues_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/labels{/name}","releases_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/releases{/id}","deployments_url":"https://api.github.com/repos/resin-io-modules/resin-procbots/deployments","created_at":"2016-12-15T09:58:14Z","updated_at":"2017-02-02T17:29:32Z","pushed_at":"2017-02-23T15:24:15Z","git_url":"git://github.com/resin-io-modules/resin-procbots.git","ssh_url":"git@github.com:resin-io-modules/resin-procbots.git","clone_url":"https://github.com/resin-io-modules/resin-procbots.git","svn_url":"https://github.com/resin-io-modules/resin-procbots","homepage":null,"size":429,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":21,"forks":0,"open_issues":21,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls/52"},"html":{"href":"https://github.com/resin-io-modules/resin-procbots/pull/52"},"issue":{"href":"https://api.github.com/repos/resin-io-modules/resin-procbots/issues/52"},"comments":{"href":"https://api.github.com/repos/resin-io-modules/resin-procbots/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/resin-io-modules/resin-procbots/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/resin-io-modules/resin-procbots/statuses/16e0190188bdbda19eb2800b79ec451206e5e725"}}}}
{"actor":{"display_login":"lurch"}}