Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

Run the guards on every pull request, with no path filter

Guido Boyke0b08303e8040
diff --git a/.github/workflows/guards.yml b/.github/workflows/guards.yml
index 73c161f..3fada00 100644
--- a/.github/workflows/guards.yml
+++ b/.github/workflows/guards.yml
@@ -1,15 +1,11 @@
# Guard net: runs the curated guard/architecture specs on every PR.
#
-# What it does NOT run on, because the minutes are billed (private repository,
-# about 21 job minutes per run, 28.09.2026; about 22 since the `lala` job of
-# 03.10.2026, every job bills at least one minute):
+# It takes no path filter: branch protection can only require a check that reports
+# on every PR. A run skipped by a filter stays pending forever and blocks the PR.
+#
+# What it does NOT run on:
# * a push to main: a merge re-checked the code its PR had just checked green.
# workflow_dispatch runs it by hand, on main or any branch.
-# * a PR that only touches Markdown in the repository root (README, CLAUDE.md,
-# CONTRIBUTING, ...): no guard reads those. Only the root: the guards DO scan
-# Markdown under app/ (the CLAUDE.md maps, app/changelog), hence '*.md' and not
-# '**.md'. ⚠️ Once this check is required by branch protection, a skipped run
-# stays pending forever and blocks such a PR; drop the filter then.
# * a superseded commit: a new push to the same PR cancels the run in progress.
#
# Deliberately NOT the full suite (it carries known pre-existing drift failures —
@@ -25,9 +21,6 @@ name: Guards
on:
pull_request:
- paths-ignore:
- - '*.md'
- - 'LICENSE'
workflow_dispatch:
concurrency:
diff --git a/.github/workflows/leaks.yml b/.github/workflows/leaks.yml
index cbe577e..05b4724 100644
--- a/.github/workflows/leaks.yml
+++ b/.github/workflows/leaks.yml
@@ -1,9 +1,9 @@
# Leak net: secrets and what only the maintainers know, on EVERY pull request.
#
-# Its own workflow on purpose: guards.yml skips a pull request that touches only
-# Markdown in the root, and a pasted login block lands in exactly such a file
-# (the one found before the launch was in CLAUDE.md). This one has no path
-# filter, needs no database and no bundle.
+# Its own workflow on purpose: it runs on a push to main as well, needs no
+# database and no bundle, and a pasted login block lands in any file, a Markdown
+# one in the root too (the one found before the launch was in CLAUDE.md). It has
+# no path filter.
#
# Everything a pull request makes public, not only its end state: in a public
# repository a key committed and removed again stays in the history.
diff --git a/CLAUDE.md b/CLAUDE.md
index d5d7be7..d92c365 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -57,9 +57,9 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
Besitzer der Auflösung ist `LocalChrome` in `spec/support/capybara.rb`, Guard:
`spec/architecture/chrome_driver_binary_guard_spec.rb`. Auf dem Mac greift nichts davon, dort
bleibt Selenium Manager zuständig.
-* **CI**: `.github/workflows/guards.yml` runs six jobs on PRs (not on a push to main,
- not for a PR touching only Markdown in the repository root, and a new push cancels
- the superseded run; by hand via `workflow_dispatch`, reasons in the workflow header):
+* **CI**: `.github/workflows/guards.yml` runs six jobs on every PR, with no path filter
+ (not on a push to main, and a new push cancels the superseded run; by hand via
+ `workflow_dispatch`, reasons in the workflow header):
`guards` (curated specs plus `browser_database_cleanup_spec.rb`,
`mobile_ticket_navigation_spec.rb`,
`mobile_assistant_layout_spec.rb` and `mobile_shell_regressions_spec.rb`),
@@ -97,9 +97,8 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
servers' values unchanged (pinned by `spec/config/instance_settings_spec.rb`).
⚠️ **The compiled CSS carries the asset host.** The image precompiles with `ASSET_HOST=` set
and empty; without it every instance would load its fonts from lalabase.com.
-* **Leaks** (`.github/workflows/leaks.yml`): a workflow of its own on **every** PR, also one
- touching only root Markdown (guards.yml skips those, and a pasted login lands in exactly such a
- file), and on every push to main. One job, `leaks`, over everything the PR makes public, not
+* **Leaks** (`.github/workflows/leaks.yml`): a workflow of its own on **every** PR and on
+ every push to main. One job, `leaks`, over everything the PR makes public, not
only its end state: every commit (merges by their diff against main, so a conflict resolution
counts), every commit message, who wrote and committed it, every name a commit adds
(binaries, links, renames), the PR's branch name, title and body (GitHub writes them into the
@@ -1068,8 +1067,6 @@ ends that, and a `bundle update` can bring one without anybody noticing.
`License:` and copyright line in `THIRD_PARTY_NOTICES.txt`, and the guard reads the
`License:` line: a GPL file with a tidy notice is still red. A directory `Path:` may not lie
above another entry (`Path: vendor/` would cover everything to come).
-* The file is `.txt` on purpose: the CI skips a pull request that touches only `*.md` in the
- repository root, and the guard reads this file.
* ⚠️ **Not covered**, because no lockfile and no file name shows it:
* what a gem carries inside itself: the Rust crates compiled into `commonmarker`, native
libraries (the macOS build of `nokogiri` ships LGPL `libiconv`, the Linux build does
diff --git a/spec/architecture/changelog_guard_spec.rb b/spec/architecture/changelog_guard_spec.rb
index 4d26cc7..12f0291 100644
--- a/spec/architecture/changelog_guard_spec.rb
+++ b/spec/architecture/changelog_guard_spec.rb
@@ -8,8 +8,8 @@ require 'rails_helper'
# would be invisible to the script: `publish` would find no notes, and
# `prepare` would put the next release in the wrong place.
#
-# The rules are Lalabase::Release.problems, which publish asks too (a pull
-# request touching only CHANGELOG.md skips guards.yml). Until the first release
+# The rules are Lalabase::Release.problems, which publish asks too, at the
+# moment it reads the notes. Until the first release
# the file has no release to check, so the rules also run against a broken
# sample they must catch: green here is not green in a vacuum.
RSpec.describe 'CHANGELOG.md', type: :model do
diff --git a/spec/architecture/third_party_license_guard_spec.rb b/spec/architecture/third_party_license_guard_spec.rb
index 23e9a38..24f5e18 100644
--- a/spec/architecture/third_party_license_guard_spec.rb
+++ b/spec/architecture/third_party_license_guard_spec.rb
@@ -98,8 +98,6 @@ module ThirdPartyLicenseGuard
LICENSE_HEADER = /@license|Copyright \(c\)|Licensed under|Released under/i
HEADER_BYTES = 1500
- # Plain text on purpose: the CI skips a pull request that touches only `*.md` in the
- # repository root, and this guard reads the file.
NOTICES = 'THIRD_PARTY_NOTICES.txt'
module_function
diff --git a/spec/lib/lalabase/release_script_spec.rb b/spec/lib/lalabase/release_script_spec.rb
index 54212cc..ca53d4d 100644
--- a/spec/lib/lalabase/release_script_spec.rb
+++ b/spec/lib/lalabase/release_script_spec.rb
@@ -353,7 +353,7 @@ RSpec.describe 'script/release' do
expect(out).to include('Unreleased is not empty')
end
- # Review 2, point 3: the notes pull request touches only root Markdown, which guards.yml skips.
+ # Review 2, point 3: publish reads the notes, so it asks the rules itself.
it 'checks the shape of CHANGELOG.md itself' do
changelog_pull_request(9) { |path| File.write(path, File.read(path).sub('## [2026.10.0]', "## Notes\n\n## [2026.10.0]")) }