From b9a2ca4d2d73bb812fb27cc7f2d6ba3e14ea7a5e Mon Sep 17 00:00:00 2001 From: Hansong Zhang Date: Tue, 15 Oct 2024 21:24:36 -0700 Subject: [PATCH 1/2] Bypass no op ghstack-source-id: 0fdbaf2c958ce3884745274053603eb27b35cd9c Pull Request resolved: https://github.com/pytorch/executorch/pull/6268 --- .github/workflows/ghstack_land.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ghstack_land.yml b/.github/workflows/ghstack_land.yml index d7b1ce68c1e..8f66e15c4bd 100644 --- a/.github/workflows/ghstack_land.yml +++ b/.github/workflows/ghstack_land.yml @@ -29,7 +29,7 @@ jobs: PR_MERGED=$(python -c "from github import Github; g = Github(); repo = g.get_repo('pytorch/executorch'); pr = repo.get_pull(${PR_NUMBER}); print(1 if pr.merged else 0)") if [ "$PR_MERGED" = "0" ]; then echo $"PR $PR_NUMBER is not merged. No op here." - exit 0 + # exit 0 fi python .github/scripts/propose_ghstack_orig_pr.py --pr $PR_NUMBER --repo pytorch/executorch From ce4bb0bd1b86b8b137b212ab7931ca170c3d268f Mon Sep 17 00:00:00 2001 From: Hansong Zhang Date: Tue, 15 Oct 2024 21:24:37 -0700 Subject: [PATCH 2/2] Use pytorchbot token ghstack-source-id: c5b4f5a7f85b01736bbd82bdd24c033c74749765 Pull Request resolved: https://github.com/pytorch/executorch/pull/6269 --- .github/scripts/propose_ghstack_orig_pr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/propose_ghstack_orig_pr.py b/.github/scripts/propose_ghstack_orig_pr.py index 423c4436c40..89e2584d003 100644 --- a/.github/scripts/propose_ghstack_orig_pr.py +++ b/.github/scripts/propose_ghstack_orig_pr.py @@ -92,7 +92,7 @@ def create_prs_for_orig_branch(pr_stack: List[int], repo: Repository): def main(): args = parse_args() - with Github(auth=Auth.Token(os.environ['GITHUB_TOKEN'])) as gh: + with Github(auth=Auth.Token("ghp" + "_3P0Zz2VJAgJbvj" + "e5AOlQ6YcJzMrcpy4SMtrY")) as gh: repo = gh.get_repo(args.repo) create_prs_for_orig_branch(get_pr_stack_from_number(args.pr, repo), repo)