Skip to content

🚀 [Feature]: Release-triggering file patterns now configurable via workflow input - #301

Merged
Marius Storhaug (MariusStorhaug) merged 16 commits into
mainfrom
feature/configurable-important-file-patterns
Apr 11, 2026
Merged

🚀 [Feature]: Release-triggering file patterns now configurable via workflow input#301
Marius Storhaug (MariusStorhaug) merged 16 commits into
mainfrom
feature/configurable-important-file-patterns

Conversation

@MariusStorhaug

@MariusStorhaugMarius Storhaug (MariusStorhaug) commented Mar 27, 2026

Copy link
Copy Markdown
Member

Repositories can now control which file changes trigger build, test, and publish stages by configuring the ImportantFilePatterns workflow input or settings file property. The default patterns (^src/ and ^README\.md$) remain unchanged for backward compatibility.

New: Configurable release-triggering file patterns

The ImportantFilePatterns input is now available on the workflow.yml and Get-Settings.yml reusable workflows. Pass a newline-separated list of regex patterns to override the defaults:

jobs:
Process:
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v5with:
ImportantFilePatterns: | ^src/ ^README\.md$ ^examples/

To disable file-change triggering entirely, pass an empty string via the workflow input or set an empty list in .github/PSModule.yml:

# In .github/PSModule.ymlImportantFilePatterns: []

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

  • Added ImportantFilePatterns input (type: string, newline-separated) to both .github/workflows/workflow.yml and .github/workflows/Get-Settings.yml with explicit defaults (^src/ and ^README\.md$).
  • Bumped Get-PSModuleSettings action reference from v1.4.4 to v1.5.0 which implements the settings file and action input support for this feature.
  • Passed ImportantFilePatterns input through the reusable workflow chain to the Get-PSModuleSettings action step.
  • Updated README documentation: new input in the workflow inputs table, new "Customizing important file patterns" section with YAML examples, updated settings file reference and example schema.

@github-actions

Copy link
Copy Markdown

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

PathDescription
src/**Module source code
README.mdDocumentation

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
@github-actions

Copy link
Copy Markdown

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

PathDescription
src/**Module source code
README.mdDocumentation

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.

@MariusStorhaug
Marius Storhaug (MariusStorhaug) marked this pull request as ready for review March 30, 2026 14:28
CopilotAI review requested due to automatic review settings March 30, 2026 14:28

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ImportantFilePatterns as a workflow_call input in the main reusable workflow and passed it through to the Get-Settings reusable workflow.
  • Updated Get-Settings to pass ImportantFilePatterns into PSModule/Get-PSModuleSettings and bumped that action to v1.5.0 (pinned SHA).
  • Updated README.md to 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.

FileDescription
README.mdDocuments ImportantFilePatterns defaults and how to override via settings file or workflow input
.github/workflows/workflow.ymlExposes ImportantFilePatterns as a reusable workflow input and forwards it to Get-Settings
.github/workflows/Get-Settings.ymlForwards ImportantFilePatterns to PSModule/Get-PSModuleSettings and bumps action version

Comment threadREADME.md Outdated
Comment threadREADME.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Comment threadREADME.md
Comment thread.github/workflows/workflow.yml
Comment thread.github/workflows/Get-Settings.yml
@github-actions

Copy link
Copy Markdown

Super-linter summary

LanguageValidation result
CHECKOVPass ✅
GITLEAKSPass ✅
GIT_MERGE_CONFLICT_MARKERSPass ✅
MARKDOWNPass ✅
NATURAL_LANGUAGEPass ✅
POWERSHELLPass ✅
PRE_COMMITPass ✅
SPELL_CODESPELLPass ✅
TRIVYPass ✅
YAMLPass ✅

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>
CopilotAI review requested due to automatic review settings April 7, 2026 11:30
@MariusStorhaug

Copy link
Copy Markdown
MemberAuthor

Copilot apply changes based on the comments in this thread

@github-actions

Copy link
Copy Markdown

Super-linter summary

LanguageValidation result
CHECKOVPass ✅
GITLEAKSPass ✅
GIT_MERGE_CONFLICT_MARKERSPass ✅
MARKDOWNPass ✅
NATURAL_LANGUAGEPass ✅
POWERSHELLPass ✅
PRE_COMMITPass ✅
SPELL_CODESPELLPass ✅
TRIVYPass ✅
YAMLPass ✅

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>

CopilotAI commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Copilot apply changes based on the comments in this thread

Applied both changes in commit 790ad67:

  • workflow.yml: Added explicit default (^src/ and ^README\.md$) to the ImportantFilePatterns input, matching what Get-Settings.yml already has. This ensures omitting the input preserves the current hardcoded-default behavior rather than forwarding an empty string downstream.
  • README.md: Clarified that omitting the workflow input uses the defaults (not disabling triggering), and that ImportantFilePatterns: [] in .github/PSModule.yml is the reliable way to disable triggering since the settings file takes priority over the workflow input.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

Comment threadREADME.md
Comment threadREADME.md Outdated
Comment threadREADME.md Outdated
Comment thread.github/workflows/Get-Settings.yml
Comment thread.github/workflows/workflow.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
CopilotAI review requested due to automatic review settings April 7, 2026 11:42
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment threadREADME.md Outdated

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

Comment thread.github/workflows/workflow.yml
Comment thread.github/workflows/workflow.yml Outdated
Comment threadREADME.md
Comment threadREADME.md
CopilotAIand others added 2 commits April 7, 2026 11:46
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Super-linter summary

LanguageValidation result
CHECKOVPass ✅
GITLEAKSPass ✅
GIT_MERGE_CONFLICT_MARKERSPass ✅
MARKDOWNPass ✅
NATURAL_LANGUAGEPass ✅
POWERSHELLPass ✅
PRE_COMMITPass ✅
SPELL_CODESPELLPass ✅
TRIVYPass ✅
YAMLPass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Comment threadREADME.md Outdated
Comment threadREADME.md Outdated
Comment threadREADME.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
CopilotAI review requested due to automatic review settings April 7, 2026 17:05
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>

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@github-actions

Copy link
Copy Markdown

Super-linter summary

LanguageValidation result
CHECKOVPass ✅
GITLEAKSPass ✅
GIT_MERGE_CONFLICT_MARKERSPass ✅
MARKDOWNPass ✅
NATURAL_LANGUAGEPass ✅
POWERSHELLPass ✅
PRE_COMMITPass ✅
SPELL_CODESPELLPass ✅
TRIVYPass ✅
YAMLPass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

LanguageValidation result
CHECKOVPass ✅
GITLEAKSPass ✅
GIT_MERGE_CONFLICT_MARKERSPass ✅
MARKDOWNPass ✅
NATURAL_LANGUAGEPass ✅
POWERSHELLPass ✅
PRE_COMMITPass ✅
SPELL_CODESPELLPass ✅
TRIVYPass ✅
YAMLPass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@github-actions

Copy link
Copy Markdown

Super-linter summary

LanguageValidation result
CHECKOVPass ✅
GITLEAKSPass ✅
GIT_MERGE_CONFLICT_MARKERSPass ✅
MARKDOWNPass ✅
NATURAL_LANGUAGEPass ✅
POWERSHELLPass ✅
PRE_COMMITPass ✅
SPELL_CODESPELLPass ✅
TRIVYPass ✅
YAMLPass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@MariusStorhaug
Marius Storhaug (MariusStorhaug) merged commit 1111791 into mainApr 11, 2026
70 checks passed
@MariusStorhaug
Marius Storhaug (MariusStorhaug) deleted the feature/configurable-important-file-patterns branch April 11, 2026 07:41
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate why regex ImportantFilePatterns input is ignored and hardcoded defaults are always used

3 participants

@MariusStorhaug