code: def pr_num(self):
          
          result = get_pr_num(repo=self.repo)
          if result is None:
              result = get_travis_pr_num()
          return result
docs: Return the PR number or None if not on a PR