Skip to content

Fix Super-Linter to run on pull requests to all branches - #10035

Merged
jongalloway merged 2 commits into
mainfrom
copilot/fix-10034
Aug 13, 2025
Merged

Fix Super-Linter to run on pull requests to all branches#10035
jongalloway merged 2 commits into
mainfrom
copilot/fix-10034

Conversation

Copilot AI commented Aug 12, 2025

Copy link
Copy Markdown
Contributor

The Super-Linter workflow was only running on pull requests targeting the main branch, which caused linting issues to be discovered late in the release process. When creating release branches (like dotnet10-p7) and merging area-specific pull requests into those branches, the linting checks were bypassed, leading to a accumulation of issues that were only caught during the final merge to main.

This change updates the Super-Linter workflow configuration to run on pull requests to all branches by changing:

pull_request:
  branches: [main]

to:

pull_request:
  branches: '**'

This matches the pattern already used by the markdown-link-check.yml workflow and ensures that linting runs consistently across all pull requests, regardless of the target branch.

With this fix, area-specific pull requests (like dotnet10-p7-libraries targeting dotnet10-p7) will now trigger the Super-Linter, catching issues early in the development process rather than during the final merge.

Fixes #10034.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: jongalloway <68539+jongalloway@users.noreply.github.com>
Copilot AI changed the title [WIP] Super-Linter should run on pull requests to branches other than Main Aug 12, 2025
Copilot AI requested a review from jongalloway August 12, 2025 23:22
@jongalloway
jongalloway marked this pull request as ready for review August 12, 2025 23:23
@jongalloway
jongalloway merged commit cef1a96 into main Aug 13, 2025
7 checks passed
@jongalloway
jongalloway deleted the copilot/fix-10034 branch August 13, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants