gitlab

changing the default issue labels

烈酒焚心 提交于 2020-05-13 05:09:54
问题 I want to change the default issue labels. I tried modifying the code in the lib/gitlab/issues_labels.rb which I thought was where it was generating the default labels. however that didn't actually work. Does anyone know how to change the default labels that are created for a project? 回答1: Gitlab 5.2.0 (May 2013) introduced the "Ability to generate default labels set for issues". It comes from commit 71647fd, with issues_labels.rb labels = important_labels + warning_labels + neutral_labels +

changing the default issue labels

谁都会走 提交于 2020-05-13 05:09:51
问题 I want to change the default issue labels. I tried modifying the code in the lib/gitlab/issues_labels.rb which I thought was where it was generating the default labels. however that didn't actually work. Does anyone know how to change the default labels that are created for a project? 回答1: Gitlab 5.2.0 (May 2013) introduced the "Ability to generate default labels set for issues". It comes from commit 71647fd, with issues_labels.rb labels = important_labels + warning_labels + neutral_labels +

How to completely remove a commit from gitlab?

旧街凉风 提交于 2020-05-12 20:33:06
问题 I made a commit in my git repo and pushed it, but accidentally it contained some passwords for our production machines. So I deleted the commit: git reset --hard HEAD~1 git push --force That indeed removed the commit from the list of commits, but the url to the commit on gitlab still shows the source of the commit. I'm not sure whether this is git which still saves the contents of the commit on the gitlab servers, or the gitlab databases which somehow store the contents of the commit, but I

private repo - go 1.13 - `go mod ..` failed: ping “sum.golang.org/lookup” .. verifying package .. 410 gone

邮差的信 提交于 2020-05-10 06:59:08
问题 I am using golang 1.13 . I have a project that depends on a private gitlab project. I have the ssh keys for the same. When I try to retrieve the dependencies for a newly created module, I am getting the following error: $ go version go version go1.13 linux/amd64 $ go mod why go: downloading gitlab.com/mycompany/myproject v0.0.145 verifying gitlab.com/mycompany/myproject@v0.0.145: gitlab.com/mycompany/myproject@v0.0.145: reading https://sum.golang.org/lookup/gitlab.com/mycompany/myproject@v0.0

private repo - go 1.13 - `go mod ..` failed: ping “sum.golang.org/lookup” .. verifying package .. 410 gone

怎甘沉沦 提交于 2020-05-10 06:59:06
问题 I am using golang 1.13 . I have a project that depends on a private gitlab project. I have the ssh keys for the same. When I try to retrieve the dependencies for a newly created module, I am getting the following error: $ go version go version go1.13 linux/amd64 $ go mod why go: downloading gitlab.com/mycompany/myproject v0.0.145 verifying gitlab.com/mycompany/myproject@v0.0.145: gitlab.com/mycompany/myproject@v0.0.145: reading https://sum.golang.org/lookup/gitlab.com/mycompany/myproject@v0.0

Gitlab Pages: Failed to verify domain ownership

橙三吉。 提交于 2020-05-09 19:14:06
问题 This morning I got emails for each of my Gitlab Pages that are hosted on custom domains, saying that the domain verification failed. That's fine, because I don't think I ever verified them in the first place - good on Gitlab for getting this going. When I head on over the the Settings>Pages>Domain_Details on each repo, I see the instructions to create the following record: _gitlab-pages-verification-code.blog.ollyfg.com TXT gitlab-pages-verification-code={32_digit_long_code} On creating this

gitlab-runner 的 executors 之 docker

梦想的初衷 提交于 2020-05-09 15:59:04
gitlab-runner 的 executors 之 docker GitLab Runner 实现了许多执行程序,可用于在不同的场景中运行构建。所有执行程序分别为: SSH Shell Parallels VirtualBox Docker Docker Machine (auto-scaling) Kubernetes Custom 本文主要介绍 docker 执行程序: 两种不同的使用方式 踩过的坑 一些例子与经验 这是一个很好地选择。因为它可以提供一个干净的构建环境,项目所有依赖项都可以放到 docker 镜像中。同时,它还可以轻松创建具有依赖服务的构建环境,比如 MySQL。参考 https://docs.gitlab.com/runner/executors/README.html GitLab CI/CD 工作原理: https://docs.gitlab.com/ee/ci/introduction/index.html#how-gitlab-cicd-works 在 GitLab CI/CD 中构建 Docker 镜像: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html 两种使用方式 docker-in-docker 文档: https://docs.gitlab.com/ee/ci

gitlab和jenkins结合构建

喜夏-厌秋 提交于 2020-05-09 08:19:29
**#192.168.1.3 安装gitlab-ce** yum -y install curl policycoreutils openssh-server openssh-clients postfix yum –y install gitlab-ce vim /etc/gitlab/gitlab.rb gitlab-ctl reconfigure 打开网页输入 IP 地址,默认是 root 用户,提示让你输入密码,然后登陆 然后创建用户 创建组 创建项目 **#192.168.1.4 安装jenkins** yum –y install java java-devel tar zxf apache-tomcat-8.5.35.tar.gz mv apache-tomcat-8.5.35 /usr/local/tomcat7 vim /etc/profile 在这里添加下列两行 export CATALINA_HOME=/use/local/tomcat7 export PATH=$CATALINA_HOME/bin:$PATH cd /usr/local/tomcat7/webapps/ 把Jenkins.war加到/usr/local/tomcat7/webapps/ 下 用浏览器进入一下网站http://192.168.164.20:8080/jenkins

Python setup.py with private repository on GitLab as dependency_links based on commit ID

独自空忆成欢 提交于 2020-05-09 06:59:06
问题 I am trying to install a private dependency (not something that Python could find on PyPI). I have added to the file setup.py this (as explained here: https://python-packaging.readthedocs.io/en/latest/dependencies.html#packages-not-on-pypi): dependency_links = [ 'https://gitlab.com/<PRIVATE_ORG>/<PRIVATE_REPO>.git@<COMMIT_ID>' ] On that official documentation they don't really explain in details what's the format of that URL, however using a <COMMIT_ID after the @ sounds reasonable (as it's

版本管理工具Git(一)简要介绍

我怕爱的太早我们不能终老 提交于 2020-05-08 07:41:00
版本管理工具不但可以备份而且还能记录版本,也就是同一个东西不同时期的状态同时可以跟踪追溯。 版本管理工具由CVS、SVN、Git、GitHub。 最早的版本管理工具CVS,因为多人开发项目导致工作很难协调所以就实现了CVS工具。 产品 特点 CVS 最早的版本管理工具,集中式管理,中心服务器,每个人都存放。 SVN 一个更好的集中式版本管理工具 Git 分布式的,由Linux开源社区诞生的。 Github 托管网站,一个项目可以有一个网站,项目代码可以托管到这个网站 Github和Gitlab的区别:Gitlab拥有Github的一切功能而且还有更多特性。用户界面丰富。Github可以理解为一个网站为用户提供GIT仓储,而Gitlab是基于GIT实现的项目管理软件,我们自己可以在公司内部搭建Gitlab服务。 GIT和SVN的区别:SVN等其他传统版本管理工具保存的是每个版本的变化 Git保存的是快照而不是结果 GIT中所有数据在存储前都进行数据校验然后以校验和来引用。在GIT数据库中保存的信息都是以这种SHA-1哈希值来保存的而不是文件名称。 状态 Commited 已提交表示数据已经按照保存到本地数据库中 Modified 表示修改了文件但是还没有提交到数据库中 Staged 表示对一个已修改的文件的当前版本做了标记。 由上面三个概念引入的三个区域 GIT仓库