将IntelliJ Idea服务器连接到GitLab.com:实际需要哪些信息?

时间:2017-05-10 10:14:24

标签: intellij-idea ide gitlab gitlab-api intellij-17

我尝试从GitLab.com上的私有存储库配置IntelliJ IDEA 2017.1.2以便get the tasks

要做到这一点,我必须创建相应的entry in the Servers window

现在,我对如何填写IDEA中的 Servers 表单并不了解。

服务器网址我必须使用哪个网址? 什么标记?

enter image description here

有什么建议吗? Thx提前。

2 个答案:

答案 0 :(得分:9)

更新:根据问题IDEA-193736中提到的信息,在更新2018.2发布时,应修复新GitLab问题API(V4)的连接问题。

https://gitlab.com网址对我不起作用,因为API网址已在GitLab上更新为V4。因此,在经过一些试验和错误后,我能够通过完成以下步骤使其工作:

  1. 使用API​​和read_user访问权限在GitLab(https://gitlab.com/profile/personal_access_tokens)上创建个人访问令牌
  2. 在IntelliJ(或我的情况下是Pycharm)中,服务器URL应为https://gitlab.com/api/v4/issues? (最后带问号)
  3. 令牌是先前生成的个人访问令牌
  4. 另外,请不要忘记在“设置”(设置=>工具=>任务)中的“任务”部分下将连接超时增加到15000毫秒。

    Task Server Screenshot

    希望它可以帮助别人。

答案 1 :(得分:3)

[编辑]这个答案在17年创建时有效。对于最新的anwer,请参阅该主题中的其他答案。

所以,这是怎么做的。

  1. 首先,转到gitlab
  2. 使用您的数据访问并获取个人访问令牌enter image description here
  3. 然后,您可以使用以下值配置IntelliJ Idea:enter image description here
  4. 您现在可以直接在Idea中查看所有GitLab的问题,如下所示。enter image description here