Merge pull request #878 from pagbrl/main

feat: Use git email as performer when available
This commit is contained in:
Donal McBreen
2024-07-15 13:41:17 +01:00
committed by GitHub
5 changed files with 8 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ class CliTestCase < ActiveSupport::TestCase
end
def assert_hook_ran(hook, output, version:, service_version:, hosts:, command:, subcommand: nil, runtime: false)
performer = `whoami`.strip
performer = Kamal::Git.email.presence || `whoami`.chomp
service = service_version.split("@").first
assert_match "Running the #{hook} hook...\n", output