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(packageRules): matchJsonata #31821

Closed
wants to merge 1 commit into from
Closed

Conversation

rarkins
Copy link
Collaborator

@rarkins rarkins commented Oct 7, 2024

Fixes #31820

Add matchJsonata configuration option to packageRules.

  • Add new option matchJsonata of type string with parent packageRules in lib/config/options/index.ts.
  • Create JsonataMatcher class in lib/util/package-rules/jsonata.ts extending Matcher and implement matches method using JSONata.
  • Import JsonataMatcher in lib/util/package-rules/matchers.ts and add it to the matchers array.
  • Add tests for JsonataMatcher class in lib/util/package-rules/jsonata.spec.ts.
  • Update types to include matchJsonata under packageRules in lib/config/types.ts.

Fixes #31820

Add `matchJsonata` configuration option to `packageRules`.

* Add new option `matchJsonata` of type string with parent `packageRules` in `lib/config/options/index.ts`.
* Create `JsonataMatcher` class in `lib/util/package-rules/jsonata.ts` extending `Matcher` and implement `matches` method using JSONata.
* Import `JsonataMatcher` in `lib/util/package-rules/matchers.ts` and add it to the `matchers` array.
* Add tests for `JsonataMatcher` class in `lib/util/package-rules/jsonata.spec.ts`.
* Update types to include `matchJsonata` under `packageRules` in `lib/config/types.ts`.
@rarkins
Copy link
Collaborator Author

rarkins commented Oct 7, 2024

Replaced by #31826

@rarkins rarkins closed this Oct 7, 2024
@rarkins rarkins deleted the rarkins/feat/31820-matchjsonata branch October 8, 2024 11:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

packageRules.matchJsonata
1 participant