feat(server): add stub for forge::get_commit_status
This commit is contained in:
parent
ca30d1bd11
commit
a7a3f8a67b
1 changed files with 11 additions and 0 deletions
|
@ -65,6 +65,17 @@ struct Commit {
|
||||||
sha: String,
|
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)]
|
#[derive(Debug, serde::Deserialize)]
|
||||||
pub struct CombinedStatus {
|
pub struct CombinedStatus {
|
||||||
pub state: CommitStatusState,
|
pub state: CommitStatusState,
|
||||||
|
|
Loading…
Reference in a new issue