Skip to content

Refactor GitHub API integration to use runtime configuration#12

Merged
zackha merged 1 commit intomainfrom
dev
Aug 9, 2025
Merged

Refactor GitHub API integration to use runtime configuration#12
zackha merged 1 commit intomainfrom
dev

Conversation

@zackha
Copy link
Copy Markdown
Member

@zackha zackha commented Aug 9, 2025

  • Updated GitHub API calls in members.get.ts, repos.get.ts, repos/[name].get.ts, and repos/[name]/contributors.get.ts to utilize runtime configuration for organization name.
  • Added error handling for missing GitHub organization name in runtime config.
  • Refactored GitHub client initialization in github.ts to use runtime configuration for the GitHub token.
  • Introduced a new composable useGithub.ts to streamline fetching organization repositories, members, and contributors.

- Updated GitHub API calls in members.get.ts, repos.get.ts, repos/[name].get.ts, and repos/[name]/contributors.get.ts to utilize runtime configuration for organization name.
- Added error handling for missing GitHub organization name in runtime config.
- Refactored GitHub client initialization in github.ts to use runtime configuration for the GitHub token.
- Introduced a new composable useGithub.ts to streamline fetching organization repositories, members, and contributors.
@vercel
Copy link
Copy Markdown

vercel bot commented Aug 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
codefornorway ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 9, 2025 5:56pm

@zackha zackha merged commit b1a255c into main Aug 9, 2025
2 checks passed
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