{"action":"opened","number":12,"pull_request":{"url":"https://api.github.com/repos/indiana-university/itpeople-functions/pulls/12","id":229407237,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NDA3MjM3","html_url":"https://github.com/indiana-university/itpeople-functions/pull/12","diff_url":"https://github.com/indiana-university/itpeople-functions/pull/12.diff","patch_url":"https://github.com/indiana-university/itpeople-functions/pull/12.patch","issue_url":"https://api.github.com/repos/indiana-university/itpeople-functions/issues/12","number":12,"state":"open","locked":false,"title":"Resolve branch name for Docker tag","user":{"login":"jhoerr","id":1151206,"node_id":"MDQ6VXNlcjExNTEyMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1151206?v=4","gravatar_id":"","url":"https://api.github.com/users/jhoerr","html_url":"https://github.com/jhoerr","followers_url":"https://api.github.com/users/jhoerr/followers","following_url":"https://api.github.com/users/jhoerr/following{/other_user}","gists_url":"https://api.github.com/users/jhoerr/gists{/gist_id}","starred_url":"https://api.github.com/users/jhoerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhoerr/subscriptions","organizations_url":"https://api.github.com/users/jhoerr/orgs","repos_url":"https://api.github.com/users/jhoerr/repos","events_url":"https://api.github.com/users/jhoerr/events{/privacy}","received_events_url":"https://api.github.com/users/jhoerr/received_events","type":"User","site_admin":false},"body":"TeamCity is a little goofy sometimes. It can set the $TEAMCITY_BRANCH as `/refs/heads/develop` or `some-feature`, depending on whether the current branch is also the base branch. This is a problem because Docker tags can't contain slashes. As a workaround this PR normalizes the branch names as:\r\n* `/refs/heads/develop` -> `develop`\r\n* `some-feature` -> `some-feature`\r\n","created_at":"2018-11-08T15:35:22Z","updated_at":"2018-11-08T15:35:22Z","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/indiana-university/itpeople-functions/pulls/12/commits","review_comments_url":"https://api.github.com/repos/indiana-university/itpeople-functions/pulls/12/comments","review_comment_url":"https://api.github.com/repos/indiana-university/itpeople-functions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/indiana-university/itpeople-functions/issues/12/comments","statuses_url":"https://api.github.com/repos/indiana-university/itpeople-functions/statuses/6d36ee0db6f48f6ceee0f60408d94e9505ec2c88","head":{"label":"indiana-university:feature/branch-resolution","ref":"feature/branch-resolution","sha":"6d36ee0db6f48f6ceee0f60408d94e9505ec2c88","user":{"login":"indiana-university","id":10565792,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNTY1Nzky","avatar_url":"https://avatars3.githubusercontent.com/u/10565792?v=4","gravatar_id":"","url":"https://api.github.com/users/indiana-university","html_url":"https://github.com/indiana-university","followers_url":"https://api.github.com/users/indiana-university/followers","following_url":"https://api.github.com/users/indiana-university/following{/other_user}","gists_url":"https://api.github.com/users/indiana-university/gists{/gist_id}","starred_url":"https://api.github.com/users/indiana-university/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiana-university/subscriptions","organizations_url":"https://api.github.com/users/indiana-university/orgs","repos_url":"https://api.github.com/users/indiana-university/repos","events_url":"https://api.github.com/users/indiana-university/events{/privacy}","received_events_url":"https://api.github.com/users/indiana-university/received_events","type":"Organization","site_admin":false},"repo":{"id":150772353,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA3NzIzNTM=","name":"itpeople-functions","full_name":"indiana-university/itpeople-functions","private":false,"owner":{"login":"indiana-university","id":10565792,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNTY1Nzky","avatar_url":"https://avatars3.githubusercontent.com/u/10565792?v=4","gravatar_id":"","url":"https://api.github.com/users/indiana-university","html_url":"https://github.com/indiana-university","followers_url":"https://api.github.com/users/indiana-university/followers","following_url":"https://api.github.com/users/indiana-university/following{/other_user}","gists_url":"https://api.github.com/users/indiana-university/gists{/gist_id}","starred_url":"https://api.github.com/users/indiana-university/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiana-university/subscriptions","organizations_url":"https://api.github.com/users/indiana-university/orgs","repos_url":"https://api.github.com/users/indiana-university/repos","events_url":"https://api.github.com/users/indiana-university/events{/privacy}","received_events_url":"https://api.github.com/users/indiana-university/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/indiana-university/itpeople-functions","description":"IT People serverless APIs, tasks, and proxies","fork":false,"url":"https://api.github.com/repos/indiana-university/itpeople-functions","forks_url":"https://api.github.com/repos/indiana-university/itpeople-functions/forks","keys_url":"https://api.github.com/repos/indiana-university/itpeople-functions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indiana-university/itpeople-functions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indiana-university/itpeople-functions/teams","hooks_url":"https://api.github.com/repos/indiana-university/itpeople-functions/hooks","issue_events_url":"https://api.github.com/repos/indiana-university/itpeople-functions/issues/events{/number}","events_url":"https://api.github.com/repos/indiana-university/itpeople-functions/events","assignees_url":"https://api.github.com/repos/indiana-university/itpeople-functions/assignees{/user}","branches_url":"https://api.github.com/repos/indiana-university/itpeople-functions/branches{/branch}","tags_url":"https://api.github.com/repos/indiana-university/itpeople-functions/tags","blobs_url":"https://api.github.com/repos/indiana-university/itpeople-functions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indiana-university/itpeople-functions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indiana-university/itpeople-functions/git/refs{/sha}","trees_url":"https://api.github.com/repos/indiana-university/itpeople-functions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indiana-university/itpeople-functions/statuses/{sha}","languages_url":"https://api.github.com/repos/indiana-university/itpeople-functions/languages","stargazers_url":"https://api.github.com/repos/indiana-university/itpeople-functions/stargazers","contributors_url":"https://api.github.com/repos/indiana-university/itpeople-functions/contributors","subscribers_url":"https://api.github.com/repos/indiana-university/itpeople-functions/subscribers","subscription_url":"https://api.github.com/repos/indiana-university/itpeople-functions/subscription","commits_url":"https://api.github.com/repos/indiana-university/itpeople-functions/commits{/sha}","git_commits_url":"https://api.github.com/repos/indiana-university/itpeople-functions/git/commits{/sha}","comments_url":"https://api.github.com/repos/indiana-university/itpeople-functions/comments{/number}","issue_comment_url":"https://api.github.com/repos/indiana-university/itpeople-functions/issues/comments{/number}","contents_url":"https://api.github.com/repos/indiana-university/itpeople-functions/contents/{+path}","compare_url":"https://api.github.com/repos/indiana-university/itpeople-functions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indiana-university/itpeople-functions/merges","archive_url":"https://api.github.com/repos/indiana-university/itpeople-functions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indiana-university/itpeople-functions/downloads","issues_url":"https://api.github.com/repos/indiana-university/itpeople-functions/issues{/number}","pulls_url":"https://api.github.com/repos/indiana-university/itpeople-functions/pulls{/number}","milestones_url":"https://api.github.com/repos/indiana-university/itpeople-functions/milestones{/number}","notifications_url":"https://api.github.com/repos/indiana-university/itpeople-functions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indiana-university/itpeople-functions/labels{/name}","releases_url":"https://api.github.com/repos/indiana-university/itpeople-functions/releases{/id}","deployments_url":"https://api.github.com/repos/indiana-university/itpeople-functions/deployments","created_at":"2018-09-28T17:17:07Z","updated_at":"2018-11-07T17:48:01Z","pushed_at":"2018-11-07T22:02:43Z","git_url":"git://github.com/indiana-university/itpeople-functions.git","ssh_url":"git@github.com:indiana-university/itpeople-functions.git","clone_url":"https://github.com/indiana-university/itpeople-functions.git","svn_url":"https://github.com/indiana-university/itpeople-functions","homepage":"","size":86,"stargazers_count":0,"watchers_count":0,"language":"F#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"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":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"indiana-university:develop","ref":"develop","sha":"fbdddb14cb807c7c27a630bf5f6cc9836965ab7e","user":{"login":"indiana-university","id":10565792,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNTY1Nzky","avatar_url":"https://avatars3.githubusercontent.com/u/10565792?v=4","gravatar_id":"","url":"https://api.github.com/users/indiana-university","html_url":"https://github.com/indiana-university","followers_url":"https://api.github.com/users/indiana-university/followers","following_url":"https://api.github.com/users/indiana-university/following{/other_user}","gists_url":"https://api.github.com/users/indiana-university/gists{/gist_id}","starred_url":"https://api.github.com/users/indiana-university/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiana-university/subscriptions","organizations_url":"https://api.github.com/users/indiana-university/orgs","repos_url":"https://api.github.com/users/indiana-university/repos","events_url":"https://api.github.com/users/indiana-university/events{/privacy}","received_events_url":"https://api.github.com/users/indiana-university/received_events","type":"Organization","site_admin":false},"repo":{"id":150772353,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA3NzIzNTM=","name":"itpeople-functions","full_name":"indiana-university/itpeople-functions","private":false,"owner":{"login":"indiana-university","id":10565792,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNTY1Nzky","avatar_url":"https://avatars3.githubusercontent.com/u/10565792?v=4","gravatar_id":"","url":"https://api.github.com/users/indiana-university","html_url":"https://github.com/indiana-university","followers_url":"https://api.github.com/users/indiana-university/followers","following_url":"https://api.github.com/users/indiana-university/following{/other_user}","gists_url":"https://api.github.com/users/indiana-university/gists{/gist_id}","starred_url":"https://api.github.com/users/indiana-university/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiana-university/subscriptions","organizations_url":"https://api.github.com/users/indiana-university/orgs","repos_url":"https://api.github.com/users/indiana-university/repos","events_url":"https://api.github.com/users/indiana-university/events{/privacy}","received_events_url":"https://api.github.com/users/indiana-university/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/indiana-university/itpeople-functions","description":"IT People serverless APIs, tasks, and proxies","fork":false,"url":"https://api.github.com/repos/indiana-university/itpeople-functions","forks_url":"https://api.github.com/repos/indiana-university/itpeople-functions/forks","keys_url":"https://api.github.com/repos/indiana-university/itpeople-functions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indiana-university/itpeople-functions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indiana-university/itpeople-functions/teams","hooks_url":"https://api.github.com/repos/indiana-university/itpeople-functions/hooks","issue_events_url":"https://api.github.com/repos/indiana-university/itpeople-functions/issues/events{/number}","events_url":"https://api.github.com/repos/indiana-university/itpeople-functions/events","assignees_url":"https://api.github.com/repos/indiana-university/itpeople-functions/assignees{/user}","branches_url":"https://api.github.com/repos/indiana-university/itpeople-functions/branches{/branch}","tags_url":"https://api.github.com/repos/indiana-university/itpeople-functions/tags","blobs_url":"https://api.github.com/repos/indiana-university/itpeople-functions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indiana-university/itpeople-functions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indiana-university/itpeople-functions/git/refs{/sha}","trees_url":"https://api.github.com/repos/indiana-university/itpeople-functions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indiana-university/itpeople-functions/statuses/{sha}","languages_url":"https://api.github.com/repos/indiana-university/itpeople-functions/languages","stargazers_url":"https://api.github.com/repos/indiana-university/itpeople-functions/stargazers","contributors_url":"https://api.github.com/repos/indiana-university/itpeople-functions/contributors","subscribers_url":"https://api.github.com/repos/indiana-university/itpeople-functions/subscribers","subscription_url":"https://api.github.com/repos/indiana-university/itpeople-functions/subscription","commits_url":"https://api.github.com/repos/indiana-university/itpeople-functions/commits{/sha}","git_commits_url":"https://api.github.com/repos/indiana-university/itpeople-functions/git/commits{/sha}","comments_url":"https://api.github.com/repos/indiana-university/itpeople-functions/comments{/number}","issue_comment_url":"https://api.github.com/repos/indiana-university/itpeople-functions/issues/comments{/number}","contents_url":"https://api.github.com/repos/indiana-university/itpeople-functions/contents/{+path}","compare_url":"https://api.github.com/repos/indiana-university/itpeople-functions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indiana-university/itpeople-functions/merges","archive_url":"https://api.github.com/repos/indiana-university/itpeople-functions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indiana-university/itpeople-functions/downloads","issues_url":"https://api.github.com/repos/indiana-university/itpeople-functions/issues{/number}","pulls_url":"https://api.github.com/repos/indiana-university/itpeople-functions/pulls{/number}","milestones_url":"https://api.github.com/repos/indiana-university/itpeople-functions/milestones{/number}","notifications_url":"https://api.github.com/repos/indiana-university/itpeople-functions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indiana-university/itpeople-functions/labels{/name}","releases_url":"https://api.github.com/repos/indiana-university/itpeople-functions/releases{/id}","deployments_url":"https://api.github.com/repos/indiana-university/itpeople-functions/deployments","created_at":"2018-09-28T17:17:07Z","updated_at":"2018-11-07T17:48:01Z","pushed_at":"2018-11-07T22:02:43Z","git_url":"git://github.com/indiana-university/itpeople-functions.git","ssh_url":"git@github.com:indiana-university/itpeople-functions.git","clone_url":"https://github.com/indiana-university/itpeople-functions.git","svn_url":"https://github.com/indiana-university/itpeople-functions","homepage":"","size":86,"stargazers_count":0,"watchers_count":0,"language":"F#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"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":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/indiana-university/itpeople-functions/pulls/12"},"html":{"href":"https://github.com/indiana-university/itpeople-functions/pull/12"},"issue":{"href":"https://api.github.com/repos/indiana-university/itpeople-functions/issues/12"},"comments":{"href":"https://api.github.com/repos/indiana-university/itpeople-functions/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/indiana-university/itpeople-functions/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/indiana-university/itpeople-functions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/indiana-university/itpeople-functions/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/indiana-university/itpeople-functions/statuses/6d36ee0db6f48f6ceee0f60408d94e9505ec2c88"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":7,"additions":14,"deletions":7,"changed_files":3}}
{"actor":{"display_login":"jhoerr"}}