Commit da50984b authored by 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
parents 415bf587 68c75bc0
......@@ -424,6 +424,12 @@ class Commit
# no-op but needs to be defined since #persisted? is defined
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
def work_in_progress?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment