Skip to content

fix: Exclude .md files from fleet resource scope resolution#29

Merged
TsekNet merged 1 commit intomainfrom
scope-markdown
Mar 21, 2026
Merged

fix: Exclude .md files from fleet resource scope resolution#29
TsekNet merged 1 commit intomainfrom
scope-markdown

Conversation

@TsekNet
Copy link
Copy Markdown
Owner

@TsekNet TsekNet commented Mar 21, 2026

Summary

  • .md files under resource dirs (policies/README.md, labels/README.md, etc.) were treated as fleet config by scope resolution
  • labels/README.md incorrectly set IncludeGlobal = true, triggering a full API diff
  • policies/README.md etc. matched isFleetResource(), triggering team lookups
  • Docs-only MRs showed unrelated config drift (ABM/VPP field changes)

Fix

Exclude .md files from isFleetResource() and the labels/ global trigger in ResolveScope.

Test plan

  • New test: labels/README.md does not set IncludeGlobal
  • New test: README under resource dir ignored
  • New isFleetResource cases for */README.md (all 5 resource dirs)
  • Full test suite passes

Ref #28

Markdown files (READMEs, docs) under resource dirs like policies/,
labels/, scripts/ were incorrectly treated as fleet config, causing
docs-only MRs to trigger full API diffs with unrelated changes.

Ref #28
@TsekNet TsekNet merged commit e3ce2a7 into main Mar 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant