Add support for conditional settings based on GitHub event triggers (#2238)
### ❔What, Why & How <!-- Include description of the changes that will help reviewers in their task --> This pull request adds support for using workflow trigger events as a condition in `ConditionalSettings`, allowing you to apply settings based on the GitHub Actions event type (e.g., `push`, `pull_request`, `schedule`, `workflow_dispatch`). Documentation and tests are updated to reflect this new feature. **Conditional settings enhancements:** * Added a new `triggers` condition to `ConditionalSettings`, enabling settings to be applied based on the value of `GITHUB_EVENT_NAME` (such as `push`, `pull_request`, `schedule`, `workflow_dispatch`) **Documentation updates:** * Updated `settings.md` and `RELEASENOTES.md` to document the new `triggers` condition, including usage examples. **Test coverage:** * Extended tests in `ReadSettings.Test.ps1` to verify correct behavior when using the new `triggers` condition in `ConditionalSettings`. Related to issue: https://github.com/microsoft/AL-Go/discussions/2207 ### ✅ Checklist - [x] Add tests (E2E, unit tests) - [x] Update RELEASENOTES.md - [x] Update documentation (e.g. for new settings or scenarios) - [ ] Add telemetry <!-- Include more checklist entries, if needed --> --------- Co-authored-by: Copilot <copilot@github.com> Co-authored-by: Maria Zhelezova <43066499+mazhelez@users.noreply.github.com>
C
Chris Blank committed
2c60bf2b8a164b0c0a956088ea850b7d1d0e27cf
Parent: a53b9be
Committed by GitHub <noreply@github.com>
on 5/8/2026, 10:42:05 AM