Skip to content

Commit 4707864

Browse files
committed
Fix docathon label sync repo lookup
1 parent de9427a commit 4707864

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/scripts/docathon-label-sync.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@
77

88
def main() -> None:
99
token = os.environ.get("GITHUB_TOKEN")
10-
11-
repo_owner = "pytorch"
12-
repo_name = "pytorch"
1310
pull_request_number = int(sys.argv[1])
1411

1512
g = Github(token)
16-
repo = g.get_repo(f"{repo_owner}/{repo_name}")
13+
repo = g.get_repo(os.environ.get("GITHUB_REPOSITORY", "pytorch/executorch"))
1714
pull_request = repo.get_pull(pull_request_number)
1815
pull_request_body = pull_request.body
1916
# PR without description

0 commit comments

Comments
 (0)