Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactor last commit retrieval to use a non deprecated method#4898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ludeeus wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromchange-retrival-of-commit

Conversation

@ludeeus
Copy link
Member

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

CopilotAI review requested due to automatic review settingsNovember 2, 2025 13:29
Copy link
Contributor

CopilotAI 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 torepository_object.set_last_commit() with a new methodasync_set_last_commits() that uses the GitHub REST API to fetch branch information.

  • Introduces a new methodasync_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 usingrepository_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 freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@coderabbitaicoderabbitai[bot]coderabbitai[bot] approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@ludeeus

[8]ページ先頭

©2009-2025 Movatter.jp