{"size": 443, "ext": "js", "max_stars_repo_path": "lib/github/issue.js", "max_stars_repo_name": "AYCHIT/Aych.Gitjira", "max_stars_repo_stars_event_min_datetime": "2021-01-30T13:13:19.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-30T13:13:19.000Z", "max_issues_repo_path": "lib/github/issue.js", "max_issues_repo_name": "AYCHIT/Aych.Gitjira", "max_issues_repo_issues_event_min_datetime": "2021-09-02T08:31:01.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T11:10:32.000Z", "max_forks_repo_path": "lib/github/issue.js", "max_forks_repo_name": "AYCHIT/Aych.Gitjira", "max_forks_repo_forks_event_min_datetime": "2021-01-30T13:13:21.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-30T13:13:21.000Z"}
{"max_stars_count": 1, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 26.0588235294, "max_line_length": 119, "alphanum_fraction": 0.7020316027}
module.exports = async (context, jiraClient, util) => {
  const { issue } = context.payload

  const linkifiedBody = await util.unfurl(issue.body)
  if (!linkifiedBody) {
    context.log({ noop: 'no_linkified_body_issue' }, 'Halting futher execution for issue since linkifiedBody is empty')
    return
  }

  const editedIssue = context.issue({
    body: linkifiedBody,
    id: issue.id
  })

  await context.github.issues.edit(editedIssue)
}
