{"action":"opened","number":39,"pull_request":{"url":"https://api.github.com/repos/mbucc/shmig/pulls/39","id":193795654,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzNzk1NjU0","html_url":"https://github.com/mbucc/shmig/pull/39","diff_url":"https://github.com/mbucc/shmig/pull/39.diff","patch_url":"https://github.com/mbucc/shmig/pull/39.patch","issue_url":"https://api.github.com/repos/mbucc/shmig/issues/39","number":39,"state":"open","locked":false,"title":"Implemented local override config file","user":{"login":"kael-shipman","id":3475586,"node_id":"MDQ6VXNlcjM0NzU1ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/3475586?v=4","gravatar_id":"","url":"https://api.github.com/users/kael-shipman","html_url":"https://github.com/kael-shipman","followers_url":"https://api.github.com/users/kael-shipman/followers","following_url":"https://api.github.com/users/kael-shipman/following{/other_user}","gists_url":"https://api.github.com/users/kael-shipman/gists{/gist_id}","starred_url":"https://api.github.com/users/kael-shipman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kael-shipman/subscriptions","organizations_url":"https://api.github.com/users/kael-shipman/orgs","repos_url":"https://api.github.com/users/kael-shipman/repos","events_url":"https://api.github.com/users/kael-shipman/events{/privacy}","received_events_url":"https://api.github.com/users/kael-shipman/received_events","type":"User","site_admin":false},"body":"This PR allows users to specify a local configuration file `shmig.local.conf` that they can ignore from version control, such that they may specify instance-specific configs that override the default configs in `shmig.conf`.\r\n\r\nThis is a scheme I much prefer to environment variables, as there is virtually no devops overhead -- you just add the configs in the local file and any user that runs the program will have access to them.\r\n\r\nThis can be used to easily implement multiple environments, as you've demonstrated with `prod` vs `test`, among other things.\r\n\r\nAlso, if you haven't seen [bash_unit](https://github.com/pgrange/bash_unit), I've found it to be pretty cool. I didn't use it here because I didn't want to disrupt your test flow, but thought you might like to know :).","created_at":"2018-06-09T20:48:41Z","updated_at":"2018-06-09T20:48:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mbucc/shmig/pulls/39/commits","review_comments_url":"https://api.github.com/repos/mbucc/shmig/pulls/39/comments","review_comment_url":"https://api.github.com/repos/mbucc/shmig/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mbucc/shmig/issues/39/comments","statuses_url":"https://api.github.com/repos/mbucc/shmig/statuses/bcfaaf6d06515c8fa689cabc9d3c5f3404eb2792","head":{"label":"cfxmarkets:local-conf","ref":"local-conf","sha":"bcfaaf6d06515c8fa689cabc9d3c5f3404eb2792","user":{"login":"cfxmarkets","id":29207339,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MjA3MzM5","avatar_url":"https://avatars0.githubusercontent.com/u/29207339?v=4","gravatar_id":"","url":"https://api.github.com/users/cfxmarkets","html_url":"https://github.com/cfxmarkets","followers_url":"https://api.github.com/users/cfxmarkets/followers","following_url":"https://api.github.com/users/cfxmarkets/following{/other_user}","gists_url":"https://api.github.com/users/cfxmarkets/gists{/gist_id}","starred_url":"https://api.github.com/users/cfxmarkets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfxmarkets/subscriptions","organizations_url":"https://api.github.com/users/cfxmarkets/orgs","repos_url":"https://api.github.com/users/cfxmarkets/repos","events_url":"https://api.github.com/users/cfxmarkets/events{/privacy}","received_events_url":"https://api.github.com/users/cfxmarkets/received_events","type":"Organization","site_admin":false},"repo":{"id":136752802,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY3NTI4MDI=","name":"shmig","full_name":"cfxmarkets/shmig","owner":{"login":"cfxmarkets","id":29207339,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MjA3MzM5","avatar_url":"https://avatars0.githubusercontent.com/u/29207339?v=4","gravatar_id":"","url":"https://api.github.com/users/cfxmarkets","html_url":"https://github.com/cfxmarkets","followers_url":"https://api.github.com/users/cfxmarkets/followers","following_url":"https://api.github.com/users/cfxmarkets/following{/other_user}","gists_url":"https://api.github.com/users/cfxmarkets/gists{/gist_id}","starred_url":"https://api.github.com/users/cfxmarkets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfxmarkets/subscriptions","organizations_url":"https://api.github.com/users/cfxmarkets/orgs","repos_url":"https://api.github.com/users/cfxmarkets/repos","events_url":"https://api.github.com/users/cfxmarkets/events{/privacy}","received_events_url":"https://api.github.com/users/cfxmarkets/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cfxmarkets/shmig","description":"Database migration tool written in BASH.","fork":true,"url":"https://api.github.com/repos/cfxmarkets/shmig","forks_url":"https://api.github.com/repos/cfxmarkets/shmig/forks","keys_url":"https://api.github.com/repos/cfxmarkets/shmig/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cfxmarkets/shmig/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cfxmarkets/shmig/teams","hooks_url":"https://api.github.com/repos/cfxmarkets/shmig/hooks","issue_events_url":"https://api.github.com/repos/cfxmarkets/shmig/issues/events{/number}","events_url":"https://api.github.com/repos/cfxmarkets/shmig/events","assignees_url":"https://api.github.com/repos/cfxmarkets/shmig/assignees{/user}","branches_url":"https://api.github.com/repos/cfxmarkets/shmig/branches{/branch}","tags_url":"https://api.github.com/repos/cfxmarkets/shmig/tags","blobs_url":"https://api.github.com/repos/cfxmarkets/shmig/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cfxmarkets/shmig/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cfxmarkets/shmig/git/refs{/sha}","trees_url":"https://api.github.com/repos/cfxmarkets/shmig/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cfxmarkets/shmig/statuses/{sha}","languages_url":"https://api.github.com/repos/cfxmarkets/shmig/languages","stargazers_url":"https://api.github.com/repos/cfxmarkets/shmig/stargazers","contributors_url":"https://api.github.com/repos/cfxmarkets/shmig/contributors","subscribers_url":"https://api.github.com/repos/cfxmarkets/shmig/subscribers","subscription_url":"https://api.github.com/repos/cfxmarkets/shmig/subscription","commits_url":"https://api.github.com/repos/cfxmarkets/shmig/commits{/sha}","git_commits_url":"https://api.github.com/repos/cfxmarkets/shmig/git/commits{/sha}","comments_url":"https://api.github.com/repos/cfxmarkets/shmig/comments{/number}","issue_comment_url":"https://api.github.com/repos/cfxmarkets/shmig/issues/comments{/number}","contents_url":"https://api.github.com/repos/cfxmarkets/shmig/contents/{+path}","compare_url":"https://api.github.com/repos/cfxmarkets/shmig/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cfxmarkets/shmig/merges","archive_url":"https://api.github.com/repos/cfxmarkets/shmig/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cfxmarkets/shmig/downloads","issues_url":"https://api.github.com/repos/cfxmarkets/shmig/issues{/number}","pulls_url":"https://api.github.com/repos/cfxmarkets/shmig/pulls{/number}","milestones_url":"https://api.github.com/repos/cfxmarkets/shmig/milestones{/number}","notifications_url":"https://api.github.com/repos/cfxmarkets/shmig/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cfxmarkets/shmig/labels{/name}","releases_url":"https://api.github.com/repos/cfxmarkets/shmig/releases{/id}","deployments_url":"https://api.github.com/repos/cfxmarkets/shmig/deployments","created_at":"2018-06-09T19:45:14Z","updated_at":"2018-06-09T19:45:16Z","pushed_at":"2018-06-09T20:41:05Z","git_url":"git://github.com/cfxmarkets/shmig.git","ssh_url":"git@github.com:cfxmarkets/shmig.git","clone_url":"https://github.com/cfxmarkets/shmig.git","svn_url":"https://github.com/cfxmarkets/shmig","homepage":null,"size":86,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mbucc:master","ref":"master","sha":"4ee0893bb699c5c802e2689d0b1a3720076e0659","user":{"login":"mbucc","id":85849,"node_id":"MDQ6VXNlcjg1ODQ5","avatar_url":"https://avatars2.githubusercontent.com/u/85849?v=4","gravatar_id":"","url":"https://api.github.com/users/mbucc","html_url":"https://github.com/mbucc","followers_url":"https://api.github.com/users/mbucc/followers","following_url":"https://api.github.com/users/mbucc/following{/other_user}","gists_url":"https://api.github.com/users/mbucc/gists{/gist_id}","starred_url":"https://api.github.com/users/mbucc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbucc/subscriptions","organizations_url":"https://api.github.com/users/mbucc/orgs","repos_url":"https://api.github.com/users/mbucc/repos","events_url":"https://api.github.com/users/mbucc/events{/privacy}","received_events_url":"https://api.github.com/users/mbucc/received_events","type":"User","site_admin":false},"repo":{"id":13263886,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI2Mzg4Ng==","name":"shmig","full_name":"mbucc/shmig","owner":{"login":"mbucc","id":85849,"node_id":"MDQ6VXNlcjg1ODQ5","avatar_url":"https://avatars2.githubusercontent.com/u/85849?v=4","gravatar_id":"","url":"https://api.github.com/users/mbucc","html_url":"https://github.com/mbucc","followers_url":"https://api.github.com/users/mbucc/followers","following_url":"https://api.github.com/users/mbucc/following{/other_user}","gists_url":"https://api.github.com/users/mbucc/gists{/gist_id}","starred_url":"https://api.github.com/users/mbucc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbucc/subscriptions","organizations_url":"https://api.github.com/users/mbucc/orgs","repos_url":"https://api.github.com/users/mbucc/repos","events_url":"https://api.github.com/users/mbucc/events{/privacy}","received_events_url":"https://api.github.com/users/mbucc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mbucc/shmig","description":"Database migration tool written in BASH.","fork":false,"url":"https://api.github.com/repos/mbucc/shmig","forks_url":"https://api.github.com/repos/mbucc/shmig/forks","keys_url":"https://api.github.com/repos/mbucc/shmig/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbucc/shmig/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbucc/shmig/teams","hooks_url":"https://api.github.com/repos/mbucc/shmig/hooks","issue_events_url":"https://api.github.com/repos/mbucc/shmig/issues/events{/number}","events_url":"https://api.github.com/repos/mbucc/shmig/events","assignees_url":"https://api.github.com/repos/mbucc/shmig/assignees{/user}","branches_url":"https://api.github.com/repos/mbucc/shmig/branches{/branch}","tags_url":"https://api.github.com/repos/mbucc/shmig/tags","blobs_url":"https://api.github.com/repos/mbucc/shmig/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbucc/shmig/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbucc/shmig/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbucc/shmig/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbucc/shmig/statuses/{sha}","languages_url":"https://api.github.com/repos/mbucc/shmig/languages","stargazers_url":"https://api.github.com/repos/mbucc/shmig/stargazers","contributors_url":"https://api.github.com/repos/mbucc/shmig/contributors","subscribers_url":"https://api.github.com/repos/mbucc/shmig/subscribers","subscription_url":"https://api.github.com/repos/mbucc/shmig/subscription","commits_url":"https://api.github.com/repos/mbucc/shmig/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbucc/shmig/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbucc/shmig/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbucc/shmig/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbucc/shmig/contents/{+path}","compare_url":"https://api.github.com/repos/mbucc/shmig/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbucc/shmig/merges","archive_url":"https://api.github.com/repos/mbucc/shmig/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbucc/shmig/downloads","issues_url":"https://api.github.com/repos/mbucc/shmig/issues{/number}","pulls_url":"https://api.github.com/repos/mbucc/shmig/pulls{/number}","milestones_url":"https://api.github.com/repos/mbucc/shmig/milestones{/number}","notifications_url":"https://api.github.com/repos/mbucc/shmig/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbucc/shmig/labels{/name}","releases_url":"https://api.github.com/repos/mbucc/shmig/releases{/id}","deployments_url":"https://api.github.com/repos/mbucc/shmig/deployments","created_at":"2013-10-02T06:06:06Z","updated_at":"2018-05-22T14:43:25Z","pushed_at":"2018-03-04T15:49:16Z","git_url":"git://github.com/mbucc/shmig.git","ssh_url":"git@github.com:mbucc/shmig.git","clone_url":"https://github.com/mbucc/shmig.git","svn_url":"https://github.com/mbucc/shmig","homepage":null,"size":86,"stargazers_count":136,"watchers_count":136,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":28,"open_issues":6,"watchers":136,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mbucc/shmig/pulls/39"},"html":{"href":"https://github.com/mbucc/shmig/pull/39"},"issue":{"href":"https://api.github.com/repos/mbucc/shmig/issues/39"},"comments":{"href":"https://api.github.com/repos/mbucc/shmig/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/mbucc/shmig/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/mbucc/shmig/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mbucc/shmig/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/mbucc/shmig/statuses/bcfaaf6d06515c8fa689cabc9d3c5f3404eb2792"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":116,"deletions":2,"changed_files":3}}
{"actor":{"display_login":"kael-shipman"}}