Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.

Commit 4564d0e

Browse files
committed
fixed a typo which caused all the commits to be inspected for asana task definitions
1 parent d1b7b25 commit 4564d0e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/services/asana.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Service::Asana < Service
22
password :auth_token
33
string :restrict_to_branch
44
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
66

77
def receive_push
88
# make sure we have what we need
@@ -12,7 +12,7 @@ def receive_push
1212
branch = payload['ref'].split('/').last
1313

1414
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')
1616

1717
# check the branch restriction is poplulated and branch is not included
1818
if branch_restriction.length > 0 && branch_restriction.index(branch) == nil

test/asana_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_restricted_comment_commit_push
5656
end
5757

5858
svc = service(
59-
{'auth_token' => '0000',"restrict_to_last_comment" => "1"},
59+
{'auth_token' => '0000',"restrict_to_last_commit" => "1"},
6060
modified_payload)
6161
svc.receive_push
6262
end

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy