EntryScripts#entries classifies by absolute path, so a root under a hooks directory marks every script as a hook #1427
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#1427
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Extractor::EntryScripts#entries(shipped in #1405) decides kindhookbypath.include?("/hooks/")on the absolute path. A project root such as/home/x/hooks/myprojmakes everybin/*script ahook. The kind must come from the path relative to the root:bin/isbin,hooks/ishook.Reproduce
with
/tmp/hooks/demo/bin/runa Ruby script. Output:["hook"]; expected["bin"].Approach
Classify the kind from the path relative to
@root.Required work:
@root— check: absentinclude?("/hooks/")inplugins/os-sdlc/lib/os_sdlc/system_model/extractor/entry_scripts.rbAcceptance criteria
/hooks/and a Ruby script underbin/, when entries are read, then its kind isbin.hooks/, when entries are read, then its kind ishook.Owner sketch
Origin
VERDICT: CREATE