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: set default version and handle github repo redirects #1577

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kiriyaga-txfusion
Copy link
Contributor

What 💻

  • With this PR, the default version pattern is enabled, allowing users to stay on a specific minor version while automatically updating to the latest patch version. Additionally, users can specify either the latest or a specific node version in memory that will be started with the plugin.
  • Additionally, redirect URLs are handled properly, ensuring that the plugin manages scenarios with multiple redirects seamlessly.

Why ✋

  • This ensures that users can avoid breaking changes in the Era test node by using the latest tag. Furthermore, if the repository name changes or new redirects are added, the plugin will handle them gracefully, preventing disruptions.

This PR resolve issues:
#1569
#1568

@kiriyaga-txfusion kiriyaga-txfusion requested a review from a team as a code owner December 11, 2024 14:28
@kiriyaga-txfusion kiriyaga-txfusion self-assigned this Dec 11, 2024
return latestTag;
}
const [major, minor, patch] = initialTag.split('.');
const tag = tags.find((t) => t.startsWith(patch === '*' ? `${major}.${minor}` : initialTag));
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we rely on tags sorted here so the first match for patch * is always the latest patch?

}
const [major, minor, patch] = initialTag.split('.');
const tag = tags.find((t) => t.startsWith(patch === '*' ? `${major}.${minor}` : initialTag));
if (!tag) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we maybe use latest in case the tag not found? Just in case if we remove some releases?

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.

3 participants