Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing contributors from Get-GitHubRepositoryContributor #397

Open
Liturgist opened this issue Feb 14, 2023 · 0 comments
Open

Missing contributors from Get-GitHubRepositoryContributor #397

Liturgist opened this issue Feb 14, 2023 · 0 comments
Labels
bug This relates to a bug in the existing module. triage needed An issue that needs to be reviewed by a member of the team.

Comments

@Liturgist
Copy link

Liturgist commented Feb 14, 2023

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
@Liturgist Liturgist added bug This relates to a bug in the existing module. triage needed An issue that needs to be reviewed by a member of the team. labels Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This relates to a bug in the existing module. triage needed An issue that needs to be reviewed by a member of the team.
Projects
None yet
Development

No branches or pull requests

1 participant