diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-24 18:08:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-24 18:08:28 +0300 |
commit | 8e1bb8745bafe36f273ce4a095c3576c38ceb8b4 (patch) | |
tree | ec27d8dc078480009afe783f7bea87d3927f28f1 /app/models/commit.rb | |
parent | 4b4c254b2cfaca26c2c8e2bda70d45c13e3a6f97 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index f405f5bc663..ca18cb50e02 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -519,9 +519,10 @@ class Commit # DRAFT_REGEX = /\A\s*#{Gitlab::Regex.merge_request_draft}|(fixup!|squash!)\s/.freeze - def work_in_progress? + def draft? !!(title =~ DRAFT_REGEX) end + alias_method :work_in_progress?, :draft? def merged_merge_request?(user) !!merged_merge_request(user) |