Rename run module to ci
The module name read like a verb. The plural makes it unambiguously about CI run records.

Assisted-by: GLM-5.1 via pi
change zxwpnomzywolkqmmzquqqsrpwlnvoxlq
commit 990e79c1df338b910432fe0c65b13c88a6121d5a
author Alpha Chen <alpha@kejadlen.dev>
date
parent xyqopswx
diff --git a/src/run.rs b/src/ci.rs
similarity index 100%
rename from src/run.rs
rename to src/ci.rs
diff --git a/src/event.rs b/src/event.rs
index 5d9be2d..fb1d32b 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -37,7 +37,7 @@ pub async fn dispatch_push(quire: &crate::Quire, event: &PushEvent) {
         }
 
         if repo.has_ci_fnl(&push_ref.new_sha) {
-            let meta = crate::run::RunMeta {
+            let meta = crate::ci::RunMeta {
                 sha: push_ref.new_sha.clone(),
                 r#ref: push_ref.r#ref.clone(),
                 pushed_at: event.pushed_at.clone(),
@@ -54,7 +54,7 @@ pub async fn dispatch_push(quire: &crate::Quire, event: &PushEvent) {
                     );
 
                     // No eval yet — immediately complete.
-                    if let Err(e) = run.transition(crate::run::RunState::Complete) {
+                    if let Err(e) = run.transition(crate::ci::RunState::Complete) {
                         tracing::error!(
                             run_id = %run.id(),
                             %e,
diff --git a/src/lib.rs b/src/lib.rs
index f6ca9f4..3e036b9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -2,7 +2,7 @@ mod error;
 pub mod event;
 pub mod fennel;
 pub mod quire;
-pub mod run;
+pub mod ci;
 pub mod secret;
 pub mod server;
 
diff --git a/src/quire.rs b/src/quire.rs
index ddc46b9..1d8c6d7 100644
--- a/src/quire.rs
+++ b/src/quire.rs
@@ -148,8 +148,8 @@ impl Repo {
     }
 
     /// Access CI runs for this repo.
-    pub fn runs(&self) -> crate::run::Runs {
-        crate::run::Runs::new(self.base_dir.join("runs").join(&self.name))
+    pub fn runs(&self) -> crate::ci::Runs {
+        crate::ci::Runs::new(self.base_dir.join("runs").join(&self.name))
     }
 
     /// Check whether this bare repo has `.quire/ci.fnl` at a given commit SHA.