{"action":"created","comment":{"url":"https://api.github.com/repos/jesseduffield/lazygit/pulls/comments/211550038","pull_request_review_id":147990648,"id":211550038,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTU1MDAzOA==","diff_hunk":"@@ -62,20 +62,33 @@ func (gui *Gui) handleNewBranch(g *gocui.Gui, v *gocui.View) error {\n }\n \n func (gui *Gui) handleDeleteBranch(g *gocui.Gui, v *gocui.View) error {\n+\treturn gui.deleteBranch(g, v, false)\n+}\n+\n+func (gui *Gui) handleForceDeleteBranch(g *gocui.Gui, v *gocui.View) error {\n+\treturn gui.deleteBranch(g, v, true)\n+}\n+\n+func (gui *Gui) deleteBranch(g *gocui.Gui, v *gocui.View, force bool) error {\n \tcheckedOutBranch := gui.State.Branches[0]\n \tselectedBranch := gui.getSelectedBranch(v)\n \tif checkedOutBranch.Name == selectedBranch.Name {\n \t\treturn gui.createErrorPanel(g, gui.Tr.SLocalize(\"CantDeleteCheckOutBranch\"))\n \t}\n+\ttitle := gui.Tr.SLocalize(\"DeleteBranch\")\n+\tif force {\n+\t\tmessageId := \"ForceDeleteBranchMessage\"\n+\t} else {\n+\t\tmessageId := \"DeleteBranchMessage\"","path":"pkg/gui/branches_panel.go","position":21,"original_position":21,"commit_id":"5f6b61d28c86676fec311ec94edad977343e48bd","original_commit_id":"5f6b61d28c86676fec311ec94edad977343e48bd","user":{"login":"golangci","id":35628013,"node_id":"MDQ6VXNlcjM1NjI4MDEz","avatar_url":"https://avatars3.githubusercontent.com/u/35628013?v=4","gravatar_id":"","url":"https://api.github.com/users/golangci","html_url":"https://github.com/golangci","followers_url":"https://api.github.com/users/golangci/followers","following_url":"https://api.github.com/users/golangci/following{/other_user}","gists_url":"https://api.github.com/users/golangci/gists{/gist_id}","starred_url":"https://api.github.com/users/golangci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golangci/subscriptions","organizations_url":"https://api.github.com/users/golangci/orgs","repos_url":"https://api.github.com/users/golangci/repos","events_url":"https://api.github.com/users/golangci/events{/privacy}","received_events_url":"https://api.github.com/users/golangci/received_events","type":"User","site_admin":false},"body":"ineffectual assignment to `messageId`","created_at":"2018-08-21T10:07:10Z","updated_at":"2018-08-21T10:07:10Z","html_url":"https://github.com/jesseduffield/lazygit/pull/151#discussion_r211550038","pull_request_url":"https://api.github.com/repos/jesseduffield/lazygit/pulls/151","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/jesseduffield/lazygit/pulls/comments/211550038"},"html":{"href":"https://github.com/jesseduffield/lazygit/pull/151#discussion_r211550038"},"pull_request":{"href":"https://api.github.com/repos/jesseduffield/lazygit/pulls/151"}}},"pull_request":{"url":"https://api.github.com/repos/jesseduffield/lazygit/pulls/151","id":208557205,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NTU3MjA1","html_url":"https://github.com/jesseduffield/lazygit/pull/151","diff_url":"https://github.com/jesseduffield/lazygit/pull/151.diff","patch_url":"https://github.com/jesseduffield/lazygit/pull/151.patch","issue_url":"https://api.github.com/repos/jesseduffield/lazygit/issues/151","number":151,"state":"open","locked":false,"title":"add option to force delete given branch","user":{"login":"alcohol","id":21414,"node_id":"MDQ6VXNlcjIxNDE0","avatar_url":"https://avatars0.githubusercontent.com/u/21414?v=4","gravatar_id":"","url":"https://api.github.com/users/alcohol","html_url":"https://github.com/alcohol","followers_url":"https://api.github.com/users/alcohol/followers","following_url":"https://api.github.com/users/alcohol/following{/other_user}","gists_url":"https://api.github.com/users/alcohol/gists{/gist_id}","starred_url":"https://api.github.com/users/alcohol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcohol/subscriptions","organizations_url":"https://api.github.com/users/alcohol/orgs","repos_url":"https://api.github.com/users/alcohol/repos","events_url":"https://api.github.com/users/alcohol/events{/privacy}","received_events_url":"https://api.github.com/users/alcohol/received_events","type":"User","site_admin":false},"body":"Not a Go programmer myself, no idea what I'm doing. Is this change/implementation acceptable?\r\n\r\n![https://media.giphy.com/media/f1ohcPEHABwWY/giphy.gif](https://media.giphy.com/media/f1ohcPEHABwWY/giphy.gif)","created_at":"2018-08-15T13:06:39Z","updated_at":"2018-08-21T10:07:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3336b2bf66ccc0ae80a570e71dadcaea0f52a0e7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jesseduffield/lazygit/pulls/151/commits","review_comments_url":"https://api.github.com/repos/jesseduffield/lazygit/pulls/151/comments","review_comment_url":"https://api.github.com/repos/jesseduffield/lazygit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jesseduffield/lazygit/issues/151/comments","statuses_url":"https://api.github.com/repos/jesseduffield/lazygit/statuses/5f6b61d28c86676fec311ec94edad977343e48bd","head":{"label":"alcohol:force-delete-branch","ref":"force-delete-branch","sha":"5f6b61d28c86676fec311ec94edad977343e48bd","user":{"login":"alcohol","id":21414,"node_id":"MDQ6VXNlcjIxNDE0","avatar_url":"https://avatars0.githubusercontent.com/u/21414?v=4","gravatar_id":"","url":"https://api.github.com/users/alcohol","html_url":"https://github.com/alcohol","followers_url":"https://api.github.com/users/alcohol/followers","following_url":"https://api.github.com/users/alcohol/following{/other_user}","gists_url":"https://api.github.com/users/alcohol/gists{/gist_id}","starred_url":"https://api.github.com/users/alcohol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcohol/subscriptions","organizations_url":"https://api.github.com/users/alcohol/orgs","repos_url":"https://api.github.com/users/alcohol/repos","events_url":"https://api.github.com/users/alcohol/events{/privacy}","received_events_url":"https://api.github.com/users/alcohol/received_events","type":"User","site_admin":false},"repo":{"id":144852840,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ4NTI4NDA=","name":"lazygit","full_name":"alcohol/lazygit","owner":{"login":"alcohol","id":21414,"node_id":"MDQ6VXNlcjIxNDE0","avatar_url":"https://avatars0.githubusercontent.com/u/21414?v=4","gravatar_id":"","url":"https://api.github.com/users/alcohol","html_url":"https://github.com/alcohol","followers_url":"https://api.github.com/users/alcohol/followers","following_url":"https://api.github.com/users/alcohol/following{/other_user}","gists_url":"https://api.github.com/users/alcohol/gists{/gist_id}","starred_url":"https://api.github.com/users/alcohol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcohol/subscriptions","organizations_url":"https://api.github.com/users/alcohol/orgs","repos_url":"https://api.github.com/users/alcohol/repos","events_url":"https://api.github.com/users/alcohol/events{/privacy}","received_events_url":"https://api.github.com/users/alcohol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alcohol/lazygit","description":"simple terminal UI for git commands","fork":true,"url":"https://api.github.com/repos/alcohol/lazygit","forks_url":"https://api.github.com/repos/alcohol/lazygit/forks","keys_url":"https://api.github.com/repos/alcohol/lazygit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alcohol/lazygit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alcohol/lazygit/teams","hooks_url":"https://api.github.com/repos/alcohol/lazygit/hooks","issue_events_url":"https://api.github.com/repos/alcohol/lazygit/issues/events{/number}","events_url":"https://api.github.com/repos/alcohol/lazygit/events","assignees_url":"https://api.github.com/repos/alcohol/lazygit/assignees{/user}","branches_url":"https://api.github.com/repos/alcohol/lazygit/branches{/branch}","tags_url":"https://api.github.com/repos/alcohol/lazygit/tags","blobs_url":"https://api.github.com/repos/alcohol/lazygit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alcohol/lazygit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alcohol/lazygit/git/refs{/sha}","trees_url":"https://api.github.com/repos/alcohol/lazygit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alcohol/lazygit/statuses/{sha}","languages_url":"https://api.github.com/repos/alcohol/lazygit/languages","stargazers_url":"https://api.github.com/repos/alcohol/lazygit/stargazers","contributors_url":"https://api.github.com/repos/alcohol/lazygit/contributors","subscribers_url":"https://api.github.com/repos/alcohol/lazygit/subscribers","subscription_url":"https://api.github.com/repos/alcohol/lazygit/subscription","commits_url":"https://api.github.com/repos/alcohol/lazygit/commits{/sha}","git_commits_url":"https://api.github.com/repos/alcohol/lazygit/git/commits{/sha}","comments_url":"https://api.github.com/repos/alcohol/lazygit/comments{/number}","issue_comment_url":"https://api.github.com/repos/alcohol/lazygit/issues/comments{/number}","contents_url":"https://api.github.com/repos/alcohol/lazygit/contents/{+path}","compare_url":"https://api.github.com/repos/alcohol/lazygit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alcohol/lazygit/merges","archive_url":"https://api.github.com/repos/alcohol/lazygit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alcohol/lazygit/downloads","issues_url":"https://api.github.com/repos/alcohol/lazygit/issues{/number}","pulls_url":"https://api.github.com/repos/alcohol/lazygit/pulls{/number}","milestones_url":"https://api.github.com/repos/alcohol/lazygit/milestones{/number}","notifications_url":"https://api.github.com/repos/alcohol/lazygit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alcohol/lazygit/labels{/name}","releases_url":"https://api.github.com/repos/alcohol/lazygit/releases{/id}","deployments_url":"https://api.github.com/repos/alcohol/lazygit/deployments","created_at":"2018-08-15T12:54:10Z","updated_at":"2018-08-15T12:54:12Z","pushed_at":"2018-08-21T10:06:57Z","git_url":"git://github.com/alcohol/lazygit.git","ssh_url":"git@github.com:alcohol/lazygit.git","clone_url":"https://github.com/alcohol/lazygit.git","svn_url":"https://github.com/alcohol/lazygit","homepage":null,"size":8353,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jesseduffield:master","ref":"master","sha":"64cf8f5b107a310e6729b68ba8d7638effd3966d","user":{"login":"jesseduffield","id":8456633,"node_id":"MDQ6VXNlcjg0NTY2MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/8456633?v=4","gravatar_id":"","url":"https://api.github.com/users/jesseduffield","html_url":"https://github.com/jesseduffield","followers_url":"https://api.github.com/users/jesseduffield/followers","following_url":"https://api.github.com/users/jesseduffield/following{/other_user}","gists_url":"https://api.github.com/users/jesseduffield/gists{/gist_id}","starred_url":"https://api.github.com/users/jesseduffield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesseduffield/subscriptions","organizations_url":"https://api.github.com/users/jesseduffield/orgs","repos_url":"https://api.github.com/users/jesseduffield/repos","events_url":"https://api.github.com/users/jesseduffield/events{/privacy}","received_events_url":"https://api.github.com/users/jesseduffield/received_events","type":"User","site_admin":false},"repo":{"id":134017286,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQwMTcyODY=","name":"lazygit","full_name":"jesseduffield/lazygit","owner":{"login":"jesseduffield","id":8456633,"node_id":"MDQ6VXNlcjg0NTY2MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/8456633?v=4","gravatar_id":"","url":"https://api.github.com/users/jesseduffield","html_url":"https://github.com/jesseduffield","followers_url":"https://api.github.com/users/jesseduffield/followers","following_url":"https://api.github.com/users/jesseduffield/following{/other_user}","gists_url":"https://api.github.com/users/jesseduffield/gists{/gist_id}","starred_url":"https://api.github.com/users/jesseduffield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesseduffield/subscriptions","organizations_url":"https://api.github.com/users/jesseduffield/orgs","repos_url":"https://api.github.com/users/jesseduffield/repos","events_url":"https://api.github.com/users/jesseduffield/events{/privacy}","received_events_url":"https://api.github.com/users/jesseduffield/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jesseduffield/lazygit","description":"simple terminal UI for git commands","fork":false,"url":"https://api.github.com/repos/jesseduffield/lazygit","forks_url":"https://api.github.com/repos/jesseduffield/lazygit/forks","keys_url":"https://api.github.com/repos/jesseduffield/lazygit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jesseduffield/lazygit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jesseduffield/lazygit/teams","hooks_url":"https://api.github.com/repos/jesseduffield/lazygit/hooks","issue_events_url":"https://api.github.com/repos/jesseduffield/lazygit/issues/events{/number}","events_url":"https://api.github.com/repos/jesseduffield/lazygit/events","assignees_url":"https://api.github.com/repos/jesseduffield/lazygit/assignees{/user}","branches_url":"https://api.github.com/repos/jesseduffield/lazygit/branches{/branch}","tags_url":"https://api.github.com/repos/jesseduffield/lazygit/tags","blobs_url":"https://api.github.com/repos/jesseduffield/lazygit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jesseduffield/lazygit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jesseduffield/lazygit/git/refs{/sha}","trees_url":"https://api.github.com/repos/jesseduffield/lazygit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jesseduffield/lazygit/statuses/{sha}","languages_url":"https://api.github.com/repos/jesseduffield/lazygit/languages","stargazers_url":"https://api.github.com/repos/jesseduffield/lazygit/stargazers","contributors_url":"https://api.github.com/repos/jesseduffield/lazygit/contributors","subscribers_url":"https://api.github.com/repos/jesseduffield/lazygit/subscribers","subscription_url":"https://api.github.com/repos/jesseduffield/lazygit/subscription","commits_url":"https://api.github.com/repos/jesseduffield/lazygit/commits{/sha}","git_commits_url":"https://api.github.com/repos/jesseduffield/lazygit/git/commits{/sha}","comments_url":"https://api.github.com/repos/jesseduffield/lazygit/comments{/number}","issue_comment_url":"https://api.github.com/repos/jesseduffield/lazygit/issues/comments{/number}","contents_url":"https://api.github.com/repos/jesseduffield/lazygit/contents/{+path}","compare_url":"https://api.github.com/repos/jesseduffield/lazygit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jesseduffield/lazygit/merges","archive_url":"https://api.github.com/repos/jesseduffield/lazygit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jesseduffield/lazygit/downloads","issues_url":"https://api.github.com/repos/jesseduffield/lazygit/issues{/number}","pulls_url":"https://api.github.com/repos/jesseduffield/lazygit/pulls{/number}","milestones_url":"https://api.github.com/repos/jesseduffield/lazygit/milestones{/number}","notifications_url":"https://api.github.com/repos/jesseduffield/lazygit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jesseduffield/lazygit/labels{/name}","releases_url":"https://api.github.com/repos/jesseduffield/lazygit/releases{/id}","deployments_url":"https://api.github.com/repos/jesseduffield/lazygit/deployments","created_at":"2018-05-19T00:53:06Z","updated_at":"2018-08-21T10:00:19Z","pushed_at":"2018-08-21T10:06:58Z","git_url":"git://github.com/jesseduffield/lazygit.git","ssh_url":"git@github.com:jesseduffield/lazygit.git","clone_url":"https://github.com/jesseduffield/lazygit.git","svn_url":"https://github.com/jesseduffield/lazygit","homepage":null,"size":8478,"stargazers_count":8630,"watchers_count":8630,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":230,"mirror_url":null,"archived":false,"open_issues_count":41,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":230,"open_issues":41,"watchers":8630,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jesseduffield/lazygit/pulls/151"},"html":{"href":"https://github.com/jesseduffield/lazygit/pull/151"},"issue":{"href":"https://api.github.com/repos/jesseduffield/lazygit/issues/151"},"comments":{"href":"https://api.github.com/repos/jesseduffield/lazygit/issues/151/comments"},"review_comments":{"href":"https://api.github.com/repos/jesseduffield/lazygit/pulls/151/comments"},"review_comment":{"href":"https://api.github.com/repos/jesseduffield/lazygit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jesseduffield/lazygit/pulls/151/commits"},"statuses":{"href":"https://api.github.com/repos/jesseduffield/lazygit/statuses/5f6b61d28c86676fec311ec94edad977343e48bd"}},"author_association":"NONE"}}
{"actor":{"display_login":"golangci"}}