Skip to content

Comments

v1.0.8: New module: integrations/api-client#17

Merged
danopia merged 3 commits intomainfrom
add-api-client
Feb 18, 2026
Merged

v1.0.8: New module: integrations/api-client#17
danopia merged 3 commits intomainfrom
add-api-client

Conversation

@danopia
Copy link
Member

@danopia danopia commented Feb 18, 2026

Example usage:

const githubClient = new BaseApiClient({
  baseUrl: 'https://api.github.com/',
  headerFactory: async () => ({
    authorization: `Bearer ${await fetchInstallationToken()}`,
    accept: 'application/vnd.github+json',
    'x-github-api-version': '2022-11-28',
  }),
});

const commits = await githubClient.fetchJson<Array<GithubCommit>>({
  path: `repos/${orgName}/${repoName}/commits`,
  query: { per_page: 10 },
});

@danopia danopia changed the title New module: integrations/api-client v1.0.8: New module: integrations/api-client Feb 18, 2026
@danopia danopia marked this pull request as ready for review February 18, 2026 15:53
@danopia danopia merged commit 2b0502d into main Feb 18, 2026
4 checks passed
@danopia danopia deleted the add-api-client branch February 18, 2026 15:53
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