Skip to content

feat: provide defaults for dynamic params#254

Merged
gildesmarais merged 1 commit intomasterfrom
feat/252-dynamic-params-default
Sep 10, 2025
Merged

feat: provide defaults for dynamic params#254
gildesmarais merged 1 commit intomasterfrom
feat/252-dynamic-params-default

Conversation

@gildesmarais
Copy link
Copy Markdown
Member

Implements #252

@gildesmarais gildesmarais marked this pull request as ready for review September 10, 2025 20:19
Copy link
Copy Markdown
Contributor

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 implements feature #252 by adding support for default values in dynamic parameters for RSS feed configurations. Instead of requiring explicit parameter values in tests, configs can now define default values that are automatically used when no parameters are provided.

Key changes:

  • Added automatic extraction of default parameter values from config files
  • Updated test files to remove hardcoded parameter values, relying on defaults instead
  • Added parameter validation to ensure all parameters have required fields and default values

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.

File Description
spec/support/shared_examples/config.yml_spec.rb Enhanced shared example to extract and use default parameter values, added parameter validation tests
spec/html2rss/configs/*.yml_spec.rb Removed hardcoded parameters from test calls, now using defaults from config files
lib/html2rss/configs/*.yml Added parameters section with type and default value definitions for dynamic configs
README.md Added documentation explaining the new dynamic parameters feature with examples

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

selector: "section > a"
extractor: "href"
descripton:
description:
Copy link

Copilot AI Sep 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed typo: 'descripton' has been corrected to 'description'.

Copilot uses AI. Check for mistakes.
@gildesmarais gildesmarais merged commit 44c218d into master Sep 10, 2025
7 checks passed
@gildesmarais gildesmarais deleted the feat/252-dynamic-params-default branch September 10, 2025 20:22
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.

2 participants