GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: use status when http err by nayounsang · Pull Request #461 · changesets/action

Conversation

@nayounsang

@nayounsang nayounsang commented Apr 27, 2025

Copy link
Copy Markdown
Contributor

close #446

For @octokit/request-err err, use err.status.
Add error handling for this issue.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sins921 reacted with confused emoji
All reactions
  • 😕 1 reaction
@nayounsang
fix: use status when http err
4c2af4a
@changeset-bot

changeset-bot Bot commented Apr 27, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6cc2698

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@changesets/action Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nayounsang

nayounsang commented Apr 27, 2025

Copy link
Copy Markdown
Contributor Author

Wait, is it okay to "ignore" this error? It seems like it would be okay to just let it pop up.
So convert to draft.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nayounsang
nayounsang marked this pull request as draft April 27, 2025 15:11
Andarist
Andarist reviewed May 10, 2025
View reviewed changes
Comment thread src/run.ts
err &&
typeof err === "object" &&
"code" in err &&
err.code !== "ENOENT"

@Andarist Andarist May 10, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This has never meant to target RequestError but rather the errors potentially coming from fs.readFile. I think the proper fix would be only to wrap what we have to wrap with try/catch.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@nayounsang nayounsang May 11, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thx for review & work!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Andarist added 3 commits May 11, 2025 11:04
@Andarist
Merge remote-tracking branch 'origin/main' into fix-446-octokit-err
df56adf
@Andarist
tweak code
8add705
@Andarist
add changeset
6cc2698
@Andarist
Andarist marked this pull request as ready for review May 11, 2025 09:14
@Andarist
Andarist merged commit e9c36b6 into changesets:main May 11, 2025
@github-actions github-actions Bot mentioned this pull request May 11, 2025
Version Packages #480
Merged
@nayounsang
nayounsang deleted the fix-446-octokit-err branch May 11, 2025 09:40
This was referenced May 15, 2025
Version Packages fehnomenal/changesets-action#2
Merged
Version Packages fehnomenal/changesets-action#4
Merged
valpinkman pushed a commit to LedgerHQ/changeset-action-ledger that referenced this pull request Aug 4, 2025
Valentin D. Pinkman
Merge remote-tracking branch 'upstream/main' into chore/merge-changes
3a72bc5
* upstream/main: (28 commits)
  Version Packages (changesets#480)
  Fixed missed `__dirname` reference (changesets#496)
  Switch to bundling with Rollup (changesets#495)
  Migrate to ESM (changesets#484)
  Fixed situations in which `cwd` was specified as a relative path and used with (default) `commitMode: git-cli` (changesets#486)
  Add LICENSE file (changesets#491)
  Fix PRs sometimes not getting reopened with `commitMode: github-api` (changesets#488)
  Removed `fs-extra` dependency (changesets#481)
  Setup Git user in `release-pr` workflow (changesets#493)
  Use proper ndoe version in `release-pr` workflow (changesets#492)
  Add `release-pr` workflow (changesets#490)
  Migrate to Vitest (changesets#483)
  Switch to `esbuild` for bundling (changesets#479)
  Import only for `semver/functions/lt` (changesets#482)
  Avoid hitting a deprecation warning when encountering errors from `@octokit/request-error` (changesets#461)
  Run typecheck on CI (changesets#478)
  Updated `@actions/*` and `@octokit/*` dependencies (changesets#477)
  Bump @babel/runtime from 7.21.5 to 7.27.1 (changesets#464)
  Version Packages (changesets#476)
  Make git add work consistently with subdirectories (changesets#473)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Andarist Andarist Andarist left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Deprecation: [@octokit/request-error] error.code is deprecated, use error.status.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@nayounsang @Andarist
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.