feat(server): add stub for forge::forgejo::get_commit_status
All checks were successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful

This commit is contained in:
Paul Campbell 2024-04-09 22:45:39 +01:00
parent ca30d1bd11
commit a7a3f8a67b

View file

@ -65,6 +65,17 @@ struct Commit {
sha: String,
}
#[allow(dead_code)]
pub async fn get_commit_status(
_next: forge::Commit,
_repo_details: crate::server::config::RepoDetails,
_net: network::Network,
) -> bool {
// TODO: (#13) check statuses for next head - if ok, advance main to next and reassess
// https://{hostname}/api/v1/repos/{path}/commits/{commit}/status?token={token}
false
}
#[derive(Debug, serde::Deserialize)]
pub struct CombinedStatus {
pub state: CommitStatusState,