code: async def is_try_or_pull_request(context, task):
      
      if is_github_task(task):
          return await is_pull_request(context, task)
      else:
          return is_try(task, context.config['source_env_prefix'])
docs: Determine if a task is a try or a pull-request-like task (restricted privs).
  
      Checks are the ones done in ``is_try`` and ``is_pull_request``
  
      Args:
          context (scriptworker.context.Context): the scriptworker context.
          task (dict): the task definition to check.
  
      Returns:
          bool: True if it's a pull-request or a try task