This repository was archived by the owner on Jan 31, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ class Service::Asana < Service
2
2
password :auth_token
3
3
string :restrict_to_branch
4
4
boolean :restrict_to_last_commit
5
- white_list :restrict_to_branch , :restrict_to_last_comment
5
+ white_list :restrict_to_branch , :restrict_to_last_commit
6
6
7
7
def receive_push
8
8
# make sure we have what we need
@@ -12,7 +12,7 @@ def receive_push
12
12
branch = payload [ 'ref' ] . split ( '/' ) . last
13
13
14
14
branch_restriction = data [ 'restrict_to_branch' ] . to_s
15
- commit_restriction = config_boolean_true? ( 'restrict_to_last_comment ' )
15
+ commit_restriction = config_boolean_true? ( 'restrict_to_last_commit ' )
16
16
17
17
# check the branch restriction is poplulated and branch is not included
18
18
if branch_restriction . length > 0 && branch_restriction . index ( branch ) == nil
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def test_restricted_comment_commit_push
56
56
end
57
57
58
58
svc = service (
59
- { 'auth_token' => '0000' , "restrict_to_last_comment " => "1" } ,
59
+ { 'auth_token' => '0000' , "restrict_to_last_commit " => "1" } ,
60
60
modified_payload )
61
61
svc . receive_push
62
62
end
You can’t perform that action at this time.
0 commit comments