Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b9059e1b85 |
@@ -122,8 +122,19 @@ static class AutomateFunction
|
|||||||
bool changed = !Equals(entry.Value, releaseObjectPropDict[entry.Key]);
|
bool changed = !Equals(entry.Value, releaseObjectPropDict[entry.Key]);
|
||||||
if (changed)
|
if (changed)
|
||||||
{
|
{
|
||||||
string diff =
|
object? releaseValue = releaseObjectPropDict[entry.Key];
|
||||||
$"Property ({entry.Key}) changed from ({releaseObjectPropDict[entry.Key]}) to ({entry.Value})";
|
object? testValue = entry.Value;
|
||||||
|
string diff = $"Property ({entry.Key}) changed";
|
||||||
|
if (
|
||||||
|
releaseValue is not null
|
||||||
|
&& testValue is not null
|
||||||
|
&& !releaseValue.GetType().Equals(testValue.GetType())
|
||||||
|
)
|
||||||
|
{
|
||||||
|
diff +=
|
||||||
|
$" from ({releaseObjectPropDict[entry.Key]}) to ({entry.Value})";
|
||||||
|
}
|
||||||
|
|
||||||
if (!diffDictionary.ContainsKey(entry.Key))
|
if (!diffDictionary.ContainsKey(entry.Key))
|
||||||
{
|
{
|
||||||
diffDictionary.Add(entry.Key, diff);
|
diffDictionary.Add(entry.Key, diff);
|
||||||
|
|||||||
Reference in New Issue
Block a user