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
This commit is contained in:
Rémy Coutable 2018-05-02 08:03:10 +00:00
commit da50984bde
1 changed files with 6 additions and 0 deletions

View File

@ -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?