doc/issue-service/sample.js
function convertIssue (issue) {
  if (!issue) {
    return null;
  }

  return {
    "type":   "issue",
    "number": issue.number,
    "url":    issue.url,
    "title":  issue.title,
    "labels": issue.labels
  };
}
function convertIssue (issue) {
  if (!issue) {
    return null;
  }

  return {
    "type":   "issue",
    "number": issue.number,
    "url":    issue.url,
    "title":  issue.title,
    "labels": issue.labels
  };
}
function convertIssue ( issue ) { if ( ! issue ) { return null ; } return { "type" : "issue" , "number" : issue . number , "url" : issue . url , "title" : issue . title , "labels" : issue . labels } ; }
Convert issue to Github-Todos format
Convert issue to Github - Todos format