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

Update self-update to support an optional version constraint #154

Draft
wants to merge 2 commits into
base: 0.4.x
Choose a base branch
from

Conversation

andytson-inviqa
Copy link
Contributor

It will limit the release to the highest matching candidate based on a min stability default to stable

@andytson-inviqa andytson-inviqa added the enhancement New feature or request label Feb 24, 2023
@andytson-inviqa andytson-inviqa added this to the 0.4.0 milestone Feb 24, 2023
We will be using pre-release tags for testing, which would be listed later than the latest tag
@andytson-inviqa andytson-inviqa force-pushed the feature/self-update-latest branch from 63a45de to 519899c Compare February 24, 2023 16:47
@andytson-inviqa andytson-inviqa force-pushed the feature/self-update-constraint branch 2 times, most recently from 881601c to 3682322 Compare February 24, 2023 16:52
private function getLatestReleaseByConstraint(string $targetConstraint): Release
{
try {
$releasesRaw = file_get_contents($this->apiUrl, false, $this->createStreamContext());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the api's paginated as well, default 30 releases per page

@andytson-inviqa andytson-inviqa force-pushed the feature/self-update-constraint branch from 3682322 to 0175472 Compare February 27, 2023 09:11
It will limit the release to the highest matching candidate based on a min stability default to stable
@andytson-inviqa andytson-inviqa force-pushed the feature/self-update-constraint branch from 0175472 to 5e82a0d Compare February 27, 2023 09:14
g-foster2020
g-foster2020 previously approved these changes Feb 27, 2023
@andytson-inviqa andytson-inviqa marked this pull request as draft August 1, 2023 11:34
Base automatically changed from feature/self-update-latest to 0.3.x September 22, 2023 13:41
@andytson-inviqa andytson-inviqa dismissed g-foster2020’s stale review September 22, 2023 13:41

The base branch was changed.

@andytson-inviqa andytson-inviqa removed this from the 0.4.0 milestone Sep 22, 2023
@kierenevans kierenevans changed the base branch from 0.3.x to 0.4.x February 22, 2024 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants