Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

[Question] #223

Closed
hong4rc opened this issue Apr 27, 2019 · 7 comments
Closed

[Question] #223

hong4rc opened this issue Apr 27, 2019 · 7 comments
Assignees

Comments

@hong4rc
Copy link

hong4rc commented Apr 27, 2019

  • Which Renovate are you using? CLI

  • Which platform are you using? local

  • Have you checked the logs? Don't forget to include them if relevant

How to test config before push it to git?

I want to see the result when I apply that config.

Thanks

@rarkins
Copy link
Collaborator

rarkins commented Apr 27, 2019

The best time to test your config is when you do onboarding, because it provides you a preview then. But assuming you are past that point, there are some options you can try:

  1. Fork your repository and then the new config against the fork. Include --include-forks=true in your CLI command on the forked repository, otherwise Renovate will skip it.

  2. Another approach is to commit your config but then run Renovate with --dry-run=true. It won't do anything and will just print what it would do to the logs.

  3. Another approach is to enable "masterIssueApproval": true in your config. That way Renovate never creates PRs without you approving them in the master issue, although it may still autoclose some. More details: https://renovatebot.com/blog/master-issue

@hong4rc
Copy link
Author

hong4rc commented Apr 27, 2019

That is my repo so I can't fork, but I can create a new branch to change and check, but I don't want to create any pull request, I want everything in local.

It isn't able, is it?

@rarkins
Copy link
Collaborator

rarkins commented Apr 27, 2019

Instead of fork, you can Import a repository as a new one (non-fork) using this menu in GitHub:
image

Otherwise no, there is not really a way to do this.

@hong4rc
Copy link
Author

hong4rc commented Apr 27, 2019

I want only in local, but this is a good option, I hope to renovate can support run repo local

@hong4rc hong4rc closed this as completed Apr 27, 2019
@rarkins
Copy link
Collaborator

rarkins commented Apr 27, 2019

What do you mean "local"? A local clone of a repo? Renovate supports github, gitlab, bitbucket and azure devops. It needs their APIs and can't run against pure git.

@hong4rc
Copy link
Author

hong4rc commented Apr 27, 2019

My mean is to run a project on my computer (clone from git)
I want to test show change if I use the new config (don't need pull request).

@rarkins
Copy link
Collaborator

rarkins commented Apr 27, 2019

This could be challenging to implement, but I think it's a good idea to be able to do that type of dry run locally. I created this feature request in the main repo: renovatebot/renovate#3609

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants