File tree Expand file tree Collapse file tree
lib/fastlane/plugin/ddg_apple_automation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class AsanaHelper # rubocop:disable Metrics/ClassLength
1717 ASANA_TAG_URL_TEMPLATE = "https://app.asana.com/0/%s/list"
1818
1919 # https://app.asana.com/0/<project_id>/<task_id>
20- ASANA_V0_TASK_URL_REGEX = %r{https://app.asana.com/0/[0-9]+/([0-9]+)(?:/f)?}
20+ ASANA_V0_TASK_URL_REGEX = %r{https://app.asana.com/0(?:/search)? /[0-9]+/([0-9]+)(?:/f)?}
2121 # https://app.asana.com/<url_format_version>/<workspace_id>/<object_name>/<object_id>/<subobject_name>/<subobject_id>
2222 ASANA_V1_TASK_URL_REGEX = %r{https://app.asana.com/1/[0-9]+(?:/[0-9a-z/]*)?/task/([0-9]+)(:?/[0-9a-z/]*)?(?:\? focus=true)?}
2323 ASANA_V1_INBOX_URL_REGEX = %r{https://app.asana.com/1/[0-9]+/inbox/[0-9]+/item/([0-9]+)/story/([0-9]+)}
Original file line number Diff line number Diff line change 11module Fastlane
22 module DdgAppleAutomation
3- VERSION = "2.2.3 "
3+ VERSION = "2.2.4 "
44 end
55end
Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ def asana_task_url(task_id)
3333 it "extracts task ID from a URL in focused mode" do
3434 expect ( extract_asana_task_id ( "https://app.asana.com/0/0/1234/f" ) ) . to eq ( "1234" )
3535 end
36+
37+ it "extracts task ID from search results" do
38+ expect ( extract_asana_task_id ( "https://app.asana.com/0/search/753241/9999" ) ) . to eq ( "9999" )
39+ end
3640 end
3741
3842 context "v1 task URL" do
You can’t perform that action at this time.
0 commit comments