Skip to content

Clarify release lookup error handling - #755

Merged
iangmaia merged 3 commits into
trunkfrom
iangmaia/follow-up-release-lookup-errors
Jul 13, 2026
Merged

Clarify release lookup error handling#755
iangmaia merged 3 commits into
trunkfrom
iangmaia/follow-up-release-lookup-errors

Conversation

@iangmaia

Copy link
Copy Markdown
Contributor

Adds a small regression test to confirm only missing releases are swallowed during the direct release lookup fallback.

@iangmaia
iangmaia requested a review from a team as a code owner July 13, 2026 16:59
Copilot AI review requested due to automatic review settings July 13, 2026 16:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 tightens the contract around GitHub release discovery by ensuring that only “missing release” (404) errors are swallowed during the direct release-by-tag fallback, while unexpected API failures propagate to callers. It fits into the GithubHelper helper layer that encapsulates Octokit interactions used by Fastlane actions.

Changes:

  • Adds an RSpec regression test to verify Octokit::TooManyRequests raised during direct tag lookup is not hidden.
  • Clarifies (via inline comment) that only Octokit::NotFound should be converted to nil in the fallback lookup path.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
spec/github_helper_spec.rb Adds a regression spec asserting unexpected Octokit errors aren’t swallowed during the fallback release lookup.
lib/fastlane/plugin/wpmreleasetoolkit/helper/github_helper.rb Documents the intent of rescuing only Octokit::NotFound in the tag-based fallback.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/fastlane/plugin/wpmreleasetoolkit/helper/github_helper.rb Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@iangmaia
iangmaia enabled auto-merge July 13, 2026 17:33
@iangmaia iangmaia self-assigned this Jul 13, 2026
@iangmaia
iangmaia merged commit 231836b into trunk Jul 13, 2026
6 checks passed
@iangmaia
iangmaia deleted the iangmaia/follow-up-release-lookup-errors branch July 13, 2026 17:34
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