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] Version compatibility checking
|
||||||
- [x] Fix version number display issues
|
- [x] Fix version number display issues
|
||||||
- [ ] Handle rate limit issues
|
- [ ] Handle rate limit issues
|
||||||
- [ ] Implement GitHub releases crawler
|
- [x] Implement GitHub releases crawler
|
||||||
- [x] Basic implementation
|
- [x] Basic implementation
|
||||||
- [ ] Complete API authentication
|
- [x] Enable GitHub search functionality
|
||||||
|
- [ ] Add GitHub API authentication for higher rate limits
|
||||||
|
|
||||||
## Update Management (Mostly Completed)
|
## Update Management (Mostly Completed)
|
||||||
- [x] Build update detection system (Basic logic)
|
- [x] Build update detection system (Basic logic)
|
||||||
@ -53,8 +54,8 @@
|
|||||||
- [x] Complete Modrinth integration
|
- [x] Complete Modrinth integration
|
||||||
- [x] Fix incorrect plugin matching issues
|
- [x] Fix incorrect plugin matching issues
|
||||||
- [x] Improve matching algorithm to reduce false positives
|
- [x] Improve matching algorithm to reduce false positives
|
||||||
- [ ] Complete GitHub integration
|
- [x] Complete GitHub integration
|
||||||
- [ ] Add GitHub API authentication (optional token)
|
- [ ] Add GitHub API authentication for higher rate limits (environment variable support exists)
|
||||||
- [ ] Investigate SpigotMC 403 errors (potentially add headers/delay)
|
- [ ] Investigate SpigotMC 403 errors (potentially add headers/delay)
|
||||||
- [x] Implement changelog extraction
|
- [x] Implement changelog extraction
|
||||||
- [x] Create plugin backup functionality
|
- [x] Create plugin backup functionality
|
||||||
|
@ -103,8 +103,15 @@ pub async fn lib_search_plugins_in_repositories(
|
|||||||
tasks.push(task);
|
tasks.push(task);
|
||||||
},
|
},
|
||||||
RepositorySource::GitHub => {
|
RepositorySource::GitHub => {
|
||||||
// Placeholder - will cause errors until GitHubCrawler implements Repository
|
let crawler = crawlers::GitHubCrawler::new();
|
||||||
eprintln!("GitHub search not fully implemented yet.");
|
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);
|
eprintln!("Repository {:?} not supported for search", repo);
|
||||||
|
@ -606,7 +606,7 @@ function App() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
await invoke("check_single_plugin_update_command", {
|
await invoke("check_single_plugin_update_command", {
|
||||||
pluginToCheck: pluginToSend,
|
plugin: pluginToSend,
|
||||||
repositoriesToCheck,
|
repositoriesToCheck,
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user