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 a bug in the GitHub release source #512

Merged
merged 3 commits into from
Nov 21, 2024

Conversation

davewalter
Copy link
Contributor

This PR fixes a bug in the GitHub release source where it would return the actual error (instead of ErrNotFound) if the org in the specified GitHubRepository does not match the org that the release source was configured with. This caused the the loop in the GetMatchedRelease function in the ReleaseSourceList component to fail if the first GitHub release source failed, instead of continuing to try the remaining sources.

All release sources now define their own logger by default, but allow
tests to pass in a custom logger for cleaner output.
GetGithubReleaseWithTag will now return ErrNotFound if the repository
owner from the GitHubRepository value in the Kilnfile release entry does
not match the configured Org.
@rizwanreza rizwanreza merged commit 4d18b22 into main Nov 21, 2024
3 checks passed
@rizwanreza rizwanreza deleted the fix-github-release-source-GetGithubReleaseWithTag branch November 21, 2024 20:25
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