You cannot /award
a Commit
This commit is contained in:
parent
fbd0f16252
commit
56ce46674f
2 changed files with 8 additions and 1 deletions
|
@ -393,6 +393,7 @@ module QuickActions
|
|||
end
|
||||
params ':emoji:'
|
||||
condition do
|
||||
issuable.is_a?(Issuable) &&
|
||||
issuable.persisted?
|
||||
end
|
||||
parse_params do |emoji_param|
|
||||
|
|
|
@ -980,6 +980,12 @@ describe QuickActions::InterpretService do
|
|||
let(:issuable) { issue }
|
||||
end
|
||||
end
|
||||
|
||||
context 'if issuable is a Commit' do
|
||||
let(:content) { '/award :100:' }
|
||||
let(:issuable) { commit }
|
||||
it_behaves_like 'empty command'
|
||||
end
|
||||
end
|
||||
|
||||
context '/shrug command' do
|
||||
|
|
Loading…
Reference in a new issue