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

Detect GitHub releases #6

Merged
merged 4 commits into from
Mar 4, 2024
Merged

Detect GitHub releases #6

merged 4 commits into from
Mar 4, 2024

Conversation

wlandau
Copy link
Member

@wlandau wlandau commented Mar 4, 2024

In this PR, r.releases.utils now flags a pull request for manual review if the URL does not have a GitHub release. It does this by checking nanonext::ncurl() on https://github.com/YOU/REPO/releases/latest redirects to https://github.com/YOU/REPO/releases/tag/...

I also refactored/modularized assert_package() a bit more.

@wlandau wlandau requested a review from shikokuchuo March 4, 2024 10:03
@wlandau wlandau self-assigned this Mar 4, 2024
use convert=FALSE in ncurl() as we're not using any of the returned data
Copy link
Member

@shikokuchuo shikokuchuo left a comment

Choose a reason for hiding this comment

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

Very creative use of file.path and dirname! Just added a minor commit for efficiency at ncurl().

Good to merge.

@wlandau
Copy link
Member Author

wlandau commented Mar 4, 2024

Thanks, just added a test. Will merge when CI passes.

@wlandau wlandau merged commit 37bb960 into r-multiverse:main Mar 4, 2024
6 checks passed
@wlandau wlandau deleted the check-releases branch March 4, 2024 10:42
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

Successfully merging this pull request may close these issues.

2 participants