payload: {"action":"closed","number":5962,"pull_request":{"url":"https://api.github.com/repos/jenkins-x/jx/pulls/5962","id":333202107,"node_id":"MDExOlB1bGxSZXF1ZXN0MzMzMjAyMTA3","html_url":"https://github.com/jenkins-x/jx/pull/5962","diff_url":"https://github.com/jenkins-x/jx/pull/5962.diff","patch_url":"https://github.com/jenkins-x/jx/pull/5962.patch","issue_url":"https://api.github.com/repos/jenkins-x/jx/issues/5962","number":5962,"state":"closed","locked":false,"title":"fix: Output language of git","user":{"login":"msvticket","id":3265455,"node_id":"MDQ6VXNlcjMyNjU0NTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3265455?v=4","gravatar_id":"","url":"https://api.github.com/users/msvticket","html_url":"https://github.com/msvticket","followers_url":"https://api.github.com/users/msvticket/followers","following_url":"https://api.github.com/users/msvticket/following{/other_user}","gists_url":"https://api.github.com/users/msvticket/gists{/gist_id}","starred_url":"https://api.github.com/users/msvticket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msvticket/subscriptions","organizations_url":"https://api.github.com/users/msvticket/orgs","repos_url":"https://api.github.com/users/msvticket/repos","events_url":"https://api.github.com/users/msvticket/events{/privacy}","received_events_url":"https://api.github.com/users/msvticket/received_events","type":"User","site_admin":false},"body":"#### Description\r\n\r\nSince jx is assuming the output of git is is in English it should tell git to output English.\r\n\r\nAs it is now commands can fail because jx doesn't recognise the output of git when locale isn't specifying English language. For example in the case of promote:\r\n\r\n```\r\nerror: pulling environment repo https://github.com/foo/environment.git into /Users/bar/.jx/environments: fetching origin promote-fubar-0.0.9: git output: fatal: Kunde inte hitta fjärr-referensen promote-fubar-0.0.9: failed to run 'git fetch origin promote-fubar-0.0.9' command in directory '/Users/bar/.jx/environments/production', output: 'fatal: Kunde inte hitta fjärr-referensen promote-fubar-0.0.9'\r\n```\r\n\r\njx looks for the string `couldn't find remote ref` in method IsCouldntFindRemoteRefError. In thes same file (pkg/gits/helpers.go) there are other examples out string that jx checks for from git.\r\n\r\n\r\nfixes #6052","created_at":"2019-10-28T16:16:50Z","updated_at":"2019-11-07T08:22:26Z","closed_at":"2019-11-07T08:22:26Z","merged_at":"2019-11-07T08:22:25Z","merge_commit_sha":"e57b045e13d7e7528544c7bb8377db117cb1a51b","assignee":{"login":"hferentschik","id":296354,"node_id":"MDQ6VXNlcjI5NjM1NA==","avatar_url":"https://avatars0.githubusercontent.com/u/296354?v=4","gravatar_id":"","url":"https://api.github.com/users/hferentschik","html_url":"https://github.com/hferentschik","followers_url":"https://api.github.com/users/hferentschik/followers","following_url":"https://api.github.com/users/hferentschik/following{/other_user}","gists_url":"https://api.github.com/users/hferentschik/gists{/gist_id}","starred_url":"https://api.github.com/users/hferentschik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hferentschik/subscriptions","organizations_url":"https://api.github.com/users/hferentschik/orgs","repos_url":"https://api.github.com/users/hferentschik/repos","events_url":"https://api.github.com/users/hferentschik/events{/privacy}","received_events_url":"https://api.github.com/users/hferentschik/received_events","type":"User","site_admin":false},"assignees":[{"login":"hferentschik","id":296354,"node_id":"MDQ6VXNlcjI5NjM1NA==","avatar_url":"https://avatars0.githubusercontent.com/u/296354?v=4","gravatar_id":"","url":"https://api.github.com/users/hferentschik","html_url":"https://github.com/hferentschik","followers_url":"https://api.github.com/users/hferentschik/followers","following_url":"https://api.github.com/users/hferentschik/following{/other_user}","gists_url":"https://api.github.com/users/hferentschik/gists{/gist_id}","starred_url":"https://api.github.com/users/hferentschik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hferentschik/subscriptions","organizations_url":"https://api.github.com/users/hferentschik/orgs","repos_url":"https://api.github.com/users/hferentschik/repos","events_url":"https://api.github.com/users/hferentschik/events{/privacy}","received_events_url":"https://api.github.com/users/hferentschik/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"mikecirioli","id":8135503,"node_id":"MDQ6VXNlcjgxMzU1MDM=","avatar_url":"https://avatars2.githubusercontent.com/u/8135503?v=4","gravatar_id":"","url":"https://api.github.com/users/mikecirioli","html_url":"https://github.com/mikecirioli","followers_url":"https://api.github.com/users/mikecirioli/followers","following_url":"https://api.github.com/users/mikecirioli/following{/other_user}","gists_url":"https://api.github.com/users/mikecirioli/gists{/gist_id}","starred_url":"https://api.github.com/users/mikecirioli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikecirioli/subscriptions","organizations_url":"https://api.github.com/users/mikecirioli/orgs","repos_url":"https://api.github.com/users/mikecirioli/repos","events_url":"https://api.github.com/users/mikecirioli/events{/privacy}","received_events_url":"https://api.github.com/users/mikecirioli/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1012973918,"node_id":"MDU6TGFiZWwxMDEyOTczOTE4","url":"https://api.github.com/repos/jenkins-x/jx/labels/approved","name":"approved","color":"ededed","default":false},{"id":1019526670,"node_id":"MDU6TGFiZWwxMDE5NTI2Njcw","url":"https://api.github.com/repos/jenkins-x/jx/labels/lgtm","name":"lgtm","color":"ededed","default":false},{"id":1155870428,"node_id":"MDU6TGFiZWwxMTU1ODcwNDI4","url":"https://api.github.com/repos/jenkins-x/jx/labels/ok-to-test","name":"ok-to-test","color":"ededed","default":false},{"id":1012969964,"node_id":"MDU6TGFiZWwxMDEyOTY5OTY0","url":"https://api.github.com/repos/jenkins-x/jx/labels/size/XS","name":"size/XS","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/jenkins-x/jx/pulls/5962/commits","review_comments_url":"https://api.github.com/repos/jenkins-x/jx/pulls/5962/comments","review_comment_url":"https://api.github.com/repos/jenkins-x/jx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkins-x/jx/issues/5962/comments","statuses_url":"https://api.github.com/repos/jenkins-x/jx/statuses/cbca9d0fb9c02ce3ce400cc7a10b9579dd6b97ab","head":{"label":"deniedboarding:git-locale","ref":"git-locale","sha":"cbca9d0fb9c02ce3ce400cc7a10b9579dd6b97ab","user":{"login":"deniedboarding","id":1267838,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNjc4Mzg=","avatar_url":"https://avatars1.githubusercontent.com/u/1267838?v=4","gravatar_id":"","url":"https://api.github.com/users/deniedboarding","html_url":"https://github.com/deniedboarding","followers_url":"https://api.github.com/users/deniedboarding/followers","following_url":"https://api.github.com/users/deniedboarding/following{/other_user}","gists_url":"https://api.github.com/users/deniedboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/deniedboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniedboarding/subscriptions","organizations_url":"https://api.github.com/users/deniedboarding/orgs","repos_url":"https://api.github.com/users/deniedboarding/repos","events_url":"https://api.github.com/users/deniedboarding/events{/privacy}","received_events_url":"https://api.github.com/users/deniedboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":150410722,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA0MTA3MjI=","name":"jx","full_name":"deniedboarding/jx","private":false,"owner":{"login":"deniedboarding","id":1267838,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNjc4Mzg=","avatar_url":"https://avatars1.githubusercontent.com/u/1267838?v=4","gravatar_id":"","url":"https://api.github.com/users/deniedboarding","html_url":"https://github.com/deniedboarding","followers_url":"https://api.github.com/users/deniedboarding/followers","following_url":"https://api.github.com/users/deniedboarding/following{/other_user}","gists_url":"https://api.github.com/users/deniedboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/deniedboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniedboarding/subscriptions","organizations_url":"https://api.github.com/users/deniedboarding/orgs","repos_url":"https://api.github.com/users/deniedboarding/repos","events_url":"https://api.github.com/users/deniedboarding/events{/privacy}","received_events_url":"https://api.github.com/users/deniedboarding/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/deniedboarding/jx","description":"jx is a command line tool for working with Jenkins X: automated CI/CD for Kubernetes","fork":true,"url":"https://api.github.com/repos/deniedboarding/jx","forks_url":"https://api.github.com/repos/deniedboarding/jx/forks","keys_url":"https://api.github.com/repos/deniedboarding/jx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deniedboarding/jx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deniedboarding/jx/teams","hooks_url":"https://api.github.com/repos/deniedboarding/jx/hooks","issue_events_url":"https://api.github.com/repos/deniedboarding/jx/issues/events{/number}","events_url":"https://api.github.com/repos/deniedboarding/jx/events","assignees_url":"https://api.github.com/repos/deniedboarding/jx/assignees{/user}","branches_url":"https://api.github.com/repos/deniedboarding/jx/branches{/branch}","tags_url":"https://api.github.com/repos/deniedboarding/jx/tags","blobs_url":"https://api.github.com/repos/deniedboarding/jx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deniedboarding/jx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deniedboarding/jx/git/refs{/sha}","trees_url":"https://api.github.com/repos/deniedboarding/jx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deniedboarding/jx/statuses/{sha}","languages_url":"https://api.github.com/repos/deniedboarding/jx/languages","stargazers_url":"https://api.github.com/repos/deniedboarding/jx/stargazers","contributors_url":"https://api.github.com/repos/deniedboarding/jx/contributors","subscribers_url":"https://api.github.com/repos/deniedboarding/jx/subscribers","subscription_url":"https://api.github.com/repos/deniedboarding/jx/subscription","commits_url":"https://api.github.com/repos/deniedboarding/jx/commits{/sha}","git_commits_url":"https://api.github.com/repos/deniedboarding/jx/git/commits{/sha}","comments_url":"https://api.github.com/repos/deniedboarding/jx/comments{/number}","issue_comment_url":"https://api.github.com/repos/deniedboarding/jx/issues/comments{/number}","contents_url":"https://api.github.com/repos/deniedboarding/jx/contents/{+path}","compare_url":"https://api.github.com/repos/deniedboarding/jx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deniedboarding/jx/merges","archive_url":"https://api.github.com/repos/deniedboarding/jx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deniedboarding/jx/downloads","issues_url":"https://api.github.com/repos/deniedboarding/jx/issues{/number}","pulls_url":"https://api.github.com/repos/deniedboarding/jx/pulls{/number}","milestones_url":"https://api.github.com/repos/deniedboarding/jx/milestones{/number}","notifications_url":"https://api.github.com/repos/deniedboarding/jx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deniedboarding/jx/labels{/name}","releases_url":"https://api.github.com/repos/deniedboarding/jx/releases{/id}","deployments_url":"https://api.github.com/repos/deniedboarding/jx/deployments","created_at":"2018-09-26T10:41:26Z","updated_at":"2019-10-24T13:53:29Z","pushed_at":"2019-10-29T08:55:11Z","git_url":"git://github.com/deniedboarding/jx.git","ssh_url":"git@github.com:deniedboarding/jx.git","clone_url":"https://github.com/deniedboarding/jx.git","svn_url":"https://github.com/deniedboarding/jx","homepage":"https://jenkins-x.io/","size":52752,"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,"disabled":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","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkins-x:master","ref":"master","sha":"9081df15c1b78f24429f1440493890582d0565a8","user":{"login":"jenkins-x","id":34566050,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NTY2MDUw","avatar_url":"https://avatars0.githubusercontent.com/u/34566050?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkins-x","html_url":"https://github.com/jenkins-x","followers_url":"https://api.github.com/users/jenkins-x/followers","following_url":"https://api.github.com/users/jenkins-x/following{/other_user}","gists_url":"https://api.github.com/users/jenkins-x/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkins-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkins-x/subscriptions","organizations_url":"https://api.github.com/users/jenkins-x/orgs","repos_url":"https://api.github.com/users/jenkins-x/repos","events_url":"https://api.github.com/users/jenkins-x/events{/privacy}","received_events_url":"https://api.github.com/users/jenkins-x/received_events","type":"Organization","site_admin":false},"repo":{"id":116400734,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY0MDA3MzQ=","name":"jx","full_name":"jenkins-x/jx","private":false,"owner":{"login":"jenkins-x","id":34566050,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NTY2MDUw","avatar_url":"https://avatars0.githubusercontent.com/u/34566050?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkins-x","html_url":"https://github.com/jenkins-x","followers_url":"https://api.github.com/users/jenkins-x/followers","following_url":"https://api.github.com/users/jenkins-x/following{/other_user}","gists_url":"https://api.github.com/users/jenkins-x/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkins-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkins-x/subscriptions","organizations_url":"https://api.github.com/users/jenkins-x/orgs","repos_url":"https://api.github.com/users/jenkins-x/repos","events_url":"https://api.github.com/users/jenkins-x/events{/privacy}","received_events_url":"https://api.github.com/users/jenkins-x/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/jenkins-x/jx","description":"Jenkins X provides automated CI+CD for Kubernetes with Preview Environments on Pull Requests using Jenkins, Tekton, Knative, Prow, Skaffold and Helm","fork":false,"url":"https://api.github.com/repos/jenkins-x/jx","forks_url":"https://api.github.com/repos/jenkins-x/jx/forks","keys_url":"https://api.github.com/repos/jenkins-x/jx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkins-x/jx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkins-x/jx/teams","hooks_url":"https://api.github.com/repos/jenkins-x/jx/hooks","issue_events_url":"https://api.github.com/repos/jenkins-x/jx/issues/events{/number}","events_url":"https://api.github.com/repos/jenkins-x/jx/events","assignees_url":"https://api.github.com/repos/jenkins-x/jx/assignees{/user}","branches_url":"https://api.github.com/repos/jenkins-x/jx/branches{/branch}","tags_url":"https://api.github.com/repos/jenkins-x/jx/tags","blobs_url":"https://api.github.com/repos/jenkins-x/jx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkins-x/jx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkins-x/jx/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkins-x/jx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkins-x/jx/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkins-x/jx/languages","stargazers_url":"https://api.github.com/repos/jenkins-x/jx/stargazers","contributors_url":"https://api.github.com/repos/jenkins-x/jx/contributors","subscribers_url":"https://api.github.com/repos/jenkins-x/jx/subscribers","subscription_url":"https://api.github.com/repos/jenkins-x/jx/subscription","commits_url":"https://api.github.com/repos/jenkins-x/jx/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkins-x/jx/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkins-x/jx/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkins-x/jx/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkins-x/jx/contents/{+path}","compare_url":"https://api.github.com/repos/jenkins-x/jx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkins-x/jx/merges","archive_url":"https://api.github.com/repos/jenkins-x/jx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkins-x/jx/downloads","issues_url":"https://api.github.com/repos/jenkins-x/jx/issues{/number}","pulls_url":"https://api.github.com/repos/jenkins-x/jx/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkins-x/jx/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkins-x/jx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkins-x/jx/labels{/name}","releases_url":"https://api.github.com/repos/jenkins-x/jx/releases{/id}","deployments_url":"https://api.github.com/repos/jenkins-x/jx/deployments","created_at":"2018-01-05T15:46:09Z","updated_at":"2019-11-06T19:45:26Z","pushed_at":"2019-11-07T08:22:25Z","git_url":"git://github.com/jenkins-x/jx.git","ssh_url":"git@github.com:jenkins-x/jx.git","clone_url":"https://github.com/jenkins-x/jx.git","svn_url":"https://github.com/jenkins-x/jx","homepage":"https://jenkins-x.io/","size":60161,"stargazers_count":3159,"watchers_count":3159,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":581,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":830,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":581,"open_issues":830,"watchers":3159,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkins-x/jx/pulls/5962"},"html":{"href":"https://github.com/jenkins-x/jx/pull/5962"},"issue":{"href":"https://api.github.com/repos/jenkins-x/jx/issues/5962"},"comments":{"href":"https://api.github.com/repos/jenkins-x/jx/issues/5962/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkins-x/jx/pulls/5962/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkins-x/jx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkins-x/jx/pulls/5962/commits"},"statuses":{"href":"https://api.github.com/repos/jenkins-x/jx/statuses/cbca9d0fb9c02ce3ce400cc7a10b9579dd6b97ab"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jenkins-x-bot","id":35031835,"node_id":"MDQ6VXNlcjM1MDMxODM1","avatar_url":"https://avatars0.githubusercontent.com/u/35031835?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkins-x-bot","html_url":"https://github.com/jenkins-x-bot","followers_url":"https://api.github.com/users/jenkins-x-bot/followers","following_url":"https://api.github.com/users/jenkins-x-bot/following{/other_user}","gists_url":"https://api.github.com/users/jenkins-x-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkins-x-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkins-x-bot/subscriptions","organizations_url":"https://api.github.com/users/jenkins-x-bot/orgs","repos_url":"https://api.github.com/users/jenkins-x-bot/repos","events_url":"https://api.github.com/users/jenkins-x-bot/events{/privacy}","received_events_url":"https://api.github.com/users/jenkins-x-bot/received_events","type":"User","site_admin":false},"comments":4,"review_comments":3,"maintainer_can_modify":false,"commits":1,"additions":4,"deletions":0,"changed_files":1}}
other: {"actor":{"display_login":"jenkins-x-bot"}}