Fix single plugin update command parameter and enable GitHub integration
This commit is contained in:
parent
83be780243
commit
43dafb57da
@ -34,9 +34,10 @@
|
||||
- [x] Version compatibility checking
|
||||
- [x] Fix version number display issues
|
||||
- [ ] Handle rate limit issues
|
||||
- [ ] Implement GitHub releases crawler
|
||||
- [x] Implement GitHub releases crawler
|
||||
- [x] Basic implementation
|
||||
- [ ] Complete API authentication
|
||||
- [x] Enable GitHub search functionality
|
||||
- [ ] Add GitHub API authentication for higher rate limits
|
||||
|
||||
## Update Management (Mostly Completed)
|
||||
- [x] Build update detection system (Basic logic)
|
||||
@ -53,8 +54,8 @@
|
||||
- [x] Complete Modrinth integration
|
||||
- [x] Fix incorrect plugin matching issues
|
||||
- [x] Improve matching algorithm to reduce false positives
|
||||
- [ ] Complete GitHub integration
|
||||
- [ ] Add GitHub API authentication (optional token)
|
||||
- [x] Complete GitHub integration
|
||||
- [ ] Add GitHub API authentication for higher rate limits (environment variable support exists)
|
||||
- [ ] Investigate SpigotMC 403 errors (potentially add headers/delay)
|
||||
- [x] Implement changelog extraction
|
||||
- [x] Create plugin backup functionality
|
||||
|
@ -103,8 +103,15 @@ pub async fn lib_search_plugins_in_repositories(
|
||||
tasks.push(task);
|
||||
},
|
||||
RepositorySource::GitHub => {
|
||||
// Placeholder - will cause errors until GitHubCrawler implements Repository
|
||||
eprintln!("GitHub search not fully implemented yet.");
|
||||
let crawler = crawlers::GitHubCrawler::new();
|
||||
let query_owned = query.to_string();
|
||||
let task = async move {
|
||||
match crawler.search(&query_owned).await {
|
||||
Ok(repo_results) => Ok((crawler.get_repository_name(), repo_results)),
|
||||
Err(e) => Err((crawler.get_repository_name(), e.to_string()))
|
||||
}
|
||||
}.boxed(); // Box the future
|
||||
tasks.push(task);
|
||||
},
|
||||
_ => {
|
||||
eprintln!("Repository {:?} not supported for search", repo);
|
||||
|
@ -606,7 +606,7 @@ function App() {
|
||||
};
|
||||
|
||||
await invoke("check_single_plugin_update_command", {
|
||||
pluginToCheck: pluginToSend,
|
||||
plugin: pluginToSend,
|
||||
repositoriesToCheck,
|
||||
});
|
||||
} catch (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user