| /external/pytorch/.github/workflows/ |
| D | trymerge.yml | 9 name: try_merge_pr_${{ github.event.client_payload.pr_num }} 41 PR_NUM: ${{ github.event.client_payload.pr_num }} 53 if ! python3 .github/scripts/tryrebase.py "${PR_NUM}" --branch "${REBASE}"; then 54 python3 .github/scripts/comment_on_pr.py "${PR_NUM}" "merge" 65 python3 .github/scripts/trymerge.py --force --comment-id "${COMMENT_ID}" "${PR_NUM}" 67 python3 .github/scripts/trymerge.py --force "${PR_NUM}" 71 … python3 .github/scripts/trymerge.py --ignore-current --comment-id "${COMMENT_ID}" "${PR_NUM}" 73 python3 .github/scripts/trymerge.py --ignore-current "${PR_NUM}" 76 python3 .github/scripts/trymerge.py --comment-id "${COMMENT_ID}" "${PR_NUM}" 78 python3 .github/scripts/trymerge.py "${PR_NUM}" [all …]
|
| D | revert.yml | 9 name: try_revert_pr_${{ github.event.client_payload.pr_num }} 38 PR_NUM: ${{ github.event.client_payload.pr_num }} 45 … .github/scripts/trymerge.py --revert --comment-id "${COMMENT_ID}" --reason "${REASON}" "${PR_NUM}" 47 python3 .github/scripts/trymerge.py --revert --comment-id "${COMMENT_ID}" "${PR_NUM}" 51 python3 .github/scripts/trymerge.py --revert --reason "${REASON}" "${PR_NUM}" 53 python3 .github/scripts/trymerge.py --revert "${PR_NUM}" 61 PR_NUM: ${{ github.event.client_payload.pr_num }} 64 python3 .github/scripts/comment_on_pr.py "${PR_NUM}" "revert"
|
| D | tryrebase.yml | 38 PR_NUM: ${{ github.event.client_payload.pr_num }} 43 python3 .github/scripts/tryrebase.py "${PR_NUM}" --branch "${BRANCH}" 45 python3 .github/scripts/tryrebase.py "${PR_NUM}" 52 PR_NUM: ${{ github.event.client_payload.pr_num }} 55 python3 .github/scripts/comment_on_pr.py "${PR_NUM}" "rebase"
|
| D | cherry-pick.yml | 9 name: cherry-pick-pr-${{ github.event.client_payload.pr_num }} 39 PR_NUM: ${{ github.event.client_payload.pr_num }} 53 "${PR_NUM}" 56 group: cherry-pick-pr-${{ github.event.client_payload.pr_num }}
|
| D | check_mergeability_ghstack.yml | 65 PR_NUM: ${{ github.event.pull_request.number }} 68 python3 .github/scripts/trymerge.py --check-mergeability "${PR_NUM}" 74 PR_NUM: ${{ github.event.pull_request.number }} 77 echo "# PR $PR_NUM is not mergeable into main"
|
| /external/pytorch/.github/scripts/ |
| D | tryrebase.py | 27 parser.add_argument("pr_num", type=int) 34 msg = f"Tried to rebase and push PR #{pr.pr_num}, but it was already up to date." 47 pr.pr_num, 56 branch = f"pull/{pr.pr_num}/head" 77 pr.pr_num, 148 pr_num = int(line.split("/")[-1]) 149 if pr_num != pr.pr_num: 153 pr_num, 154 … f"Rebased `{orig_ref}` onto `{onto_branch}` because #{pr.pr_num} was rebased, " 156 + f"checkout https://github.com/{org}/{project}/pull/{pr_num}`)", [all …]
|
| D | cherry_pick.py | 39 parser.add_argument("pr_num", type=int) 125 pr.pr_num, 148 post_pr_comment(org, project, pr.pr_num, msg, dry_run) 168 cherry_pick_branch = f"cherry-pick-{pr.pr_num}-by-{github_actor}" 190 default_msg = f"Cherry pick #{pr.pr_num} onto {onto_branch} branch" 222 org: str, project: str, pr_num: int, msg: str, dry_run: bool = False 244 (f"### Cherry picking #{pr_num}", f"{msg}", "", f"{internal_debugging}") 246 return gh_post_pr_comment(org, project, pr_num, comment, dry_run) 253 pr_num: int, 265 f"* https://github.com/{org}/{project}/pull/{pr_num}", [all …]
|
| D | trymerge.py | 619 parser.add_argument("pr_num", type=int) 644 f"Could not find PR-resolved string in {msg} of ghstacked PR {pr.pr_num}" 650 pr_num = int(m.group("number")) 651 candidate = GitHubPR(pr.org, pr.project, pr_num) if pr_num != pr.pr_num else pr 673 … f"Skipping {idx+1} of {len(rev_list)} PR (#{candidate.pr_num}) as its already been merged" 690 f"PR {stacked_pr.pr_num} is out of sync with the corresponding revision {rev} on " 699 def __init__(self, org: str, project: str, pr_num: int) -> None: 700 assert isinstance(pr_num, int) 703 self.pr_num = pr_num 704 self.info = gh_get_pr_info(org, project, pr_num) [all …]
|
| D | trymerge_explainer.py | 23 pr_num: int 35 pr_num: int, 42 self.pr_num = pr_num 94 def get_revert_message(org: str, project: str, pr_num: int) -> str:
|
| D | label_utils.py | 77 org: str, repo: str, pr_num: int, labels: Union[str, List[str]], dry_run: bool 80 print(f"Dryrun: Adding labels {labels} to PR {pr_num}") 83 url=f"https://api.github.com/repos/{org}/{repo}/issues/{pr_num}/labels", 89 org: str, repo: str, pr_num: int, label: str, dry_run: bool 92 print(f"Dryrun: Removing {label} from PR {pr_num}") 95 url=f"https://api.github.com/repos/{org}/{repo}/issues/{pr_num}/labels/{label}",
|
| D | test_trymerge.py | 123 def mocked_drci_classifications(pr_num: int, project: str, num_retries: int = 3) -> Any: 128 pr_num, 138 self.pr_num = 76123 149 org: str, repo: str, pr_num: str, label: str, dry_run: bool 284 def commits_resolving_gh_pr(self, pr_num: int) -> List[str]: 618 pr.pr_num, 686 pr.pr_num, 700 pr.pr_num, 716 pr.pr_num, 730 pr.pr_num, [all …]
|
| D | comment_on_pr.py | 13 parser.add_argument("pr_num", type=int) 32 gh_post_pr_comment(org, project, args.pr_num, msg) 33 print(org, project, args.pr_num, msg)
|
| D | check_labels.py | 22 gh_post_pr_comment(pr.org, pr.project, pr.pr_num, LABEL_ERR_MSG) 29 parser.add_argument("pr_num", type=int) 44 pr = GitHubPR(org, project, args.pr_num)
|
| D | github_utils.py | 152 org: str, repo: str, pr_num: int, comment: str, dry_run: bool = False 155 f"{GITHUB_API_URL}/repos/{org}/{repo}/issues/{pr_num}/comments", 199 def gh_update_pr_state(org: str, repo: str, pr_num: int, state: str = "open") -> None: 200 url = f"{GITHUB_API_URL}/repos/{org}/{repo}/pulls/{pr_num}" 208 f"Failed to open {pr_num} because its head branch has been deleted: {err}"
|
| /external/executorch/.github/scripts/ |
| D | cherry_pick.py | 46 parser.add_argument("pr_num", type=int) 132 pr.pr_num, 155 post_pr_comment(org, project, pr.pr_num, msg, dry_run) 175 cherry_pick_branch = f"cherry-pick-{pr.pr_num}-by-{github_actor}" 196 default_msg = f"Cherry pick #{pr.pr_num} onto {onto_branch} branch" 228 org: str, project: str, pr_num: int, msg: str, dry_run: bool = False 250 (f"### Cherry picking #{pr_num}", f"{msg}", "", f"{internal_debugging}") 252 return gh_post_pr_comment(org, project, pr_num, comment, dry_run) 259 pr_num: int, 271 f"* https://github.com/{org}/{project}/pull/{pr_num}", [all …]
|
| D | trymerge.py | 609 parser.add_argument("pr_num", type=int) 634 f"Could not find PR-resolved string in {msg} of ghstacked PR {pr.pr_num}" 640 pr_num = int(m.group("number")) 641 candidate = GitHubPR(pr.org, pr.project, pr_num) if pr_num != pr.pr_num else pr 663 … f"Skipping {idx+1} of {len(rev_list)} PR (#{candidate.pr_num}) as its already been merged" 680 f"PR {stacked_pr.pr_num} is out of sync with the corresponding revision {rev} on " 689 def __init__(self, org: str, project: str, pr_num: int) -> None: 690 assert isinstance(pr_num, int) 693 self.pr_num = pr_num 694 self.info = gh_get_pr_info(org, project, pr_num) [all …]
|
| D | label_utils.py | 83 org: str, repo: str, pr_num: int, labels: Union[str, List[str]], dry_run: bool 86 print(f"Dryrun: Adding labels {labels} to PR {pr_num}") 89 url=f"https://api.github.com/repos/{org}/{repo}/issues/{pr_num}/labels", 95 org: str, repo: str, pr_num: int, label: str, dry_run: bool 98 print(f"Dryrun: Removing {label} from PR {pr_num}") 101 url=f"https://api.github.com/repos/{org}/{repo}/issues/{pr_num}/labels/{label}",
|
| D | trymerge_explainer.py | 29 pr_num: int 41 pr_num: int, 48 self.pr_num = pr_num 100 def get_revert_message(org: str, project: str, pr_num: int) -> str:
|
| D | check_labels.py | 22 gh_post_pr_comment(pr.org, pr.project, pr.pr_num, LABEL_ERR_MSG) 29 parser.add_argument("pr_num", type=int) 44 pr = GitHubPR(org, project, args.pr_num)
|
| D | github_utils.py | 151 org: str, repo: str, pr_num: int, comment: str, dry_run: bool = False 154 f"{GITHUB_API_URL}/repos/{org}/{repo}/issues/{pr_num}/comments", 198 def gh_update_pr_state(org: str, repo: str, pr_num: int, state: str = "open") -> None: 199 url = f"{GITHUB_API_URL}/repos/{org}/{repo}/pulls/{pr_num}" 207 f"Failed to open {pr_num} because its head branch has been deleted: {err}"
|
| /external/pytorch/tools/testing/ |
| D | update_slow_tests.py | 160 pr_num = response["items"][0]["number"] 162 response = git_api(f"/repos/{source_repo}/pulls/{pr_num}", {}) 165 f"pr does exist, number is {pr_num}, branch name is {branch_name}, link is {link}" 167 return pr_num, branch_name 183 pr_num = None variable 187 pr_num, branch_name = open_pr variable 203 if pr_num is None: 205 pr_num = make_pr("pytorch/pytorch", params) variable 207 approve_pr("pytorch/pytorch", pr_num) 208 make_comment("pytorch/pytorch", pr_num, "@pytorchbot merge")
|
| /external/rust/android-crates-io/crates/grpcio-sys/grpc/tools/release/ |
| D | release_notes.py | 101 def get_pr_data(pr_num): argument 105 url = API_URL + pr_num 133 for pr_num in prlist: 134 pr_num = str(pr_num) 135 print(("---------- getting data for PR " + pr_num)) 136 pr = get_pr_data(pr_num) 139 ("\n***ERROR*** Error in getting data for PR " + pr_num + "\n")) 158 print(("\n***ERROR***: No merge_by found for PR " + pr_num + "\n")) 162 prline = "- " + body + " ([#" + pr_num + "](" + HTML_URL + pr_num + "))" 167 print(("Release notes label missing for " + pr_num)) [all …]
|
| /external/executorch/.github/workflows/ |
| D | cherry-pick.yml | 9 name: cherry-pick-pr-${{ github.event.client_payload.pr_num }} 40 PR_NUM: ${{ github.event.client_payload.pr_num }} 54 "${PR_NUM}" 57 group: cherry-pick-pr-${{ github.event.client_payload.pr_num }}
|
| D | check-labels.yml | 51 PR_NUM: ${{ github.event.number || github.event.inputs.pr_number }} 54 python3 .github/scripts/check_labels.py --exit-non-zero "${PR_NUM}"
|
| /external/grpc-grpc/tools/release/ |
| D | release_notes.py | 134 def get_pr_data(pr_num): argument 139 url = API_URL + pr_num 181 for pr_num in prlist: 182 pr_num = str(pr_num) 183 print(("---------- getting data for PR " + pr_num)) 184 pr = get_pr_data(pr_num) 187 ("\n***ERROR*** Error in getting data for PR " + pr_num + "\n") 208 "- " + body + " ([#" + pr_num + "](" + HTML_URL + pr_num + "))" 214 print(("Release notes label missing for " + pr_num)) 217 print(("Lang label missing for " + pr_num)) [all …]
|