mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-09 08:41:34 +00:00
Handle another duplicate field (#3383)
* Handle another duplicate field * Make case insensitive
This commit is contained in:
parent
dde7a09694
commit
ab189b1c85
@ -528,7 +528,8 @@ public class Ado : NotificationsBase, IAdo {
|
||||
// OR it could have System.State == Closed && System.Reason == Duplicate
|
||||
// I haven't found any other combinations where System.Reason could be duplicate but just to be safe
|
||||
// we're explicitly _not_ checking the state of the work item to determine if it's duplicate
|
||||
return wi.Fields.ContainsKey("System.Reason") && string.Equals(wi.Fields["System.Reason"].ToString(), "Duplicate")
|
||||
return wi.Fields.ContainsKey("System.Reason") && string.Equals(wi.Fields["System.Reason"].ToString(), "Duplicate", StringComparison.OrdinalIgnoreCase)
|
||||
|| wi.Fields.ContainsKey("Microsoft.VSTS.Common.ResolvedReason") && string.Equals(wi.Fields["Microsoft.VSTS.Common.ResolvedReason"].ToString(), "Duplicate", StringComparison.OrdinalIgnoreCase)
|
||||
// Alternatively, the work item can also specify a 'relation' to another work item.
|
||||
// This is typically used to create parent/child relationships between work items but can also
|
||||
// Be used to mark duplicates so we should check this as well.
|
||||
|
Loading…
x
Reference in New Issue
Block a user