Skip to content

Restrict AddManualTrigger to workflow files - #240

Merged
timtebeek merged 1 commit into
mainfrom
tim/merge-yaml-file-pattern
Oct 25, 2026
Merged

timtebeek merged 1 commit into
mainfrom
tim/merge-yaml-file-pattern

Conversation

@timtebeek

@timtebeek timtebeek commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

AddManualTrigger passed fileMatcher to MergeYaml, which has no such option; the option is filePattern. The key was silently dropped, so the merge was never restricted to .github/workflows/*.{yml,yaml}. It applied to any YAML file with a top-level on: mapping.

openrewrite/rewrite#9393 reports option keys a recipe can't bind as validation failures. Without this fix, RewriteTest fails for AddManualTrigger and any composite that includes it.

Verified locally: ./gradlew test --tests "*AddManualTriggerTest" passes. I also ran validateAll() with the patched rewrite-core over this recipe; the unknown-option failure is gone.

@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Oct 25, 2026
@timtebeek
timtebeek marked this pull request as ready for review October 25, 2026 18:17
@timtebeek
timtebeek merged commit 56cff2b into main Oct 25, 2026
2 checks passed
@timtebeek
timtebeek deleted the tim/merge-yaml-file-pattern branch October 25, 2026 18:17
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant