Skip to content

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

Open
Marius Storhaug (MariusStorhaug) wants to merge 16 commits intomainfrom
feature/configurable-important-file-patterns
Open

🚀 [Feature]: Release-triggering file patterns now configurable via workflow input#301
Marius Storhaug (MariusStorhaug) wants to merge 16 commits intomainfrom
feature/configurable-important-file-patterns

Conversation

@MariusStorhaug
Copy link
Copy Markdown
Member

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Mar 27, 2026

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@v5
    with:
      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.yml
ImportantFilePatterns: []

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:

Path Description
src/** Module source code
README.md Documentation

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:

Path Description
src/** Module source code
README.md Documentation

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
Copilot AI review requested due to automatic review settings March 30, 2026 14:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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.

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>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

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 AI review requested due to automatic review settings April 7, 2026 11:30
@MariusStorhaug
Copy link
Copy Markdown
Member Author

Copilot apply changes based on the comments in this thread

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

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>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 7, 2026 11:42
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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.

Copilot AI and 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

github-actions bot commented Apr 7, 2026

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI 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>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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

github-actions bot commented Apr 7, 2026

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

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

github-actions bot commented Apr 7, 2026

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

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

github-actions bot commented Apr 7, 2026

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Sign up for free to 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.

Make release-triggering file patterns configurable via settings file

3 participants