Commit 0a7b5db3 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Copy-edit cross project pipeline error messages

parent 574373d8
......@@ -6,8 +6,8 @@ module EE
prepended do
EE_CALLOUT_FAILURE_MESSAGES = const_get(:CALLOUT_FAILURE_MESSAGES).merge(
protected_environment_failure: 'The environment this job is deploying to is protected. Only users with permission may successfully run this job.',
insufficient_bridge_permissions: 'This job could not be executed because of insufficient permissions to create downstream pipeline.',
invalid_bridge_trigger: 'This job could not be executed because downstream pipeline trigger definition is not valid.'
insufficient_bridge_permissions: 'This job could not be executed because of insufficient permissions to create a downstream pipeline.',
invalid_bridge_trigger: 'This job could not be executed because downstream pipeline trigger definition is invalid.'
).freeze
EE::CommitStatusPresenter.private_constant :EE_CALLOUT_FAILURE_MESSAGES
......
......@@ -11,7 +11,7 @@ module EE
prepended do
EE_REASONS = const_get(:REASONS).merge(
protected_environment_failure: 'protected environment failure',
invalid_bridge_trigger: 'downstream pipeline trigger definition is not valid',
invalid_bridge_trigger: 'downstream pipeline trigger definition is invalid',
insufficient_bridge_permissions: 'no permissions to trigger downstream pipeline'
).freeze
......
......@@ -457,7 +457,7 @@ describe Ci::Pipeline do
end
describe '#source_bridge' do
it 'has does not have a bridge source' do
it 'does not have a bridge source' do
expect(pipeline.source_bridge).to be_nil
end
end
......
Markdown is supported
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