Skip to content

fix: remove malformed workflow and fix hooks.json regex escaping#13

Merged
pangerlkr merged 2 commits intomainfrom
claude/fix-all-workflows
Feb 25, 2026
Merged

fix: remove malformed workflow and fix hooks.json regex escaping#13
pangerlkr merged 2 commits intomainfrom
claude/fix-all-workflows

Conversation

@Claude
Copy link
Copy Markdown

@Claude Claude AI commented Feb 25, 2026

Two workflow failures: a malformed workflow file causing parse errors and invalid regex in hooks validation.

Changes

  • Removed .github/workflows/copilot-setup-steps.yml: File contained only GitHub Copilot action parameters without workflow structure (missing name, on, jobs). Appears to be accidentally committed boilerplate.

  • Fixed regex escaping in hooks/hooks.json:40: Character class pattern for path separators had incorrect escape sequence. Changed [\\/\\\\][/\\\\\\\\] to properly match / or \ after JSON and JavaScript string unescaping.

The regex issue manifested as:

ERROR: PreToolUse[3].hooks[0] has invalid inline JS: 
Invalid regular expression: /\.claude[\/\]plans[\/\]/: Unmatched ')'

All validation scripts (agents, hooks, commands, skills, rules) now pass.

@Claude
Copy link
Copy Markdown
Author

Claude AI commented Feb 25, 2026

@pangerlkr Unfortunately, I hit an error while trying to use the custom Copilot setup steps configured for this repository and had to close this PR. The error I am seeing is:

no valid jobs found in copilot-setup-steps.yaml

Once you or someone with the necessary access fixes the problem, please unassign and then reassign issue #0 to me and I'll retry. Thanks!

Co-authored-by: pangerlkr <73515951+pangerlkr@users.noreply.github.com>
@Claude Claude AI changed the title [WIP] Fix failing workflows in the project fix: remove malformed workflow and fix hooks.json regex escaping Feb 25, 2026
@Claude Claude AI requested a review from pangerlkr February 25, 2026 14:28
@pangerlkr pangerlkr marked this pull request as ready for review February 25, 2026 14:28
Copilot AI review requested due to automatic review settings February 25, 2026 14:28
@pangerlkr pangerlkr merged commit 1cda154 into main Feb 25, 2026
38 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes two CI/workflow validation failures by removing an invalid GitHub Actions workflow file and correcting regex escaping inside an inline node -e hook command.

Changes:

  • Removed malformed .github/workflows/copilot-setup-steps.yml that lacked required workflow keys and caused workflow parse/validation errors.
  • Fixed path-separator character class escaping in hooks/hooks.json inline JS so the regex compiles correctly after JSON + validator unescaping.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
hooks/hooks.json Adjusts backslash escaping in inline JS regexes to avoid invalid regex syntax during hooks validation.
.github/workflows/copilot-setup-steps.yml Removes a non-workflow YAML file from the workflows directory to prevent GitHub Actions parse/validation failures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants