{"action":"opened","number":64,"pull_request":{"url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/pulls/64","id":187915368,"html_url":"https://github.com/fishtown-analytics/dbt-utils/pull/64","diff_url":"https://github.com/fishtown-analytics/dbt-utils/pull/64.diff","patch_url":"https://github.com/fishtown-analytics/dbt-utils/pull/64.patch","issue_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/issues/64","number":64,"state":"open","locked":false,"title":"Add macro to get subdomain from URL","user":{"login":"dwallace0723","id":20053731,"avatar_url":"https://avatars3.githubusercontent.com/u/20053731?v=4","gravatar_id":"","url":"https://api.github.com/users/dwallace0723","html_url":"https://github.com/dwallace0723","followers_url":"https://api.github.com/users/dwallace0723/followers","following_url":"https://api.github.com/users/dwallace0723/following{/other_user}","gists_url":"https://api.github.com/users/dwallace0723/gists{/gist_id}","starred_url":"https://api.github.com/users/dwallace0723/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwallace0723/subscriptions","organizations_url":"https://api.github.com/users/dwallace0723/orgs","repos_url":"https://api.github.com/users/dwallace0723/repos","events_url":"https://api.github.com/users/dwallace0723/events{/privacy}","received_events_url":"https://api.github.com/users/dwallace0723/received_events","type":"User","site_admin":false},"body":"This macro will attempt to grab a subdomain when provided a URL. If no subdomain exists, it will return `NULL`.","created_at":"2018-05-14T18:40:11Z","updated_at":"2018-05-14T18:40:11Z","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/fishtown-analytics/dbt-utils/pulls/64/commits","review_comments_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/pulls/64/comments","review_comment_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/issues/64/comments","statuses_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/statuses/5411cc7b9cd34690c71ede4ba989e479a5073908","head":{"label":"dwallace0723:add-get-subdomain-macro","ref":"add-get-subdomain-macro","sha":"5411cc7b9cd34690c71ede4ba989e479a5073908","user":{"login":"dwallace0723","id":20053731,"avatar_url":"https://avatars3.githubusercontent.com/u/20053731?v=4","gravatar_id":"","url":"https://api.github.com/users/dwallace0723","html_url":"https://github.com/dwallace0723","followers_url":"https://api.github.com/users/dwallace0723/followers","following_url":"https://api.github.com/users/dwallace0723/following{/other_user}","gists_url":"https://api.github.com/users/dwallace0723/gists{/gist_id}","starred_url":"https://api.github.com/users/dwallace0723/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwallace0723/subscriptions","organizations_url":"https://api.github.com/users/dwallace0723/orgs","repos_url":"https://api.github.com/users/dwallace0723/repos","events_url":"https://api.github.com/users/dwallace0723/events{/privacy}","received_events_url":"https://api.github.com/users/dwallace0723/received_events","type":"User","site_admin":false},"repo":{"id":108466727,"name":"dbt-utils","full_name":"dwallace0723/dbt-utils","owner":{"login":"dwallace0723","id":20053731,"avatar_url":"https://avatars3.githubusercontent.com/u/20053731?v=4","gravatar_id":"","url":"https://api.github.com/users/dwallace0723","html_url":"https://github.com/dwallace0723","followers_url":"https://api.github.com/users/dwallace0723/followers","following_url":"https://api.github.com/users/dwallace0723/following{/other_user}","gists_url":"https://api.github.com/users/dwallace0723/gists{/gist_id}","starred_url":"https://api.github.com/users/dwallace0723/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwallace0723/subscriptions","organizations_url":"https://api.github.com/users/dwallace0723/orgs","repos_url":"https://api.github.com/users/dwallace0723/repos","events_url":"https://api.github.com/users/dwallace0723/events{/privacy}","received_events_url":"https://api.github.com/users/dwallace0723/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dwallace0723/dbt-utils","description":"Utility functions for dbt projects.","fork":true,"url":"https://api.github.com/repos/dwallace0723/dbt-utils","forks_url":"https://api.github.com/repos/dwallace0723/dbt-utils/forks","keys_url":"https://api.github.com/repos/dwallace0723/dbt-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dwallace0723/dbt-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dwallace0723/dbt-utils/teams","hooks_url":"https://api.github.com/repos/dwallace0723/dbt-utils/hooks","issue_events_url":"https://api.github.com/repos/dwallace0723/dbt-utils/issues/events{/number}","events_url":"https://api.github.com/repos/dwallace0723/dbt-utils/events","assignees_url":"https://api.github.com/repos/dwallace0723/dbt-utils/assignees{/user}","branches_url":"https://api.github.com/repos/dwallace0723/dbt-utils/branches{/branch}","tags_url":"https://api.github.com/repos/dwallace0723/dbt-utils/tags","blobs_url":"https://api.github.com/repos/dwallace0723/dbt-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dwallace0723/dbt-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dwallace0723/dbt-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/dwallace0723/dbt-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dwallace0723/dbt-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/dwallace0723/dbt-utils/languages","stargazers_url":"https://api.github.com/repos/dwallace0723/dbt-utils/stargazers","contributors_url":"https://api.github.com/repos/dwallace0723/dbt-utils/contributors","subscribers_url":"https://api.github.com/repos/dwallace0723/dbt-utils/subscribers","subscription_url":"https://api.github.com/repos/dwallace0723/dbt-utils/subscription","commits_url":"https://api.github.com/repos/dwallace0723/dbt-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/dwallace0723/dbt-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/dwallace0723/dbt-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/dwallace0723/dbt-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/dwallace0723/dbt-utils/contents/{+path}","compare_url":"https://api.github.com/repos/dwallace0723/dbt-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dwallace0723/dbt-utils/merges","archive_url":"https://api.github.com/repos/dwallace0723/dbt-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dwallace0723/dbt-utils/downloads","issues_url":"https://api.github.com/repos/dwallace0723/dbt-utils/issues{/number}","pulls_url":"https://api.github.com/repos/dwallace0723/dbt-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/dwallace0723/dbt-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/dwallace0723/dbt-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dwallace0723/dbt-utils/labels{/name}","releases_url":"https://api.github.com/repos/dwallace0723/dbt-utils/releases{/id}","deployments_url":"https://api.github.com/repos/dwallace0723/dbt-utils/deployments","created_at":"2017-10-26T21:19:48Z","updated_at":"2018-05-14T18:17:16Z","pushed_at":"2018-05-14T18:38:25Z","git_url":"git://github.com/dwallace0723/dbt-utils.git","ssh_url":"git@github.com:dwallace0723/dbt-utils.git","clone_url":"https://github.com/dwallace0723/dbt-utils.git","svn_url":"https://github.com/dwallace0723/dbt-utils","homepage":null,"size":95,"stargazers_count":0,"watchers_count":0,"language":"Makefile","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fishtown-analytics:master","ref":"master","sha":"0aabd38dcf7526b2e17df7e2383b71dc260b0245","user":{"login":"fishtown-analytics","id":18339788,"avatar_url":"https://avatars1.githubusercontent.com/u/18339788?v=4","gravatar_id":"","url":"https://api.github.com/users/fishtown-analytics","html_url":"https://github.com/fishtown-analytics","followers_url":"https://api.github.com/users/fishtown-analytics/followers","following_url":"https://api.github.com/users/fishtown-analytics/following{/other_user}","gists_url":"https://api.github.com/users/fishtown-analytics/gists{/gist_id}","starred_url":"https://api.github.com/users/fishtown-analytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fishtown-analytics/subscriptions","organizations_url":"https://api.github.com/users/fishtown-analytics/orgs","repos_url":"https://api.github.com/users/fishtown-analytics/repos","events_url":"https://api.github.com/users/fishtown-analytics/events{/privacy}","received_events_url":"https://api.github.com/users/fishtown-analytics/received_events","type":"Organization","site_admin":false},"repo":{"id":97406952,"name":"dbt-utils","full_name":"fishtown-analytics/dbt-utils","owner":{"login":"fishtown-analytics","id":18339788,"avatar_url":"https://avatars1.githubusercontent.com/u/18339788?v=4","gravatar_id":"","url":"https://api.github.com/users/fishtown-analytics","html_url":"https://github.com/fishtown-analytics","followers_url":"https://api.github.com/users/fishtown-analytics/followers","following_url":"https://api.github.com/users/fishtown-analytics/following{/other_user}","gists_url":"https://api.github.com/users/fishtown-analytics/gists{/gist_id}","starred_url":"https://api.github.com/users/fishtown-analytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fishtown-analytics/subscriptions","organizations_url":"https://api.github.com/users/fishtown-analytics/orgs","repos_url":"https://api.github.com/users/fishtown-analytics/repos","events_url":"https://api.github.com/users/fishtown-analytics/events{/privacy}","received_events_url":"https://api.github.com/users/fishtown-analytics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fishtown-analytics/dbt-utils","description":"Utility functions for dbt projects.","fork":false,"url":"https://api.github.com/repos/fishtown-analytics/dbt-utils","forks_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/forks","keys_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/teams","hooks_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/hooks","issue_events_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/issues/events{/number}","events_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/events","assignees_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/assignees{/user}","branches_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/branches{/branch}","tags_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/tags","blobs_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/languages","stargazers_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/stargazers","contributors_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/contributors","subscribers_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/subscribers","subscription_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/subscription","commits_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/contents/{+path}","compare_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/merges","archive_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/downloads","issues_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/issues{/number}","pulls_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/labels{/name}","releases_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/releases{/id}","deployments_url":"https://api.github.com/repos/fishtown-analytics/dbt-utils/deployments","created_at":"2017-07-16T19:45:09Z","updated_at":"2018-04-30T15:35:30Z","pushed_at":"2018-04-30T15:35:27Z","git_url":"git://github.com/fishtown-analytics/dbt-utils.git","ssh_url":"git@github.com:fishtown-analytics/dbt-utils.git","clone_url":"https://github.com/fishtown-analytics/dbt-utils.git","svn_url":"https://github.com/fishtown-analytics/dbt-utils","homepage":null,"size":120,"stargazers_count":7,"watchers_count":7,"language":"Makefile","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":15,"open_issues":13,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fishtown-analytics/dbt-utils/pulls/64"},"html":{"href":"https://github.com/fishtown-analytics/dbt-utils/pull/64"},"issue":{"href":"https://api.github.com/repos/fishtown-analytics/dbt-utils/issues/64"},"comments":{"href":"https://api.github.com/repos/fishtown-analytics/dbt-utils/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/fishtown-analytics/dbt-utils/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/fishtown-analytics/dbt-utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fishtown-analytics/dbt-utils/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/fishtown-analytics/dbt-utils/statuses/5411cc7b9cd34690c71ede4ba989e479a5073908"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":59,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"dwallace0723"}}