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

fix(publisher): fix splitRepoAndTag function #182

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Conversation

wuhuizuo
Copy link
Contributor

@wuhuizuo wuhuizuo commented Oct 16, 2024

This pull request includes a small but important change to the splitRepoAndTag function in the publisher/pkg/tiup/funcs.go file. The change corrects the logic for determining the delimiter used to split the repository and tag in a given URL.

  • publisher/pkg/tiup/funcs.go: Modified the splitRepoAndTag function to correctly identify URLs containing @sha256: and use the appropriate delimiter for splitting.

Signed-off-by: wuhuizuo [email protected]

@ti-chi-bot ti-chi-bot bot requested a review from purelind October 16, 2024 10:55
Copy link

ti-chi-bot bot commented Oct 16, 2024

I have already done a preliminary review for you, and I hope to help you do a better job.

Based on the pull request title and description, it seems that the changes in this pull request are related to fixing a function named splitRepoAndTag in the publisher/pkg/tiup/funcs.go file.

The actual change in the code is a minor modification in line 240, where a conditional statement is inverted to check if the provided URL contains @sha256: instead of the previous check of not containing it.

Regarding potential problems, it seems that the change is straightforward and does not introduce any significant issues. However, it would be helpful to ensure that the change does not affect any other parts of the codebase that rely on the splitRepoAndTag function.

As for fixing suggestions, I would suggest conducting a more comprehensive test to ensure that the changes do not create any unforeseen issues. Additionally, the pull request could benefit from a more detailed description of the changes made and their impact.

@ti-chi-bot ti-chi-bot bot added the size/XS label Oct 16, 2024
Copy link
Contributor Author

@wuhuizuo wuhuizuo left a comment

Choose a reason for hiding this comment

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

/approve

Copy link

ti-chi-bot bot commented Oct 16, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wuhuizuo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the approved label Oct 16, 2024
@ti-chi-bot ti-chi-bot bot merged commit 00c2f08 into main Oct 16, 2024
3 checks passed
@ti-chi-bot ti-chi-bot bot deleted the fix/publisher branch October 16, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant