code: def hook_action(action, repo_id):
      
      github = GitHubAPI(user_id=current_user.id)
      repos = github.account.extra_data['repos']
  
      if repo_id not in repos:
          abort(404)
  
      if action == 'disable':
          if github.remove_hook(repo_id, repos[repo_id]['full_name']):
              db.session.commit()
              return redirect(url_for('.index'))
          else:
              abort(400)
      elif action == 'enable':
          if github.create_hook(repo_id, repos[repo_id]['full_name']):
              db.session.commit()
              return redirect(url_for('.index'))
          else:
              abort(400)
      else:
          abort(400)
docs: Display selected repository.