There should be the option to create an automation that when a Linear status is set to "Merged" or "Done", Sunsama task should be set to complete