Skip to content

Bug/depreciated error - #106

Merged
ieliofficial merged 1 commit into
mainfrom
bug/depreciated_error
Aug 19, 2026
Merged

Bug/depreciated error#106
ieliofficial merged 1 commit into
mainfrom
bug/depreciated_error

Conversation

@DevOlabode

@DevOlabode DevOlabode commented Aug 10, 2026

Copy link
Copy Markdown
Member

Summary

Resolves the runtime logging issues identified in #81.

Changes

  • Updated GitHub API requests to use the appropriate API version headers.
  • Addressed the deprecated GitHub repository creation request.
  • Investigated repeated manifest lookup failures and related 404 responses.
  • Reviewed repository initialization behaviour and unnecessary runtime warnings.
  • Reduced avoidable runtime log noise while preserving useful error information.

Related Issue: #81

@DevOlabode DevOlabode self-assigned this Aug 10, 2026

@ieliofficial ieliofficial left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The actual fix is right and I checked that 2026-03-10 is a real version, GitHub 400s on a bogus one and accepts this. Forcing the header through request.defaults is the correct workaround for octokit 20 too.

The problem is it's about 20 lines of fix inside 120 lines of unrelated reformatting, and a couple of things got damaged on the way:

  • the file header comment got flattened into run on lines with stray asterisks in the middle of sentences, compare it to main
  • the trailing newline at the end of the file is gone

There's no prettier config in the repo, so the reflow is your editor's settings rather than a project standard, and it's what makes this conflict with #95 which rewrites the same function.

Can you drop the formatting changes and keep just the octokit factory plus the version constant? Would also be good to have a test asserting the header actually goes out on a request.

Separately, I don't think this closes #81 on its own, the repeated 404s on manifest lookups and the repo init noise are still open.

@DevOlabode
DevOlabode force-pushed the bug/depreciated_error branch 3 times, most recently from 5f2760c to ae5a7be Compare August 14, 2026 04:43
Use createGitHubOctokit so every client sends X-GitHub-Api-Version:
2026-03-10. Constructor request.headers is ignored by @octokit/rest@20.
Assert the header is present on outgoing requests.
@DevOlabode
DevOlabode force-pushed the bug/depreciated_error branch from ae5a7be to 7434109 Compare August 14, 2026 04:44
@DevOlabode

Copy link
Copy Markdown
Member Author

Addressed every requested change

@ieliofficial ieliofficial left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reformat is gone and the test actually asserts the header goes out on the wire. Good fix.

@ieliofficial
ieliofficial merged commit 84294de into main Aug 19, 2026
2 checks passed
@ieliofficial
ieliofficial deleted the bug/depreciated_error branch August 19, 2026 19:21
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