Skip to content

[BUG]: Missing pagination safety guard in fetchContributors() and fetchIssues() #103

Description

@KaranUnique

Bug Description

Both fetchContributors() and fetchIssues() iterate through paginated GitHub API responses using an unbounded loop:

js :
for (let page = 1; ; page++) { ... }

Steps to Reproduce :

  1. Open services/github.js.
  2. Navigate to fetchContributors() and fetchIssues().
  3. Observe that both functions use an unbounded pagination loop without a maximum page limit or response validation.

Environment Details :

  • OS: Windows 11
  • Browser: Brave
  • Node.js: 22.18.0

Impact :

Medium - Feature works but has issues

Code of Conduct

  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions