Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(extension): also allow .yaml file format #735

Merged
merged 12 commits into from
Mar 16, 2025

Conversation

dabcoder
Copy link
Contributor

@dabcoder dabcoder commented Jan 8, 2025

Fixes #700.

@dabcoder dabcoder marked this pull request as ready for review January 9, 2025 14:06
@dabcoder
Copy link
Contributor Author

cc @anderssonjohan and @decyjphr if you have time to have a look

@decyjphr decyjphr requested a review from Copilot March 16, 2025 16:40
Copy link

@Copilot 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

This PR adds support for repository override configuration using the .yaml file format in addition to the existing .yml format.

  • Updated retrieval of repo override configuration in lib/settings.js to support .yaml files.
  • Added unit tests for both .yaml and .yml configurations in test/unit/lib/settings.test.js.
  • README.md still incorrectly documents support only for the .yml extension.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/unit/lib/settings.test.js Added tests to verify repository override configuration for .yaml files.
lib/settings.js Updated repo override config lookup to include .yaml and modified its usage.
README.md Documentation remains inconsistent with the code changes.
Comments suppressed due to low confidence (1)

README.md:32

  • Documentation conflicts with code changes; the code now supports .yaml files, but README indicates that .yaml is ignored.
Settings files must have a `.yml` extension only. For now, the `.yaml` extension is ignored.

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

@decyjphr decyjphr merged commit 620cf14 into github:main-enterprise Mar 16, 2025
2 checks passed
@dabcoder dabcoder deleted the db/-/yaml-extension branch March 17, 2025 10:38
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 file extension: .yml or .yaml
2 participants