simple refactoring
This commit is contained in:
parent
a635b9da97
commit
df7c52489a
21 changed files with 276 additions and 264 deletions
|
@ -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
|
||||
|
||||
|
@ -25,7 +25,7 @@ module PushEvent
|
|||
commit_to =~ /^00000/
|
||||
end
|
||||
|
||||
def md_ref?
|
||||
def md_ref?
|
||||
!(rm_ref? || new_ref?)
|
||||
end
|
||||
|
||||
|
@ -37,7 +37,7 @@ module PushEvent
|
|||
data[:after]
|
||||
end
|
||||
|
||||
def ref_name
|
||||
def ref_name
|
||||
if tag?
|
||||
tag_name
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue