Skip to content

Conversation

@ludeeus
Copy link
Member

@ludeeus ludeeus commented Nov 2, 2025

The entire repository_object is deprecated in aiogithubapi; this is a small step in getting rid of it.

Copilot AI review requested due to automatic review settings November 2, 2025 13:29
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 PR refactors the code to consolidate duplicate logic for fetching repository commit information. The main change replaces direct calls to repository_object.set_last_commit() with a new method async_set_last_commits() that uses the GitHub REST API to fetch branch information.

  • Introduces a new method async_set_last_commits() that fetches the last commit SHA from the repository's default branch
  • Replaces two instances of duplicated commit-fetching code with calls to the new method
  • Changes the implementation from using repository_object.set_last_commit() to directly calling the GitHub API

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants