Repository navigation
fix: detect .yaml configuration changes in webhooks - #1120
Open
vamsicherukuri wants to merge 1 commit into
Open
vamsicherukuri wants to merge 1 commit into
vamsicherukuri wants to merge 1 commit into
Conversation
Recognize both YAML extensions in push and pull request change detection, with regression tests and documentation. Fixes github-community-projects#1119 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change extending webhook detection to .yaml configuration files.
No open issues 🎉
What changed in this PR
Fixes #1119 by extending webhook change detection to .yaml configuration files, matching existing loading support and preserving .yml behavior.
Changes:
- Updates repository and suborg patterns and all four push/PR filename-extraction helpers to recognize both extensions.
- Adds 18 regression tests covering push changes, PR validation, dotted names, and unrelated files.
- Documents extension support for synchronization and validation.
| File | Description |
|---|---|
test/unit/index-config-extensions.test.js |
Adds regression coverage for both extensions and ignored paths. |
README.md |
Documents .yml and .yaml webhook support. |
lib/settings.js |
Expands repository and suborg glob patterns to both extensions. |
index.js |
Extracts configuration names correctly for both extensions. |
Review effort: Balanced
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1119.
Configuration loading supports
.yaml, but webhook change detection only matched.yml. This could cause a PR changing only.yamlconfiguration files to report no changes and skip targeted synchronization after merge.Validation
.yamlregression cases failed;.ymland unrelated-file cases passed.git diff --checkpassed.Command used: