Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Last active September 11, 2020 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/7573220968474ed842a9964d36e3ed34 to your computer and use it in GitHub Desktop.
Save iaindooley/7573220968474ed842a9964d36e3ed34 to your computer and use it in GitHub Desktop.
Move card when label added
function addedLabel_DepNotReq(notification)
{
new Notification(notification)
//this will throw InvalidActionException if no label added with this name
//as part of this action, which is an "expected exception" and Trellinator
//won't retry this notification
.addedLabel("Deposit not required")//could also use addedLabel(/Deposit not required/i) for case insensitive
.card()
.postComment("hello")
//I often use this style regex with list names: case insensitive "starts with"
.moveTo(/Ready to Program.*/i,"top");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment