🚀 [Feature]: Release-triggering file patterns now configurable via workflow input#301
Conversation
No Significant Changes DetectedThis PR does not contain changes to files that would trigger a new release:
Build, test, and publish stages will be skipped for this PR. If you believe this is incorrect, please verify that your changes are in the correct locations. |
1 similar comment
No Significant Changes DetectedThis PR does not contain changes to files that would trigger a new release:
Build, test, and publish stages will be skipped for this PR. If you believe this is incorrect, please verify that your changes are in the correct locations. |
There was a problem hiding this comment.
Pull request overview
Adds support for configuring which file changes are considered “important” (and therefore trigger build/test/publish) by introducing an ImportantFilePatterns workflow input and documenting the new behavior.
Changes:
- Added
ImportantFilePatternsas aworkflow_callinput in the main reusable workflow and passed it through to theGet-Settingsreusable workflow. - Updated
Get-Settingsto passImportantFilePatternsintoPSModule/Get-PSModuleSettingsand bumped that action tov1.5.0(pinned SHA). - Updated
README.mdto document the new input, defaults, and configuration via.github/PSModule.yml.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| README.md | Documents ImportantFilePatterns defaults and how to override via settings file or workflow input |
| .github/workflows/workflow.yml | Exposes ImportantFilePatterns as a reusable workflow input and forwards it to Get-Settings |
| .github/workflows/Get-Settings.yml | Forwards ImportantFilePatterns to PSModule/Get-PSModuleSettings and bumps action version |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Agent-Logs-Url: https://github.com/PSModule/Process-PSModule/sessions/c8b1efd7-a1ef-4adb-8e15-04d7d96e26a7 Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Copilot apply changes based on the comments in this thread |
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
…isable behavior Agent-Logs-Url: https://github.com/PSModule/Process-PSModule/sessions/088ca732-ee58-4c14-988d-37dedbcef078 Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Applied both changes in commit
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Agent-Logs-Url: https://github.com/PSModule/Process-PSModule/sessions/23b01067-5f4a-44e0-8b47-df4fa5abd9d0 Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… workflow input Agent-Logs-Url: https://github.com/PSModule/Process-PSModule/sessions/125e114f-636a-4271-8f37-f4ee9888f98e Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
Repositories can now control which file changes trigger build, test, and publish stages by configuring the
ImportantFilePatternsworkflow input or settings file property. The default patterns (^src/and^README\.md$) remain unchanged for backward compatibility.New: Configurable release-triggering file patterns
The
ImportantFilePatternsinput is now available on theworkflow.ymlandGet-Settings.ymlreusable workflows. Pass a newline-separated list of regex patterns to override the defaults:To disable file-change triggering entirely, pass an empty string via the workflow input or set an empty list in
.github/PSModule.yml:Resolution order: settings file → workflow input → workflow input default values.
Changed: PR comment reflects configured patterns
The automated comment posted on PRs when no important files are changed now dynamically lists the configured patterns instead of a hardcoded table.
Technical Details
ImportantFilePatternsinput (type:string, newline-separated) to both.github/workflows/workflow.ymland.github/workflows/Get-Settings.ymlwith explicit defaults (^src/and^README\.md$).Get-PSModuleSettingsaction reference fromv1.4.4tov1.5.0which implements the settings file and action input support for this feature.ImportantFilePatternsinput through the reusable workflow chain to theGet-PSModuleSettingsaction step.