Skip to content

Conversation

@setchy
Copy link
Member

@setchy setchy commented Jan 15, 2026

Migrate from the lower-level OAS types from https://github.com/octokit/openapi-types.ts to the REST endpoint types from https://github.com/octokit/types.ts.

Signed-off-by: Adam Setch <adam.setch@outlook.com>
@github-actions github-actions bot added dependency Dependency updates refactor Refactoring of existing feature labels Jan 15, 2026
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
@setchy setchy marked this pull request as ready for review January 20, 2026 21:11

export type NotificationThreadSubscription =
components['schemas']['thread-subscription'];
export type ListNotificationsForAuthenticatedUserResponse =
Copy link
Member Author

Choose a reason for hiding this comment

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

More explicit use of GitHub REST HTTP verb and path to its response types

Signed-off-by: Adam Setch <adam.setch@outlook.com>
*/
export async function getHtmlUrl(url: Link, token: Token): Promise<string> {
try {
// TODO - Add explicit type for response shape
Copy link
Member Author

Choose a reason for hiding this comment

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

Added a TODO which I intend to clean up via #2545

Signed-off-by: Adam Setch <adam.setch@outlook.com>
@setchy setchy marked this pull request as draft January 20, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency Dependency updates refactor Refactoring of existing feature

Development

Successfully merging this pull request may close these issues.

2 participants