def METHOD_NAME(testcase):
  """File an issue to the GitHub repo of the project"""
  if not _filing_enabled(testcase):
    return
  if testcase.github_repo_id and testcase.github_issue_num:
    logs.log('Issue already filed under'
             f'issue number {testcase.github_issue_num} in '
             f'Repo {testcase.github_repo_id}.')
    return
  access_token = _get_access_token()
  repo = _get_repo(testcase, access_token)
  if not repo:
    logs.log('Unable to file issues to the main repo of the project')
    return
  if not repo.has_issues:
    logs.log_warn('Unable to file issues to the main repo: '
                  'Repo has disabled issues.')
    return
  issue = _post_issue(repo, testcase)
  update_testcase_properties(testcase, repo, issue)