def was_label_added(issue, label):
  """Check if a label was ever added to an issue."""
  if not label:
    return False

  for action in issue.actions:
    for added in action.labels.added:
      if label.lower() == added.lower():
        return True

  return False