Skip to content

Conversation

@redreceipt
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings July 30, 2025 20:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the repository tracking functionality to support repositories from different GitHub organizations by modifying the repo list format and query structure.

  • Updates repository entries from just names to full "owner/name" format
  • Adds "differential/crossroads-anywhere" to the tracked repositories
  • Refactors GraphQL query to accept both owner and name parameters instead of hardcoding "apollosproject"

continue
params = {"owner": owner, "name": name}
data = client.execute(repo_id_query, variable_values=params)
ids.append(data["repository"]["id"])
Copy link

Copilot AI Jul 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line will raise a KeyError if the repository is not found (e.g., if it's private or doesn't exist), since data["repository"] will be None. Consider adding a null check before accessing the id.

Suggested change
ids.append(data["repository"]["id"])
if data.get("repository") is not None:
ids.append(data["repository"]["id"])
else:
# Repository not found or inaccessible; skip this entry.
continue

Copilot uses AI. Check for mistakes.
@redreceipt redreceipt temporarily deployed to bug-board-crossroads-nqzlwqmyy July 30, 2025 20:40 Inactive
@redreceipt redreceipt merged commit c8f548a into main Jul 30, 2025
2 checks passed
@redreceipt redreceipt deleted the crossroads branch July 30, 2025 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants