{"action":"created","issue":{"url":"https://api.github.com/repos/danger/danger/issues/499","repository_url":"https://api.github.com/repos/danger/danger","labels_url":"https://api.github.com/repos/danger/danger/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/danger/danger/issues/499/comments","events_url":"https://api.github.com/repos/danger/danger/issues/499/events","html_url":"https://github.com/danger/danger/issues/499","id":174564608,"number":499,"title":"Incorrect MR ID for GitLab with Drone","user":{"login":"k0nserv","id":1333960,"avatar_url":"https://avatars.githubusercontent.com/u/1333960?v=3","gravatar_id":"","url":"https://api.github.com/users/k0nserv","html_url":"https://github.com/k0nserv","followers_url":"https://api.github.com/users/k0nserv/followers","following_url":"https://api.github.com/users/k0nserv/following{/other_user}","gists_url":"https://api.github.com/users/k0nserv/gists{/gist_id}","starred_url":"https://api.github.com/users/k0nserv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k0nserv/subscriptions","organizations_url":"https://api.github.com/users/k0nserv/orgs","repos_url":"https://api.github.com/users/k0nserv/repos","events_url":"https://api.github.com/users/k0nserv/events{/privacy}","received_events_url":"https://api.github.com/users/k0nserv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/danger/danger/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/danger/danger/labels/GitLab","name":"GitLab","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-09-01T16:10:59Z","updated_at":"2016-09-02T06:57:39Z","closed_at":null,"body":"# Report\r\n\r\n## What did you do?\r\nI ran Danger on Drone using a private GitLab instance.\r\n\r\n## What did you expect to happen?\r\n\r\nI expected Danger to run correctly.\r\n\r\n## What happened instead?\r\n\r\nDanger ran, but failed because the ID used to fetched the merge request details was the `iid`(the project specific merge request id) not the global merge request id that the API expects.\r\n\r\n## Your Environment\r\n\r\n* Which CI are you running on? Drone\r\n* Are you running the latest version of Danger? Yes\r\n"},"comment":{"url":"https://api.github.com/repos/danger/danger/issues/comments/244298285","html_url":"https://github.com/danger/danger/issues/499#issuecomment-244298285","issue_url":"https://api.github.com/repos/danger/danger/issues/499","id":244298285,"user":{"login":"jk","id":40043,"avatar_url":"https://avatars.githubusercontent.com/u/40043?v=3","gravatar_id":"","url":"https://api.github.com/users/jk","html_url":"https://github.com/jk","followers_url":"https://api.github.com/users/jk/followers","following_url":"https://api.github.com/users/jk/following{/other_user}","gists_url":"https://api.github.com/users/jk/gists{/gist_id}","starred_url":"https://api.github.com/users/jk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jk/subscriptions","organizations_url":"https://api.github.com/users/jk/orgs","repos_url":"https://api.github.com/users/jk/repos","events_url":"https://api.github.com/users/jk/events{/privacy}","received_events_url":"https://api.github.com/users/jk/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T06:57:39Z","updated_at":"2016-09-02T06:57:39Z","body":"> Yeah if you could get me printenv from a merge request build that'd be nice :)\r\n\r\n@k0nserv Here you go, but take note that I do two workarounds in the buildjobs to stop danger from complaining:\r\n```bash\r\nexport GIT_URL=GIT_URL_1\r\nexport LANG=en_US\r\n```\r\n\r\nHere is the (somewhat redacted) output from `env`:\r\n```bash\r\nRBENV_VERSION=2.2.0\r\nBUILD_URL=https://build.host.tld/job/playground-danger-php-test/49/\r\nM2=/opt/maven/current/bin\r\nDANGER_GITLAB_API_BASE_URL=https://git.host.tld/api/v3\r\nHUDSON_SERVER_COOKIE=e62815d80ee563ed\r\nSHELL=/bin/bash\r\nTERM=xterm-256color\r\nBUILD_TAG=jenkins-playground-danger-php-test-49\r\nQTDIR=/usr/lib64/qt-3.3\r\nGIT_PREVIOUS_COMMIT=01fa2a1b738831064d09b5b82348fc3f4674c47d\r\nQTINC=/usr/lib64/qt-3.3/include\r\ngitlabTargetRepoHttpUrl=https://git.host.tld/playground/danger-php-test.git\r\ngitlabSourceRepoURL=git@git.host.tld:playground/danger-php-test.git\r\nROOT_BUILD_CAUSE=SCMTRIGGER\r\nWORKSPACE=/var/lib/jenkins/jobs/playground-danger-php-test/workspace\r\nJOB_URL=https://build.host.tld/job/playground-danger-php-test/\r\nUSER=jenkins\r\nRBENV_ROOT=/var/lib/jenkins/.rbenv\r\ngitlabMergeRequestTitle=WIP: Something #trivial\r\ngitlabUserEmail=firstname.lastname@host.tld\r\ngitlabTargetBranch=master\r\ngitlabTargetRepoSshUrl=git@git.host.tld:playground/danger-php-test.git\r\nGIT_AUTHOR_NAME=Build Server\r\nGIT_COMMITTER_NAME=Build Server\r\ngitlabTargetNamespace=playground\r\nNLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat\r\nGIT_COMMIT=ba5c4fa61a97ec1c7cbb8c53e9c8591a78344aa7\r\nJENKINS_HOME=/var/lib/jenkins\r\nROOT_BUILD_CAUSE_SCMTRIGGER=true\r\nPATH=[redacted]:/sbin:/usr/sbin:/bin:/usr/bin\r\nBUILD_CAUSE_SCMTRIGGER=true\r\ngitlabTargetRepoName=danger-php-test\r\nGIT_COMMITTER_EMAIL=jenkins@build.host.tld\r\nPWD=/var/lib/jenkins/jobs/playground-danger-php-test/workspace\r\ngitlabSourceNamespace=playground\r\nHUDSON_URL=https://build.host.tld/\r\nLANG=en_US\r\nJOB_NAME=playground-danger-php-test\r\ngitlabUserName=Firstname Lastname\r\ngitlabSourceRepoHttpUrl=https://git.host.tld/playground/danger-php-test.git\r\nBUILD_DISPLAY_NAME=#49\r\ngitlabActionType=MERGE\r\ngitlabSourceRepoName=danger-php-test\r\nXFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt\r\nBUILD_CAUSE=SCMTRIGGER\r\nBUILD_ID=49\r\nJENKINS_URL=https://build.host.tld/\r\nRBENV_SHELL=jenkins\r\nJOB_BASE_NAME=playground-danger-php-test\r\nGIT_PREVIOUS_SUCCESSFUL_COMMIT=01fa2a1b738831064d09b5b82348fc3f4674c47d\r\nHOME=/var/lib/jenkins\r\nSHLVL=3\r\nM2_HOME=/opt/maven/current\r\ngitlabSourceBranch=feature/danger4\r\ngitlabSourceRepoHomepage=https://git.host.tld/playground/danger-php-test\r\nGIT_BRANCH=danger-php-test/feature/danger4\r\nJENKINS_SERVER_COOKIE=[redacted]\r\nEXECUTOR_NUMBER=1\r\nGIT_URL=git@git.host.tld:playground/danger-php-test.git\r\nDANGER_GITLAB_HOST=git.host.tld\r\nNODE_LABELS=master\r\nLOGNAME=jenkins\r\ngitlabMergeRequestIid=24\r\nQTLIB=/usr/lib64/qt-3.3/lib\r\nCVS_RSH=ssh\r\nHUDSON_HOME=/var/lib/jenkins\r\nNODE_NAME=master\r\nLESSOPEN=|/usr/bin/lesspipe.sh %s\r\nBUILD_NUMBER=49\r\nGIT_URL_2=git@git.host.tld:playground/danger-php-test.git\r\nGIT_URL_1=git@git.host.tld:playground/danger-php-test.git\r\nHUDSON_COOKIE=34ca39c0-92c2-40de-a29f-00383b4b06db\r\nDANGER_GITLAB_API_TOKEN=[redacted]\r\nGIT_AUTHOR_EMAIL=jenkins@build.host.tld\r\ngitlabBranch=feature/danger4\r\ngitlabMergeRequestId=351\r\nG_BROKEN_FILENAMES=1\r\ngitlabSourceRepoSshUrl=git@git.host.tld:playground/danger-php-test.git\r\n_=/bin/env\r\n```\r\n"}}
{"actor":{"display_login":"jk"}}