Skip to content
Snippets Groups Projects

Mark MR as WIP when pushing WIP commits

Merged Jurre requested to merge jurre/gitlab-ce:wip-mr-from-commits into master
All threads resolved!
2 files
+ 11
1
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
1
@@ -322,7 +322,7 @@ def diffs(diff_options = nil)
Gitlab::Diff::FileCollection::Commit.new(self, diff_options: diff_options)
end
WIP_REGEX = /\A\s*(\[WIP\]\s*|WIP:\s*|WIP\s+|fixup!\s+|squash!\s+)+\s*/i.freeze
WIP_REGEX = /\A\s*(((?i)\[WIP\]\s*|WIP:\s*|WIP\s+|WIP$)|fixup!\s+|squash!\s+)+\s*/.freeze
def work_in_progress?
!!(title =~ WIP_REGEX)
Loading