小编Lon*_*and的帖子

Gitlab/Redmine自动关闭提交问题

我们正在使用Gitlab(7.10.2)和Redmine(3.0.2).
所有问题都在Redmine中管理,Gitlab管理所有git-repositories.
到目前为止,我们通过UI设置Gitlab,提交消息"Close#234"是可点击的,并指向相应的Redmine票证网站.
我们现在想要实现Redmine中的票证与Gitlab提交直接链接.
如果我们使用内部Gitlab问题系统并将commit-message设置为'Close#234',则票据234自动关闭并与提交链接.但是使用Redmine作为问题服务系统,我们无法自动关闭提交问题或在Redmine中有关于此的任何信息.
有谁知道我们如何修改Gitlab和/或Redmine以使用Gitlab提交关闭Redmine票证?

redmine gitlab

12
推荐指数
1
解决办法
1万
查看次数

GitLab LDAP的二级策略

我在干净的Debian(debian-7.8.0-amd64)安装上使用GitLab CE Omnibus软件包(gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64).

我按照https://about.gitlab.com/downloads/上的安装过程进行操作,一切正常.

我修改了/etc/gitlab/gitlab.rb以使用单个LDAP服务器进行身份验证.哪个也按预期工作.

但是当我尝试使用辅助LDAP连接时,"gitlab-ctl reconfigure"给出了输出:

---- Begin output of /opt/gitlab/bin/gitlab-rake cache:clear ----
STDOUT:
STDERR: rake aborted!
Devise::OmniAuth::StrategyNotFound: Could not find a strategy with name `Ldapsecondary'. Please ensure it is required or explicitly set it using the :strategy_class option                          .
Tasks: TOP => cache:clear => environment
(See full trace by running task with --trace)
---- End output of /opt/gitlab/bin/gitlab-rake cache:clear ----
Run Code Online (Sandbox Code Playgroud)

所以,问题是我可以使用LDAP连接'main',但我不能使用'secondary'连接.

是否有可能同时在CE版本中使用两个不同的LDAP连接?

我是ruby [在轨道上]的新手.我在/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/config.rb中找到了一些东西,但是我无法调试任何东西.

这是我在/etc/gitlab/gitlab.rb中的设置

gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-EOS # remember to close …
Run Code Online (Sandbox Code Playgroud)

ldap ruby-on-rails omniauth gitlab

6
推荐指数
1
解决办法
2200
查看次数

标签 统计

gitlab ×2

ldap ×1

omniauth ×1

redmine ×1

ruby-on-rails ×1