{"action":"closed","number":88,"pull_request":{"url":"https://api.github.com/repos/aws/amazon-ecs-agent/pulls/88","id":35983338,"html_url":"https://github.com/aws/amazon-ecs-agent/pull/88","diff_url":"https://github.com/aws/amazon-ecs-agent/pull/88.diff","patch_url":"https://github.com/aws/amazon-ecs-agent/pull/88.patch","issue_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/88","number":88,"state":"closed","locked":false,"title":"Add task-arn and container-name labels.","user":{"login":"ejholmes","id":95166,"avatar_url":"https://avatars.githubusercontent.com/u/95166?v=3","gravatar_id":"","url":"https://api.github.com/users/ejholmes","html_url":"https://github.com/ejholmes","followers_url":"https://api.github.com/users/ejholmes/followers","following_url":"https://api.github.com/users/ejholmes/following{/other_user}","gists_url":"https://api.github.com/users/ejholmes/gists{/gist_id}","starred_url":"https://api.github.com/users/ejholmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejholmes/subscriptions","organizations_url":"https://api.github.com/users/ejholmes/orgs","repos_url":"https://api.github.com/users/ejholmes/repos","events_url":"https://api.github.com/users/ejholmes/events{/privacy}","received_events_url":"https://api.github.com/users/ejholmes/received_events","type":"User","site_admin":false},"body":"This is in regards to https://github.com/aws/amazon-ecs-agent/issues. This adds the following labels to the docker container when it is run:\r\n\r\n* `com.amazonaws.ecs.task-arn`: The task ARN associated with this container.\r\n* `com.amazonaws.ecs.container-name`: The name of the container, from the task definition.\r\n\r\nI've left out adding a `com.amazonaws.ecs.task-definition-arn` label because it seems like that information [isn't made available by the acs client](https://github.com/aws/amazon-ecs-agent/blob/a2fe6ba7e1dd58bcd518b8e91492f4630c067470/agent/acs/model/ecsacs/api.go#L272-L290).\r\n\r\nCloses https://github.com/aws/amazon-ecs-agent/issues/82\r\n\r\n/cc @samuelkarp ","created_at":"2015-05-21T22:14:23Z","updated_at":"2015-05-21T23:23:48Z","closed_at":"2015-05-21T23:23:48Z","merged_at":null,"merge_commit_sha":"067bf7afee9d045f787ed4c3a0199f710af47043","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aws/amazon-ecs-agent/pulls/88/commits","review_comments_url":"https://api.github.com/repos/aws/amazon-ecs-agent/pulls/88/comments","review_comment_url":"https://api.github.com/repos/aws/amazon-ecs-agent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/88/comments","statuses_url":"https://api.github.com/repos/aws/amazon-ecs-agent/statuses/ecfe89203d8b22ae14dca6131e62e75ff221ab73","head":{"label":"remind101:ecs-labels","ref":"ecs-labels","sha":"ecfe89203d8b22ae14dca6131e62e75ff221ab73","user":{"login":"remind101","id":376343,"avatar_url":"https://avatars.githubusercontent.com/u/376343?v=3","gravatar_id":"","url":"https://api.github.com/users/remind101","html_url":"https://github.com/remind101","followers_url":"https://api.github.com/users/remind101/followers","following_url":"https://api.github.com/users/remind101/following{/other_user}","gists_url":"https://api.github.com/users/remind101/gists{/gist_id}","starred_url":"https://api.github.com/users/remind101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remind101/subscriptions","organizations_url":"https://api.github.com/users/remind101/orgs","repos_url":"https://api.github.com/users/remind101/repos","events_url":"https://api.github.com/users/remind101/events{/privacy}","received_events_url":"https://api.github.com/users/remind101/received_events","type":"Organization","site_admin":false},"repo":{"id":35972008,"name":"amazon-ecs-agent","full_name":"remind101/amazon-ecs-agent","owner":{"login":"remind101","id":376343,"avatar_url":"https://avatars.githubusercontent.com/u/376343?v=3","gravatar_id":"","url":"https://api.github.com/users/remind101","html_url":"https://github.com/remind101","followers_url":"https://api.github.com/users/remind101/followers","following_url":"https://api.github.com/users/remind101/following{/other_user}","gists_url":"https://api.github.com/users/remind101/gists{/gist_id}","starred_url":"https://api.github.com/users/remind101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remind101/subscriptions","organizations_url":"https://api.github.com/users/remind101/orgs","repos_url":"https://api.github.com/users/remind101/repos","events_url":"https://api.github.com/users/remind101/events{/privacy}","received_events_url":"https://api.github.com/users/remind101/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/remind101/amazon-ecs-agent","description":"Amazon EC2 Container Service Agent","fork":true,"url":"https://api.github.com/repos/remind101/amazon-ecs-agent","forks_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/forks","keys_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/teams","hooks_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/hooks","issue_events_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/issues/events{/number}","events_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/events","assignees_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/assignees{/user}","branches_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/branches{/branch}","tags_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/tags","blobs_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/languages","stargazers_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/stargazers","contributors_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/contributors","subscribers_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/subscribers","subscription_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/subscription","commits_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/contents/{+path}","compare_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/merges","archive_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/downloads","issues_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/issues{/number}","pulls_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/labels{/name}","releases_url":"https://api.github.com/repos/remind101/amazon-ecs-agent/releases{/id}","created_at":"2015-05-20T20:19:03Z","updated_at":"2015-05-20T20:19:03Z","pushed_at":"2015-05-21T22:46:37Z","git_url":"git://github.com/remind101/amazon-ecs-agent.git","ssh_url":"git@github.com:remind101/amazon-ecs-agent.git","clone_url":"https://github.com/remind101/amazon-ecs-agent.git","svn_url":"https://github.com/remind101/amazon-ecs-agent","homepage":"http://aws.amazon.com/ecs/","size":2494,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aws:master","ref":"master","sha":"a2fe6ba7e1dd58bcd518b8e91492f4630c067470","user":{"login":"aws","id":2232217,"avatar_url":"https://avatars.githubusercontent.com/u/2232217?v=3","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"repo":{"id":27551774,"name":"amazon-ecs-agent","full_name":"aws/amazon-ecs-agent","owner":{"login":"aws","id":2232217,"avatar_url":"https://avatars.githubusercontent.com/u/2232217?v=3","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aws/amazon-ecs-agent","description":"Amazon EC2 Container Service Agent","fork":false,"url":"https://api.github.com/repos/aws/amazon-ecs-agent","forks_url":"https://api.github.com/repos/aws/amazon-ecs-agent/forks","keys_url":"https://api.github.com/repos/aws/amazon-ecs-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aws/amazon-ecs-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aws/amazon-ecs-agent/teams","hooks_url":"https://api.github.com/repos/aws/amazon-ecs-agent/hooks","issue_events_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/events{/number}","events_url":"https://api.github.com/repos/aws/amazon-ecs-agent/events","assignees_url":"https://api.github.com/repos/aws/amazon-ecs-agent/assignees{/user}","branches_url":"https://api.github.com/repos/aws/amazon-ecs-agent/branches{/branch}","tags_url":"https://api.github.com/repos/aws/amazon-ecs-agent/tags","blobs_url":"https://api.github.com/repos/aws/amazon-ecs-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aws/amazon-ecs-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aws/amazon-ecs-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/aws/amazon-ecs-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aws/amazon-ecs-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/aws/amazon-ecs-agent/languages","stargazers_url":"https://api.github.com/repos/aws/amazon-ecs-agent/stargazers","contributors_url":"https://api.github.com/repos/aws/amazon-ecs-agent/contributors","subscribers_url":"https://api.github.com/repos/aws/amazon-ecs-agent/subscribers","subscription_url":"https://api.github.com/repos/aws/amazon-ecs-agent/subscription","commits_url":"https://api.github.com/repos/aws/amazon-ecs-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/aws/amazon-ecs-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/aws/amazon-ecs-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/aws/amazon-ecs-agent/contents/{+path}","compare_url":"https://api.github.com/repos/aws/amazon-ecs-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aws/amazon-ecs-agent/merges","archive_url":"https://api.github.com/repos/aws/amazon-ecs-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aws/amazon-ecs-agent/downloads","issues_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues{/number}","pulls_url":"https://api.github.com/repos/aws/amazon-ecs-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/aws/amazon-ecs-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/aws/amazon-ecs-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aws/amazon-ecs-agent/labels{/name}","releases_url":"https://api.github.com/repos/aws/amazon-ecs-agent/releases{/id}","created_at":"2014-12-04T17:31:49Z","updated_at":"2015-05-21T15:15:14Z","pushed_at":"2015-05-21T22:46:37Z","git_url":"git://github.com/aws/amazon-ecs-agent.git","ssh_url":"git@github.com:aws/amazon-ecs-agent.git","clone_url":"https://github.com/aws/amazon-ecs-agent.git","svn_url":"https://github.com/aws/amazon-ecs-agent","homepage":"http://aws.amazon.com/ecs/","size":2494,"stargazers_count":219,"watchers_count":219,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":12,"forks":32,"open_issues":12,"watchers":219,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aws/amazon-ecs-agent/pulls/88"},"html":{"href":"https://github.com/aws/amazon-ecs-agent/pull/88"},"issue":{"href":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/88"},"comments":{"href":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/aws/amazon-ecs-agent/pulls/88/comments"},"review_comment":{"href":"https://api.github.com/repos/aws/amazon-ecs-agent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aws/amazon-ecs-agent/pulls/88/commits"},"statuses":{"href":"https://api.github.com/repos/aws/amazon-ecs-agent/statuses/ecfe89203d8b22ae14dca6131e62e75ff221ab73"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":4,"review_comments":1,"commits":2,"additions":34,"deletions":0,"changed_files":2}}