Skip to content

Fix commits rest api#719

Merged
TheKrol merged 3 commits into
masterfrom
Fix-Commits-REST-API
May 31, 2026
Merged

Fix commits rest api#719
TheKrol merged 3 commits into
masterfrom
Fix-Commits-REST-API

Conversation

@Mr-KayZ

@Mr-KayZ Mr-KayZ commented May 30, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 30, 2026 23:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the GitHub commits fetch logic used by the contributors.astro component, aiming to align it with the GitHub REST API limits and to fail fast with a clearer error when the API response is not the expected shape.

Changes:

  • Reduce per_page from 1000 to 100 to match GitHub’s documented maximum for the commits endpoint.
  • Add validation to ensure the commits response is an array, throwing a descriptive error if not.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/contributors.astro
Comment thread src/components/contributors.astro
@github-actions

Copy link
Copy Markdown
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://happy-mushroom-0564bdf0f-719.eastus2.5.azurestaticapps.net

@github-actions

Copy link
Copy Markdown
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://happy-mushroom-0564bdf0f-719.eastus2.5.azurestaticapps.net

@TheKrol TheKrol merged commit 3f41578 into master May 31, 2026
3 checks passed
@TheKrol TheKrol deleted the Fix-Commits-REST-API branch May 31, 2026 00:09
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.

3 participants