Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

fix: detect .yaml configuration changes in webhooks - #1120

Open
vamsicherukuri wants to merge 1 commit into
github-community-projects:main-enterprisefrom
vamsicherukuri:vamsicherukuri/fix-yaml-webhook-detection
Open

vamsicherukuri wants to merge 1 commit into
github-community-projects:main-enterprisefrom
vamsicherukuri:vamsicherukuri/fix-yaml-webhook-detection

Conversation

@vamsicherukuri

Copy link
Copy Markdown

Summary

Fixes #1119.

Configuration loading supports .yaml, but webhook change detection only matched .yml. This could cause a PR changing only .yaml configuration files to report no changes and skip targeted synchronization after merge.

  • Recognize both extensions in repository and suborg configuration patterns.
  • Extract configuration names correctly for both extensions in all four push/PR helpers.
  • Add 18 regression tests covering push additions, modifications and removals, PR validation, names containing dots, and unrelated files.
  • Document extension support in the README.

Validation

  • Before the fix: the 8 new .yaml regression cases failed; .yml and unrelated-file cases passed.
  • After the fix: all 145 tests across the new regression suite and related configuration-error and settings suites passed.
  • ESLint passed for the new test file; git diff --check passed.
  • No live GitHub installation testing performed.

Command used:

npm run test:unit -- --runInBand --silent --runTestsByPath test\unit\index-config-extensions.test.js test\unit\index-config-errors.test.js test\unit\lib\settings.test.js

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>

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

🟢 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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.yaml repository and suborg configuration changes are ignored by webhook change detection

2 participants