| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR changes the error type for "init not called" scenarios from a generic Error to a more specific ConfigurationError. This affects three action files that check if the config file exists before proceeding.
Copilot reviewed 6 out of 9 changed files in this pull request and generated no comments.
Show a summary per file| File | Description |
|---|---|
| src/resolve-environment-action.ts | Imports ConfigurationError and uses it for config not found error |
| src/autobuild-action.ts | Imports ConfigurationError and uses it for config not found error |
| src/analyze-action.ts | Uses util.ConfigurationError for config not found error |
| lib/resolve-environment-action.js | Generated JavaScript code reflecting TypeScript changes |
| lib/autobuild-action.js | Generated JavaScript code reflecting TypeScript changes |
| lib/analyze-action.js | Generated JavaScript code reflecting TypeScript changes |
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. Would it make sense to add this logic to a wrapper around getConfig? E.g. getRequiredConfig or something, since it's re-used in a few places?
Sorry, something went wrong.
|
Agreed, but I'll leave that as future work. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This error happens when analyze, autobuild, or resolve-environment is called before init.
Risk assessment
For internal use only. Please select the risk level of this change:
Merge / deployment checklist