Skip to content

Commit 1cda154

Browse files
authored
Merge pull request #13 from pangerlkr/claude/fix-all-workflows
fix: remove malformed workflow and fix hooks.json regex escaping
2 parents 3d63fd3 + 264b44f commit 1cda154

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

hooks/hooks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"hooks": [
3838
{
3939
"type": "command",
40-
"command": "node -e \"let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const i=JSON.parse(d);const p=i.tool_input?.file_path||'';if(/\\.(md|txt)$/.test(p)&&!/(README|CLAUDE|AGENTS|CONTRIBUTING|CHANGELOG|LICENSE|SKILL)\\.md$/i.test(p)&&!/\\.claude[\\/\\\\]plans[\\/\\\\]/.test(p)&&!/(^|[\\/\\\\])(docs|skills)[\\/\\\\]/.test(p)){console.error('[Hook] WARNING: Non-standard documentation file detected');console.error('[Hook] File: '+p);console.error('[Hook] Consider consolidating into README.md or docs/ directory')}}catch{}console.log(d)})\""
40+
"command": "node -e \"let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const i=JSON.parse(d);const p=i.tool_input?.file_path||'';if(/\\.(md|txt)$/.test(p)&&!/(README|CLAUDE|AGENTS|CONTRIBUTING|CHANGELOG|LICENSE|SKILL)\\.md$/i.test(p)&&!/\\.claude[/\\\\\\\\]plans[/\\\\\\\\]/.test(p)&&!/(^|[/\\\\\\\\])(docs|skills)[/\\\\\\\\]/.test(p)){console.error('[Hook] WARNING: Non-standard documentation file detected');console.error('[Hook] File: '+p);console.error('[Hook] Consider consolidating into README.md or docs/ directory')}}catch{}console.log(d)})\""
4141
}
4242
],
4343
"description": "Doc file warning: warn about non-standard documentation files (exit code 0; warns only)"

0 commit comments

Comments
 (0)