Commit 0ac87af6 authored by Kamil Trzciński's avatar Kamil Trzciński
Browse files

Merge branch 'skipped_commit' into 'master'

Commits with [ci skip] have special skipped status


+ Commits with [ci skip] are marked as skipped
+ Commits without builds are marked as skipped

Resolution for:

This requires CE update:

/cc @vsizov @sytses 

See merge request !216
parents 9c0c4fd0 7f816661
......@@ -8,6 +8,8 @@ v7.14.0 (unreleased)
- Refactor GitLab API usage to use either access_token or private_token depending on what was specified during login
- Allow to use access_token for API requests
- Added support for CI skipped status
- Fix: user could steal specific runner
- Fix: don't send notifications for jobs with allow_failure set
......@@ -7,6 +7,8 @@ module CommitsHelper
when 'failed', 'canceled'
when 'skipped'
......@@ -161,6 +161,10 @@ class Commit < ActiveRecord::Base
def status
if skip_ci? || builds.none?
return 'skipped'
if yaml_errors.present?
return 'failed'
......@@ -60,6 +60,7 @@ describe CreateCommitService do
ci_yaml_file: gitlab_ci_yaml
commit.builds.any?.should be_false
commit.status.should == "skipped"
it "does not skips builds creation if there is no [ci skip] tag in commit message" do
Supports Markdown
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