Skip to content

Missing contributors from Get-GitHubRepositoryContributor #397

Description

@Liturgist

Issue Details

The PowerShell GitHub project page reports that is has 424 contributors. However, using Get-GitHubRepositoryContibutor reports only 378 contributors. Using -IncludeAnonymousContributors reports 467.

I also have a GitHub Enterprise repo which has four (4) contributors, but Get-GitHubRepositoryContributor reports only two (2) contributors.

Steps to reproduce the issue

View the "Contributors" on https://github.com/PowerShell/PowerShell

PS C:\> (Get-GitHubRepositoryContributor -OwnerName 'PowerShell' -RepositoryName 'PowerShell').Count
378

PS C:\> (Get-GitHubRepositoryContributor -OwnerName 'PowerShell' -RepositoryName 'PowerShell' -IncludeAnonymousContributors).Count         
467

Verbose logs showing the problem

PS C:\> (Get-GitHubRepositoryContributor -OwnerName 'PowerShell' -RepositoryName 'PowerShell' -Verbose).Count
VERBOSE: [0.16.1] Executing: Get-GitHubRepositoryContributor -OwnerName "PowerShell" -RepositoryName "PowerShell" -Verbose:$true
VERBOSE: Getting contributors for PowerShell
VERBOSE: Accessing [Get] https://api.github.com/repos/PowerShell/PowerShell/contributors? [Timeout = 0)]
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 28728-byte response of content type application/json
VERBOSE: Getting contributors for PowerShell (Getting additional results [page 2/13]))
VERBOSE: Accessing [Get] https://api.github.com/repositories/49609581/contributors?page=2 [Timeout = 0)]
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 28230-byte response of content type application/json
VERBOSE: Getting contributors for PowerShell (Getting additional results [page 3/13]))
VERBOSE: Accessing [Get] https://api.github.com/repositories/49609581/contributors?page=3 [Timeout = 0)]
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 28380-byte response of content type application/json
VERBOSE: Getting contributors for PowerShell (Getting additional results [page 4/13]))
VERBOSE: Accessing [Get] https://api.github.com/repositories/49609581/contributors?page=4 [Timeout = 0)]
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 28285-byte response of content type application/json
VERBOSE: Getting contributors for PowerShell (Getting additional results [page 5/13]))
VERBOSE: Accessing [Get] https://api.github.com/repositories/49609581/contributors?page=5 [Timeout = 0)]
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 27997-byte response of content type application/json
VERBOSE: Getting contributors for PowerShell (Getting additional results [page 6/13]))
VERBOSE: Accessing [Get] https://api.github.com/repositories/49609581/contributors?page=6 [Timeout = 0)]
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 27924-byte response of content type application/json
VERBOSE: Getting contributors for PowerShell (Getting additional results [page 7/13]))
VERBOSE: Accessing [Get] https://api.github.com/repositories/49609581/contributors?page=7 [Timeout = 0)]
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 28414-byte response of content type application/json
VERBOSE: Getting contributors for PowerShell (Getting additional results [page 8/13]))
VERBOSE: Accessing [Get] https://api.github.com/repositories/49609581/contributors?page=8 [Timeout = 0)]
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 28499-byte response of content type application/json
VERBOSE: Getting contributors for PowerShell (Getting additional results [page 9/13]))
VERBOSE: Accessing [Get] https://api.github.com/repositories/49609581/contributors?page=9 [Timeout = 0)]
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 28309-byte response of content type application/json
VERBOSE: Getting contributors for PowerShell (Getting additional results [page 10/13]))
VERBOSE: Accessing [Get] https://api.github.com/repositories/49609581/contributors?page=10 [Timeout = 0)]
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 28079-byte response of content type application/json
VERBOSE: Getting contributors for PowerShell (Getting additional results [page 11/13]))
VERBOSE: Accessing [Get] https://api.github.com/repositories/49609581/contributors?page=11 [Timeout = 0)]
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 28531-byte response of content type application/json
VERBOSE: Getting contributors for PowerShell (Getting additional results [page 12/13]))
VERBOSE: Accessing [Get] https://api.github.com/repositories/49609581/contributors?page=12 [Timeout = 0)]
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 28199-byte response of content type application/json
VERBOSE: Getting contributors for PowerShell (Getting additional results [page 13/13]))
VERBOSE: Accessing [Get] https://api.github.com/repositories/49609581/contributors?page=13 [Timeout = 0)]
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 16816-byte response of content type application/json
VERBOSE: Telemetry has been disabled via configuration. Skipping reporting event [Get-GitHubRepositoryContributor].     
378

Suggested solution to the issue

N/A

Requested Assignment

N/A

Operating System

OsName               : Microsoft Windows 10 Enterprise
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

PowerShell Version

PSVersion                      7.3.2
PSEdition                      Core
GitCommitId                    7.3.2
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module Version

Running: 0.16.1
Installed: 0.16.1

Activity

  1. added
    bugThis relates to a bug in the existing module.
    triage neededAn issue that needs to be reviewed by a member of the team.
    on Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis relates to a bug in the existing module.triage neededAn issue that needs to be reviewed by a member of the team.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions