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

Branch support #12

Open
all4innov opened this issue Jan 8, 2023 · 2 comments
Open

Branch support #12

all4innov opened this issue Jan 8, 2023 · 2 comments

Comments

@all4innov
Copy link

all4innov commented Jan 8, 2023

@mattlqx Is it possible to use different search-and-replace based on branches?
eg:

  • for branch develop: replace any string "env" with "dev"
  • for branch main: replace any string "env" with "prod"
@mattlqx
Copy link
Owner

mattlqx commented Jan 8, 2023

I think so. pre-commit should just use whatever config is on the branch at the time.

@all4innov
Copy link
Author

not working as seach-and-replace dont take into account the branch

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

No branches or pull requests

2 participants