Lines Matching defs:repo
67 def __init__(self, token: str, repo: str, issue_number: int, label_name: str):
68 self.repo = github.Github(token).get_repo(repo)
69 self.org = github.Github(token).get_organization(self.repo.organization.login)
70 self.issue = self.repo.get_issue(issue_number)
112 def __init__(self, token: str, repo: str, pr_number: int, label_name: str):
113 self.repo = github.Github(token).get_repo(repo)
114 self.org = github.Github(token).get_organization(self.repo.organization.login)
115 self.pr = self.repo.get_issue(pr_number).as_pull_request()
215 def __init__(self, token: str, repo: str, pr_number: int):
216 repo = github.Github(token).get_repo(repo)
217 self.pr = repo.get_issue(pr_number).as_pull_request()
247 def __init__(self, token: str, repo: str, pr_number: int, author: str):
248 repo = github.Github(token).get_repo(repo)
249 self.pr = repo.get_issue(pr_number).as_pull_request()
295 Configure the git repo in `git_dir` with the llvmbot account so
298 repo = Repo(git_dir)
299 with repo.config_writer() as config:
333 repo: str,
341 self._repo_name = repo
384 def repo(self) -> github.Repository.Repository:
389 return self.repo.get_issue(self.issue_number)
475 commit = self.repo.get_commit(cherry_pick_sha)
480 return self.repo.get_commit(m.group(1))
541 self, repo: github.Repository.Repository, head: str
543 pulls = repo.get_pulls(head=head)
558 repo = github.Github(self.token).get_repo(self.repo_name)
566 if self.check_if_pull_request_exists(repo, head):
570 commit_message = repo.get_commit(commits[-1]).commit.message
576 pull = repo.create_pull(
632 repo = github.Github(token).get_repo(repo_name)
633 pr = repo.get_issue(pr_number).as_pull_request()
661 "--repo",
664 help="The GitHub repository that we are working with in the form of <owner>/<repo> (e.g. llvm/llvm-project)",
694 "--branch-repo-token",
699 "--branch-repo",
702 help="The name of the repo where new branches will be pushed (e.g. llvm/llvm-project)",
713 help="Set the default user and email for the git repo in LLVM_PROJECT_DIR to llvmbot",
738 args.token, args.repo, args.issue_number, args.label_name
743 args.token, args.repo, args.issue_number, args.label_name
747 pr_greeter = PRGreeter(args.token, args.repo, args.issue_number)
751 args.token, args.repo, args.issue_number, args.author
757 args.repo,
775 request_release_note(args.token, args.repo, args.pr_number)