Skip to content
代码片段 群组 项目
提交 da50984b 编辑于 作者: Rémy Coutable's avatar Rémy Coutable
浏览文件

Merge branch 'blackst0ne-rails5-add-touch-later-to-commit-model' into 'master'

[Rails5] Add `touch_later` to `Commit` model

See merge request gitlab-org/gitlab-ce!18642
No related branches found
No related tags found
无相关合并请求
...@@ -424,6 +424,12 @@ def touch ...@@ -424,6 +424,12 @@ def touch
# no-op but needs to be defined since #persisted? is defined # no-op but needs to be defined since #persisted? is defined
end end
def touch_later
# No-op.
# This method is called by ActiveRecord.
# We don't want to do anything for `Commit` model, so this is empty.
end
WIP_REGEX = /\A\s*(((?i)(\[WIP\]|WIP:|WIP)\s|WIP$))|(fixup!|squash!)\s/.freeze WIP_REGEX = /\A\s*(((?i)(\[WIP\]|WIP:|WIP)\s|WIP$))|(fixup!|squash!)\s/.freeze
def work_in_progress? def work_in_progress?
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册