Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
56ce4667
Commit
56ce4667
authored
Aug 01, 2018
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
You cannot `/award` a Commit
parent
fbd0f162
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
app/services/quick_actions/interpret_service.rb
app/services/quick_actions/interpret_service.rb
+2
-1
spec/services/quick_actions/interpret_service_spec.rb
spec/services/quick_actions/interpret_service_spec.rb
+6
-0
No files found.
app/services/quick_actions/interpret_service.rb
View file @
56ce4667
...
...
@@ -393,7 +393,8 @@ module QuickActions
end
params
':emoji:'
condition
do
issuable
.
persisted?
issuable
.
is_a?
(
Issuable
)
&&
issuable
.
persisted?
end
parse_params
do
|
emoji_param
|
match
=
emoji_param
.
match
(
Banzai
::
Filter
::
EmojiFilter
.
emoji_pattern
)
...
...
spec/services/quick_actions/interpret_service_spec.rb
View file @
56ce4667
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment