| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR fixes a bug where the hasActionsWorkflows function would throw an exception when the .github/workflows folder doesn't exist. The fix uses the throwIfNoEntry: false option in fs.lstatSync to return undefined instead of throwing when the path doesn't exist.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/config-utils.ts | Fixed hasActionsWorkflows to handle missing workflows directory without throwing |
| src/config-utils.test.ts | Added test to verify the function handles missing workflows folder gracefully |
| lib/init-action.js | Generated JavaScript file (not reviewed per guidelines) |
Sorry, something went wrong.
There was a problem hiding this comment.
merge
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This problem was introduced in #3009 since lstatSync throws an exception by default if the filesystem object doesn't exist.
We likely didn't come across this because it requires both of the following conditions to hold:
Risk assessment
For internal use only. Please select the risk level of this change:
Merge / deployment checklist