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

refactor(regex): cleanup up index.ts and move matchStringStrategy to enum #12525

Merged
merged 8 commits into from Dec 10, 2021

Conversation

secustor
Copy link
Collaborator

@secustor secustor commented Nov 5, 2021

Changes:

refactors regex manager for better readability
use an enum for matchStringStrategy instead of string

Context:

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

@secustor secustor marked this pull request as ready for review November 6, 2021 07:08
@secustor secustor changed the title refactor(regex): cleanup up index.ts refactor(regex): cleanup up index.ts and move matchStringStrategy to enum Nov 6, 2021
@rarkins rarkins requested a review from viceice November 6, 2021 07:22
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

type imports forces the compiler to remove the import when tramspile to js.

lib/config/types.ts Outdated Show resolved Hide resolved
lib/manager/regex/strategies.ts Outdated Show resolved Hide resolved
lib/manager/regex/utils.ts Outdated Show resolved Hide resolved
viceice
viceice previously approved these changes Nov 6, 2021
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

LGTM, assume you've just moved the functions around.

# Conflicts:
#	lib/manager/regex/index.ts
@rarkins rarkins enabled auto-merge (squash) December 10, 2021 10:36
@rarkins rarkins merged commit e8645bf into renovatebot:main Dec 10, 2021
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 30.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 10, 2022
@secustor secustor deleted the refactor_regex branch December 4, 2022 15:09
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.

None yet

4 participants