Skip to content

Commit f94f69d

Browse files
committed
print head refs for all PRs
1 parent cf08115 commit f94f69d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/automated_ingestion/eessi_task.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,11 @@ def _find_pr_for_branch(self, branch_name: str) -> Optional[PullRequest]:
873873
head_ref = f"{self.git_repo.owner.login}:{branch_name}"
874874
log_message(LoggingScope.TASK_OPS, 'INFO', "searching for PRs with head_ref: '%s'", head_ref)
875875
filter_prs = [16, 17, 18, 19, 20, 21, 22] # TODO: remove this once the PR is merged
876+
877+
all_prs = list(self.git_repo.get_pulls(state='all'))
878+
for pr in all_prs:
879+
log_message(LoggingScope.TASK_OPS, 'INFO', "PR #{pr.number}: {pr.head.ref}")
880+
876881
prs = [pr for pr in list(self.git_repo.get_pulls(state='all', head=head_ref))
877882
if pr.number not in filter_prs]
878883
log_message(LoggingScope.TASK_OPS, 'INFO', "number of PRs found: %d", len(prs))

0 commit comments

Comments
 (0)