Skip to content

[Bug]: GraphQL openIssuesTotal counts open pull requests as issues #80

Description

@dearsishs

[Bug]: GraphQL openIssuesTotal counts open pull requests as issues

Summary

refreshRepoGithubTotals() stores repository.issues(states: OPEN).totalCount, which includes open PRs in GitHub’s GraphQL model. REST backfill already filters pull_request rows, but totals and GraphQL supplement do not.

Steps to reproduce

  1. Sync a repo with open issues and open PRs (e.g. totals where issues.totalCount includes PR count).
  2. Compare openIssuesTotal to REST issue-only count.

Expected behavior

openIssuesTotal reflects issues only, consistent with REST !issue.pull_request filtering.

Actual behavior

Total is inflated by open PR count; open-issue segments can stay partial and GraphQL supplement may upsert PRs as issues.

Impact

Incorrect sync completeness and polluted issue rows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions