Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AsanaHelper # rubocop:disable Metrics/ClassLength
ASANA_TAG_URL_TEMPLATE = "https://app.asana.com/0/%s/list"

# https://app.asana.com/0/<project_id>/<task_id>
ASANA_V0_TASK_URL_REGEX = %r{https://app.asana.com/0/[0-9]+/([0-9]+)(?:/f)?}
ASANA_V0_TASK_URL_REGEX = %r{https://app.asana.com/0(?:/search)?/[0-9]+/([0-9]+)(?:/f)?}
# https://app.asana.com/<url_format_version>/<workspace_id>/<object_name>/<object_id>/<subobject_name>/<subobject_id>
ASANA_V1_TASK_URL_REGEX = %r{https://app.asana.com/1/[0-9]+(?:/[0-9a-z/]*)?/task/([0-9]+)(:?/[0-9a-z/]*)?(?:\?focus=true)?}
ASANA_V1_INBOX_URL_REGEX = %r{https://app.asana.com/1/[0-9]+/inbox/[0-9]+/item/([0-9]+)/story/([0-9]+)}
Expand Down
2 changes: 1 addition & 1 deletion lib/fastlane/plugin/ddg_apple_automation/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Fastlane
module DdgAppleAutomation
VERSION = "2.2.3"
VERSION = "2.2.4"
end
end
4 changes: 4 additions & 0 deletions spec/asana_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def asana_task_url(task_id)
it "extracts task ID from a URL in focused mode" do
expect(extract_asana_task_id("https://app.asana.com/0/0/1234/f")).to eq("1234")
end

it "extracts task ID from search results" do
expect(extract_asana_task_id("https://app.asana.com/0/search/753241/9999")).to eq("9999")
end
end

context "v1 task URL" do
Expand Down