Navigation Menu

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: platform=local #22010

Merged
merged 9 commits into from May 10, 2023
Merged

feat: platform=local #22010

merged 9 commits into from May 10, 2023

Conversation

rarkins
Copy link
Collaborator

@rarkins rarkins commented May 7, 2023

Changes

Adds the ability to run with --platform=local to run a dry run against the local fs.

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 select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@rarkins
Copy link
Collaborator Author

rarkins commented May 7, 2023

I can see how a git-aware local could also make sense in some scenarios, perhaps it could be called platform=local-git in future

@rarkins
Copy link
Collaborator Author

rarkins commented May 7, 2023

BTW this is the 3rd or 4th time I've attempted this PR. All preceding attempts were cut short by Renovate proceeding to delete my entire local clone/source unintentionally (localDir..)

@rarkins
Copy link
Collaborator Author

rarkins commented May 7, 2023

The primary use case for this is:

  • People who want to test their config locally (either for extract or lookup result) without needing to "push to production"
  • And for whom baseBranches doesn't matter

Does not compare before/after in any way, including branch list. I think that's far beyond an MVP in this case

@rarkins rarkins requested a review from viceice May 8, 2023 13:23
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.

otherwise LGTM

lib/modules/platform/local/scm.ts Outdated Show resolved Hide resolved
lib/modules/platform/local/scm.ts Show resolved Hide resolved
@rarkins rarkins marked this pull request as ready for review May 9, 2023 04:50
@rarkins rarkins requested a review from viceice May 9, 2023 04:51
@rarkins rarkins requested a review from viceice May 9, 2023 09:18
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.

otherwise LGTM.

lib/modules/platform/local/scm.ts Show resolved Hide resolved
viceice
viceice previously approved these changes May 9, 2023
@viceice
Copy link
Member

viceice commented May 9, 2023

needs prettifying

secustor
secustor previously approved these changes May 9, 2023
JamieMagee
JamieMagee previously approved these changes May 10, 2023
@JamieMagee JamieMagee dismissed stale reviews from secustor, viceice, and themself via 09cd5a6 May 10, 2023 04:07
@JamieMagee JamieMagee enabled auto-merge May 10, 2023 04:07
@JamieMagee JamieMagee added this pull request to the merge queue May 10, 2023
Merged via the queue into main with commit 93052ec May 10, 2023
12 checks passed
@JamieMagee JamieMagee deleted the feat/platform-local branch May 10, 2023 04:52
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 35.76.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

mjunker pushed a commit to mjunker/renovate that referenced this pull request May 17, 2023
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 10, 2023
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

5 participants