-
Notifications
You must be signed in to change notification settings - Fork 0
feat: detect commit update #6
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 implements GitHub commit update detection functionality by adding new GitHub API integration capabilities and a background monitoring task.
- Adds GitHub API client integration for fetching commit data
- Implements periodic commit monitoring to detect repository updates
- Refactors configuration structure to support GitHub API operations
Reviewed Changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| controller/src/main.rs | Adds background task for periodic commit monitoring and updates main function structure |
| controller/src/github_access.rs | New module implementing GitHub API client for fetching commit information |
| controller/src/config.rs | Updates configuration structure to support GitHub API parameters and fixes test data |
| controller/Cargo.toml | Adds required dependencies for HTTP client, JSON handling, and environment variable loading |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
AsPulse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
とりあえずcargo fmtかけましょう (本来Ciで検知すべきなんだけどね……)
他の部分はあとで見るのでちょいまちください
githubのAPIいじってたらgithubにアクセスするだけのつもりが更新検知まで実装できた