- 
                Notifications
    
You must be signed in to change notification settings  - Fork 168
 
Add support for updating AL-Go files from custom templates #1985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… between files from original template and custom template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for custom AL-Go files through a new customALGoFiles setting, enabling users to manage additional files from custom templates via the "Update AL-Go System Files" workflow.
- Introduced 
customALGoFilessetting withfilesToUpdateandfilesToExcludeproperties - Refactored file update logic to use a more flexible file resolution system
 - Added comprehensive test coverage for the new functionality
 
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description | 
|---|---|
| e2eTests/scenarios/CustomTemplate/runtest.ps1 | Fixed typo in comment; added E2E test scenarios for custom workflow and file propagation | 
| Tests/ReadSettings.Test.ps1 | Added -Depth 99 parameter to ConvertTo-Json calls to prevent truncation of nested settings | 
| Tests/CheckForUpdates.Action.Test.ps1 | Added spacing fixes and comprehensive unit tests for new file resolution functions | 
| Scenarios/settings.md | Added documentation for the new customALGoFiles setting with a typo in property name | 
| Scenarios/CustomizingALGoForGitHub.md | Added detailed documentation section explaining custom template file usage | 
| RELEASENOTES.md | Added release notes entry for the new feature | 
| Actions/CheckForUpdates/CheckForUpdates.ps1 | Refactored to use new GetFilesToUpdate function for cleaner file update logic | 
| Actions/CheckForUpdates/CheckForUpdates.HelperFunctions.ps1 | Added new functions for file resolution and file-to-update determination | 
| Actions/.Modules/settings.schema.json | Added JSON schema definition for customALGoFiles setting | 
| Actions/.Modules/ReadSettings.psm1 | Introduced filename constants and added default customALGoFiles setting structure | 
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
❔What, Why & How
Add support for updating AL-Go files for custom templates
Related to issue: #1931
✅ Checklist