{"action":"created","comment":{"url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/pulls/comments/24762531","id":24762531,"diff_hunk":"@@ -26,7 +26,7 @@ summary: {{ .fields.summary }}\n project: {{ .fields.project.key }}\n components: {{ range .fields.components }}{{ .name }} {{end}}\n issuetype: {{ .fields.issuetype.name }}\n-assignee: {{ .fields.assignee.name }}\n+assignee: {{ if .fields.assignee }}{{ .fields.assignee }}{{end}}","path":"jira/cli/templates.go","position":5,"original_position":5,"commit_id":"7d25d7715f492c65558f25f4ccc54bf6b632666d","original_commit_id":"7d25d7715f492c65558f25f4ccc54bf6b632666d","user":{"login":"coryb","id":60973,"avatar_url":"https://avatars.githubusercontent.com/u/60973?v=3","gravatar_id":"","url":"https://api.github.com/users/coryb","html_url":"https://github.com/coryb","followers_url":"https://api.github.com/users/coryb/followers","following_url":"https://api.github.com/users/coryb/following{/other_user}","gists_url":"https://api.github.com/users/coryb/gists{/gist_id}","starred_url":"https://api.github.com/users/coryb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coryb/subscriptions","organizations_url":"https://api.github.com/users/coryb/orgs","repos_url":"https://api.github.com/users/coryb/repos","events_url":"https://api.github.com/users/coryb/events{/privacy}","received_events_url":"https://api.github.com/users/coryb/received_events","type":"User","site_admin":false},"body":"almost, the inner block should be {{ .fields.assignee.name }}","created_at":"2015-02-16T16:55:30Z","updated_at":"2015-02-16T16:55:30Z","html_url":"https://github.com/Netflix-Skunkworks/go-jira/pull/3#discussion_r24762531","pull_request_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/pulls/comments/24762531"},"html":{"href":"https://github.com/Netflix-Skunkworks/go-jira/pull/3#discussion_r24762531"},"pull_request":{"href":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/pulls/3","id":29386773,"html_url":"https://github.com/Netflix-Skunkworks/go-jira/pull/3","diff_url":"https://github.com/Netflix-Skunkworks/go-jira/pull/3.diff","patch_url":"https://github.com/Netflix-Skunkworks/go-jira/pull/3.patch","issue_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/issues/3","number":3,"state":"open","locked":false,"title":"default view template shouldn't fail when assignee is nil","user":{"login":"jaybuff","id":49472,"avatar_url":"https://avatars.githubusercontent.com/u/49472?v=3","gravatar_id":"","url":"https://api.github.com/users/jaybuff","html_url":"https://github.com/jaybuff","followers_url":"https://api.github.com/users/jaybuff/followers","following_url":"https://api.github.com/users/jaybuff/following{/other_user}","gists_url":"https://api.github.com/users/jaybuff/gists{/gist_id}","starred_url":"https://api.github.com/users/jaybuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaybuff/subscriptions","organizations_url":"https://api.github.com/users/jaybuff/orgs","repos_url":"https://api.github.com/users/jaybuff/repos","events_url":"https://api.github.com/users/jaybuff/events{/privacy}","received_events_url":"https://api.github.com/users/jaybuff/received_events","type":"User","site_admin":false},"body":"The default view template was failing with this error whenever I tried to\r\nview a jira that had no assignee:\r\nassignee: 2015-02-16T08:31:58.564-08:00 ERROR [util.go:109] Failed to execute template: template: template:7:20: executing \"template\" at <.fields.assignee.nam...>: nil pointer evaluating interface {}.name","created_at":"2015-02-16T16:50:44Z","updated_at":"2015-02-16T16:55:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2dcf3666824236c0c1f0f442a8e37afcfee6a157","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/issues/3/comments","statuses_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/statuses/7d25d7715f492c65558f25f4ccc54bf6b632666d","head":{"label":"jaybuff:nil-assignee","ref":"nil-assignee","sha":"7d25d7715f492c65558f25f4ccc54bf6b632666d","user":{"login":"jaybuff","id":49472,"avatar_url":"https://avatars.githubusercontent.com/u/49472?v=3","gravatar_id":"","url":"https://api.github.com/users/jaybuff","html_url":"https://github.com/jaybuff","followers_url":"https://api.github.com/users/jaybuff/followers","following_url":"https://api.github.com/users/jaybuff/following{/other_user}","gists_url":"https://api.github.com/users/jaybuff/gists{/gist_id}","starred_url":"https://api.github.com/users/jaybuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaybuff/subscriptions","organizations_url":"https://api.github.com/users/jaybuff/orgs","repos_url":"https://api.github.com/users/jaybuff/repos","events_url":"https://api.github.com/users/jaybuff/events{/privacy}","received_events_url":"https://api.github.com/users/jaybuff/received_events","type":"User","site_admin":false},"repo":{"id":30877567,"name":"go-jira","full_name":"jaybuff/go-jira","owner":{"login":"jaybuff","id":49472,"avatar_url":"https://avatars.githubusercontent.com/u/49472?v=3","gravatar_id":"","url":"https://api.github.com/users/jaybuff","html_url":"https://github.com/jaybuff","followers_url":"https://api.github.com/users/jaybuff/followers","following_url":"https://api.github.com/users/jaybuff/following{/other_user}","gists_url":"https://api.github.com/users/jaybuff/gists{/gist_id}","starred_url":"https://api.github.com/users/jaybuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaybuff/subscriptions","organizations_url":"https://api.github.com/users/jaybuff/orgs","repos_url":"https://api.github.com/users/jaybuff/repos","events_url":"https://api.github.com/users/jaybuff/events{/privacy}","received_events_url":"https://api.github.com/users/jaybuff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jaybuff/go-jira","description":"simple jira command line client in Go","fork":true,"url":"https://api.github.com/repos/jaybuff/go-jira","forks_url":"https://api.github.com/repos/jaybuff/go-jira/forks","keys_url":"https://api.github.com/repos/jaybuff/go-jira/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jaybuff/go-jira/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jaybuff/go-jira/teams","hooks_url":"https://api.github.com/repos/jaybuff/go-jira/hooks","issue_events_url":"https://api.github.com/repos/jaybuff/go-jira/issues/events{/number}","events_url":"https://api.github.com/repos/jaybuff/go-jira/events","assignees_url":"https://api.github.com/repos/jaybuff/go-jira/assignees{/user}","branches_url":"https://api.github.com/repos/jaybuff/go-jira/branches{/branch}","tags_url":"https://api.github.com/repos/jaybuff/go-jira/tags","blobs_url":"https://api.github.com/repos/jaybuff/go-jira/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jaybuff/go-jira/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jaybuff/go-jira/git/refs{/sha}","trees_url":"https://api.github.com/repos/jaybuff/go-jira/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jaybuff/go-jira/statuses/{sha}","languages_url":"https://api.github.com/repos/jaybuff/go-jira/languages","stargazers_url":"https://api.github.com/repos/jaybuff/go-jira/stargazers","contributors_url":"https://api.github.com/repos/jaybuff/go-jira/contributors","subscribers_url":"https://api.github.com/repos/jaybuff/go-jira/subscribers","subscription_url":"https://api.github.com/repos/jaybuff/go-jira/subscription","commits_url":"https://api.github.com/repos/jaybuff/go-jira/commits{/sha}","git_commits_url":"https://api.github.com/repos/jaybuff/go-jira/git/commits{/sha}","comments_url":"https://api.github.com/repos/jaybuff/go-jira/comments{/number}","issue_comment_url":"https://api.github.com/repos/jaybuff/go-jira/issues/comments/{number}","contents_url":"https://api.github.com/repos/jaybuff/go-jira/contents/{+path}","compare_url":"https://api.github.com/repos/jaybuff/go-jira/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jaybuff/go-jira/merges","archive_url":"https://api.github.com/repos/jaybuff/go-jira/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jaybuff/go-jira/downloads","issues_url":"https://api.github.com/repos/jaybuff/go-jira/issues{/number}","pulls_url":"https://api.github.com/repos/jaybuff/go-jira/pulls{/number}","milestones_url":"https://api.github.com/repos/jaybuff/go-jira/milestones{/number}","notifications_url":"https://api.github.com/repos/jaybuff/go-jira/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jaybuff/go-jira/labels{/name}","releases_url":"https://api.github.com/repos/jaybuff/go-jira/releases{/id}","created_at":"2015-02-16T16:44:56Z","updated_at":"2015-02-16T16:44:56Z","pushed_at":"2015-02-16T16:50:09Z","git_url":"git://github.com/jaybuff/go-jira.git","ssh_url":"git@github.com:jaybuff/go-jira.git","clone_url":"https://github.com/jaybuff/go-jira.git","svn_url":"https://github.com/jaybuff/go-jira","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"Netflix-Skunkworks:master","ref":"master","sha":"52966e0aa88a2129b2ade5f9447f29933ed33615","user":{"login":"Netflix-Skunkworks","id":1728142,"avatar_url":"https://avatars.githubusercontent.com/u/1728142?v=3","gravatar_id":"","url":"https://api.github.com/users/Netflix-Skunkworks","html_url":"https://github.com/Netflix-Skunkworks","followers_url":"https://api.github.com/users/Netflix-Skunkworks/followers","following_url":"https://api.github.com/users/Netflix-Skunkworks/following{/other_user}","gists_url":"https://api.github.com/users/Netflix-Skunkworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Netflix-Skunkworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netflix-Skunkworks/subscriptions","organizations_url":"https://api.github.com/users/Netflix-Skunkworks/orgs","repos_url":"https://api.github.com/users/Netflix-Skunkworks/repos","events_url":"https://api.github.com/users/Netflix-Skunkworks/events{/privacy}","received_events_url":"https://api.github.com/users/Netflix-Skunkworks/received_events","type":"Organization","site_admin":false},"repo":{"id":30621185,"name":"go-jira","full_name":"Netflix-Skunkworks/go-jira","owner":{"login":"Netflix-Skunkworks","id":1728142,"avatar_url":"https://avatars.githubusercontent.com/u/1728142?v=3","gravatar_id":"","url":"https://api.github.com/users/Netflix-Skunkworks","html_url":"https://github.com/Netflix-Skunkworks","followers_url":"https://api.github.com/users/Netflix-Skunkworks/followers","following_url":"https://api.github.com/users/Netflix-Skunkworks/following{/other_user}","gists_url":"https://api.github.com/users/Netflix-Skunkworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Netflix-Skunkworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netflix-Skunkworks/subscriptions","organizations_url":"https://api.github.com/users/Netflix-Skunkworks/orgs","repos_url":"https://api.github.com/users/Netflix-Skunkworks/repos","events_url":"https://api.github.com/users/Netflix-Skunkworks/events{/privacy}","received_events_url":"https://api.github.com/users/Netflix-Skunkworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Netflix-Skunkworks/go-jira","description":"simple jira command line client in Go","fork":false,"url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira","forks_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/forks","keys_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/teams","hooks_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/hooks","issue_events_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/issues/events{/number}","events_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/events","assignees_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/assignees{/user}","branches_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/branches{/branch}","tags_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/tags","blobs_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/git/refs{/sha}","trees_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/statuses/{sha}","languages_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/languages","stargazers_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/stargazers","contributors_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/contributors","subscribers_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/subscribers","subscription_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/subscription","commits_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/commits{/sha}","git_commits_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/git/commits{/sha}","comments_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/comments{/number}","issue_comment_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/issues/comments/{number}","contents_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/contents/{+path}","compare_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/merges","archive_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/downloads","issues_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/issues{/number}","pulls_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/pulls{/number}","milestones_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/milestones{/number}","notifications_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/labels{/name}","releases_url":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/releases{/id}","created_at":"2015-02-10T23:57:33Z","updated_at":"2015-02-16T16:53:58Z","pushed_at":"2015-02-16T16:53:58Z","git_url":"git://github.com/Netflix-Skunkworks/go-jira.git","ssh_url":"git@github.com:Netflix-Skunkworks/go-jira.git","clone_url":"https://github.com/Netflix-Skunkworks/go-jira.git","svn_url":"https://github.com/Netflix-Skunkworks/go-jira","homepage":null,"size":0,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/pulls/3"},"html":{"href":"https://github.com/Netflix-Skunkworks/go-jira/pull/3"},"issue":{"href":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/issues/3"},"comments":{"href":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Netflix-Skunkworks/go-jira/statuses/7d25d7715f492c65558f25f4ccc54bf6b632666d"}}}}