Skip to content

Commit

Permalink
Mattermost improvements (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshann authored Nov 21, 2024
1 parent 466fef6 commit 270faa3
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Notarized macOS app `<%= release_type %>` build is ready :goose_honk_tada: | [:github: Workflow run summary](<%= workflow_url %>)<% if defined?(asana_task_url) %> | [:asana: Asana Task](<%= asana_task_url %>)<% end %>
Notarized macOS app `<%= release_type %>` build is ready :goose_honk_tada: | [:github: Workflow run summary](<%= workflow_url %>)<% if defined?(asana_task_url) && !asana_task_url.to_s.strip.empty? %> | [:asana: Asana Task](<%= asana_task_url %>)<% end %>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
:rotating_light: Notarized macOS app `<%= release_type %>` build failed | [:github: Workflow run summary](<%= workflow_url %>)<% if defined?(asana_task_url) %> | [:asana: Asana Task](<%= asana_task_url %>)<% end %>
:rotating_light: Notarized macOS app `<%= release_type %>` build failed | [:github: Workflow run summary](<%= workflow_url %>)<% if defined?(asana_task_url) && !asana_task_url.to_s.strip.empty? %> | [:asana: Asana Task](<%= asana_task_url %>)<% end %>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<%= app_platform %> app has been successfully uploaded to <%= destination %> :goose_honk_tada: | [:github: Workflow run summary](<%= workflow_url %>)
<%= platform %> app has been successfully uploaded to <%= destination %> :goose_honk_tada: | [:github: Workflow run summary](<%= workflow_url %>)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
:rotating_light: macOS app <%= destination %> workflow failed | [:github: Workflow run summary](<%= workflow_url %>)
:rotating_light: <%= platform %> app <%= destination %> workflow failed | [:github: Workflow run summary](<%= workflow_url %>)
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 = "0.11.6"
VERSION = "0.11.7"
end
end
23 changes: 22 additions & 1 deletion spec/mattermost_send_message_action_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,26 @@
})).to eq(expected)
end

it "processes notarized-build-complete template with a nil asana_task_url" do
expected = "Notarized macOS app `release` build is ready :goose_honk_tada: | [:github: Workflow run summary](https://workflow.com)"

expect(process_template("notarized-build-complete", {
"release_type" => "release",
"workflow_url" => "https://workflow.com",
"asana_task_url" => nil
})).to eq(expected)
end

it "processes notarized-build-complete template with an empty asana_task_url" do
expected = "Notarized macOS app `release` build is ready :goose_honk_tada: | [:github: Workflow run summary](https://workflow.com)"

expect(process_template("notarized-build-complete", {
"release_type" => "release",
"workflow_url" => "https://workflow.com",
"asana_task_url" => ""
})).to eq(expected)
end

it "processes notarized-build-complete template with Asana task URL" do
expected = "Notarized macOS app `release` build is ready :goose_honk_tada: | [:github: Workflow run summary](https://workflow.com) | [:asana: Asana Task](https://asana.com)"

Expand Down Expand Up @@ -108,7 +128,7 @@
expected = "macOS app has been successfully uploaded to testflight :goose_honk_tada: | [:github: Workflow run summary](https://workflow.com)"

expect(process_template("public-release-complete", {
"app_platform" => "macOS",
"platform" => "macOS",
"destination" => "testflight",
"workflow_url" => "https://workflow.com"
})).to eq(expected)
Expand All @@ -118,6 +138,7 @@
expected = ":rotating_light: macOS app testflight workflow failed | [:github: Workflow run summary](https://workflow.com)"

expect(process_template("public-release-failed", {
"platform" => "macOS",
"destination" => "testflight",
"workflow_url" => "https://workflow.com"
})).to eq(expected)
Expand Down

0 comments on commit 270faa3

Please sign in to comment.