iterate.com / tasks

git clone https://git.iterate.com/repos/tasks

A README.md under todo/ is no task

The home repo keeps todo/README.md, which says how the folder is used.
The board would show it as a card.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

Misha Kaletsky, 2026-11-24 18:27 UTC · 6b2863c5c7284ada2565bfaca014782dcc6a6e69 · parent d2f5168

2 files changed

M public/tasks-model.js
@@ -89,9 +89,14 @@
   return whole.replace(/-+$/g, "");
 }
 
-/** Whether the board shows this file of the repo: markdown under the tasks folder. */
+/** Whether the board shows this file of the repo: markdown under the tasks folder. A README.md
+ *  there says how the folder is used, so it is no task. */
 export function isTaskPath(path) {
-  return path.startsWith(`${TASKS_DIR}/`) && /\.(?:md|markdown)$/i.test(path);
+  return (
+    path.startsWith(`${TASKS_DIR}/`) &&
+    /\.(?:md|markdown)$/i.test(path) &&
+    path.split("/").at(-1) !== "README.md"
+  );
 }
 
 // ── the frontmatter ──
M tasks-model.test.mjs
@@ -166,12 +166,15 @@
   assert.equal(newTask({ title: "x", folder: "../../Etc" }).path, "todo/etc/x.md");
 });
 
-test("only markdown under todo/ is a task", () => {
+test("only markdown under todo/ is a task, and a README.md there is none", () => {
   assert.equal(isTaskPath("todo/a.md"), true);
   assert.equal(isTaskPath("todo/deep/er/a.markdown"), true);
   assert.equal(isTaskPath("todo/proof.cjs"), false);
   assert.equal(isTaskPath("backlog/a.md"), false);
-  assert.equal(isTaskPath("apps/todo/README.md"), false);
+  assert.equal(isTaskPath("apps/todo/a.md"), false);
+  assert.equal(isTaskPath("todo/README.md"), false);
+  assert.equal(isTaskPath("todo/deep/README.md"), false);
+  assert.equal(isTaskPath("todo/readme-for-the-launch.md"), true);
 });
 
 test("the filter is every word, any of the tags, and a folder with those beneath it", () => {