We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36df40c commit e5af5b7Copy full SHA for e5af5b7
ci/stage_checker.rb
@@ -3,16 +3,10 @@
3
require_relative './ci_job'
4
5
module CI
6
- # CI job that checks all files are staged for commit.
+ # CI job that add all files to stage for commit.
7
class StageChecker < ::CI::CIJob
8
# Process StageChecker.
9
# @return {Void}
10
- def process
11
- git_status = `git status --porcelain`
12
-
13
- return if git_status.empty?
14
15
- end_with_error(-> { puts("StageChecker found unstaged changes:\n#{git_status}") })
16
- end
+ def process = `git add -u`
17
end
18
0 commit comments