Lines Matching full:github
3 # ======- github-automation - LLVM GitHub Automation Routines--*- python -*--==#
15 import github
29 1. In the comments of this issue, request for it to be assigned to you, or just create a [pull request](https://github.com/llvm/llvm-project/pulls) after following the steps below. [Mention](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) this issue in the description of the pull request.
34 1. Open a [pull request](https://github.com/llvm/llvm-project/pulls) to the [upstream repository](https://github.com/llvm/llvm-project) on GitHub. Detailed instructions can be found [in GitHub's documentation](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). [Mention](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) this issue in the description of the pull request.
40 def _get_current_team(team_name, teams) -> Optional[github.Team.Team]:
48 # If the description of an issue/pull request is empty, the Github API
53 # https://github.com/github/markup/issues/1168#issuecomment-494946168
68 self.repo = github.Github(token).get_repo(repo)
69 self.org = github.Github(token).get_organization(self.repo.organization.login)
113 self.repo = github.Github(token).get_repo(repo)
114 self.org = github.Github(token).get_organization(self.repo.organization.login)
121 def get_summary_comment(self) -> github.IssueComment.IssueComment:
134 # GitHub limits comments to 65,536 characters, let's limit the diff
205 def _get_current_team(self) -> Optional[github.Team.Team]:
216 repo = github.Github(token).get_repo(repo)
221 # by a user new to LLVM and/or GitHub itself.
233 If this is not working for you, it is probably because you do not have write permissions for the repository. In which case you can instead tag reviewers by name in a comment by using `@` followed by their GitHub username.
237 If you have further questions, they may be answered by the [LLVM GitHub User Guide](https://llvm.org/docs/GitHub.html).
248 repo = github.Github(token).get_repo(repo)
306 Extract the commit hash from the argument passed to /action github
308 directly or use the github URL, such as
309 https://github.com/llvm/llvm-project/commit/2832d7941f4207f1fcf813b27cf08cecc3086959
311 github_prefix = "https://github.com/llvm/llvm-project/commit/"
384 def repo(self) -> github.Repository.Repository:
385 return github.Github(self.token).get_repo(self.repo_name)
388 def issue(self) -> github.Issue.Issue:
393 return "https://{}@github.com/{}".format(
420 def issue_notify_pull_request(self, pull: github.PullRequest.PullRequest) -> None:
428 a Github workflow to skip parsing this comment.
443 return "https://github.com/{}/actions/runs/{}".format(
450 ) -> github.IssueComment.IssueComment:
457 message += "Please manually backport the fix and push it to your github fork. Once this is done, please create a [pull request](https://github.com/llvm/llvm-project/compare)"
465 ) -> github.IssueComment.IssueComment:
474 def get_main_commit(self, cherry_pick_sha: str) -> github.Commit.Commit:
482 def pr_request_review(self, pr: github.PullRequest.PullRequest):
541 self, repo: github.Repository.Repository, head: str
555 https://docs.github.com/en/get-started/quickstart/github-glossary#base-branch
556 https://docs.github.com/en/get-started/quickstart/github-glossary#compare-branch
558 repo = github.Github(self.token).get_repo(self.repo_name)
632 repo = github.Github(token).get_repo(repo_name)
658 "--token", type=str, required=True, help="GitHub authentication token"
664 help="The GitHub repository that we are working with in the form of <owner>/<repo> (e.g. llvm/llvm-project)",
696 help="GitHub authentication token to use for the repository where new branches will be pushed. Defaults to TOKEN.",