Skip to content

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Aug 5, 2025

@caarlos0 caarlos0 requested review from crazy-max and Copilot August 5, 2025 13:32
@caarlos0 caarlos0 self-assigned this Aug 5, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds retry logic to improve reliability when downloading GoReleaser releases JSON data from remote endpoints. The change addresses potential network issues that could cause transient failures when fetching release information.

  • Introduces a generic retry mechanism with configurable retries and timeout
  • Wraps HTTP requests to the GoReleaser releases endpoint with retry logic
  • Refactors existing HTTP client usage to utilize the new retry functionality
Comments suppressed due to low confidence (1)

src/github.ts:115

  • Creating a new HttpClient instance on each retry attempt is inefficient. Consider creating the HttpClient once outside the retry function or reusing the same instance.
    const http: httpm.HttpClient = new httpm.HttpClient('goreleaser-action');

@caarlos0 caarlos0 merged commit e435ccd into master Aug 7, 2025
39 checks passed
@caarlos0 caarlos0 deleted the retries branch August 7, 2025 01:28
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.

1 participant