code: async def has_commit_landed_on_repository(self, context, revision):
          
          # Revision may be a tag name. `branch_commits` doesn't work on tags
          if not _is_git_full_hash(revision):
              revision = self.get_tag_hash(tag_name=revision)
  
          repo = self._github_repository.html_url
  
          url = '/'.join([repo.rstrip('/'), 'branch_commits', revision])
          html_data = await retry_request(context, url)
          html_text = html_data.strip()
          # https://github.com/{repo_owner}/{repo_name}/branch_commits/{revision} just returns some \n
          # when the commit hasn't landed on the origin repo. Otherwise, some HTML data is returned - it
          # represents the branches on which the given revision is present.
          return html_text != ''
docs: Tell if a commit was landed on the repository or if it just comes from a pull request.
  
          Args:
              context (scriptworker.context.Context): the scriptworker context.
              revision (str): the commit hash or the tag name.
  
          Returns:
              bool: True if the commit is present in one of the branches of the main repository