Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created February 20, 2019 23:58
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/07650f1f9cc898bdbcd1a549569bcfbf to your computer and use it in GitHub Desktop.
Save iaindooley/07650f1f9cc898bdbcd1a549569bcfbf to your computer and use it in GitHub Desktop.
Add label based on list name
function addLabelBasedOnListName(notification)
{
var card = new Notification(notification).addedCard();
card.addLabel(card.currentList().name());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment