use super::super::models::Run;
use super::super::PipelinesClient;
use crate::constants::ApiPath;
use crate::error::Result;
impl PipelinesClient<'_> {
pub async fn list_runs(&self, project: &str, id: i64) -> Result<Vec<Run>> {
self.http
.get(&ApiPath::pipeline_runs(project, id), &[])
.await
}
}