Skip to content
Snippets Groups Projects
Commit df7c5248 authored by Andrey Kumanyaev's avatar Andrey Kumanyaev
Browse files

simple refactoring

parent a635b9da
No related branches found
No related tags found
1 merge request!1656Refactoring
Loading
Loading
@@ -5,11 +5,11 @@ module PushEvent
false
end
 
def tag?
def tag?
data[:ref]["refs/tags"]
end
 
def branch?
def branch?
data[:ref]["refs/heads"]
end
 
Loading
Loading
@@ -25,7 +25,7 @@ module PushEvent
commit_to =~ /^00000/
end
 
def md_ref?
def md_ref?
!(rm_ref? || new_ref?)
end
 
Loading
Loading
@@ -37,7 +37,7 @@ module PushEvent
data[:after]
end
 
def ref_name
def ref_name
if tag?
tag_name
else
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment