• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FlexMeasures / flexmeasures / 29319375371
81%

Build:
DEFAULT BRANCH: main
Ran 14 Jul 2026 09:06AM UTC
Jobs 1
Files 168
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Jul 2026 08:48AM UTC coverage: 81.482%. Remained the same
29319375371

push

github

web-flow
Guard the shared checkout: block branch-switching git commands outside a worktree (#2307)

* Add worktree-guard hook to block branch mutation in shared primary checkout

Multiple Claude Code agents share the primary FlexMeasures checkout. A
session running git checkout/merge there switches the branch out from
under other agents and litters the tree with merge leftovers. Add a
blocking PreToolUse hook that blocks branch/worktree-mutating git
commands (checkout, switch, merge, rebase, reset, cherry-pick, stash)
when run in the primary checkout, while allowing them in linked git
worktrees. Read-only git commands and file-only 'git checkout -- <path>'
restores remain allowed everywhere. Documents the same rule in AGENTS.md.

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* Fix malformed YAML in the jobs endpoint docstring (broken on main)

The docstring added in #2280 indents the 'num-beliefs' continuation lines
and 'nullable: true' one space short, which breaks the YAML block scalar.
apispec then fails to document /api/v3_0/jobs/<uuid>, so the
generate-openapi-specs pre-commit hook exits 1 and blocks every commit in
the repo. Re-indent to match the surrounding block and regenerate the
specs (114 -> 115 endpoints documented).

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* Make worktree-guard target-aware: handle 'git -C <path>' and unresolvable paths

The guard previously judged every command against the directory the hook
itself runs in. But a PreToolUse hook runs in the project dir, not the Bash
tool's persistent cwd, so 'git -C <linked-worktree> switch main' -- the
idiomatic, safe way to drive another worktree without cd-ing -- was wrongly
blocked, pushing agents back toward cd-ing into the shared checkout.

Now resolve the command's actual target: an explicit '-C <path>' or
'--git-dir=<path>', else a 'cd' in the same command, else the hook's cwd;
then run the git-dir vs git-common-dir comparison against that. The verb
regex also tolerates glo... (continued)

14538 of 17842 relevant lines covered (81.48%)

0.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29319375371.1 14 Jul 2026 09:06AM UTC 168
81.48
GitHub Action Run
Source Files on build 29319375371
  • Tree
  • List 168
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29319375371
  • 8c414da8 on github
  • Prev Build on main (#29276017184)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc