Conversation
Copilot started work on behalf of
Marius Storhaug (MariusStorhaug)
February 19, 2026 07:42
View session
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update Get-GitHubRepository to use repositoryCustomPropertyValues
🚀 [Feature]: Use repositoryCustomPropertyValues GraphQL field to populate CustomProperties on GitHubRepository
Feb 19, 2026
Marius Storhaug (MariusStorhaug)
requested changes
Feb 19, 2026
Copilot started work on behalf of
Marius Storhaug (MariusStorhaug)
February 19, 2026 08:04
View session
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Marius Storhaug (MariusStorhaug)
approved these changes
Feb 19, 2026
Copilot started reviewing on behalf of
Marius Storhaug (MariusStorhaug)
February 19, 2026 08:07
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances the GitHubRepository class to populate CustomProperties directly from GitHub's GraphQL API using the newly available repositoryCustomPropertyValues field, eliminating the need for separate REST API calls to retrieve custom properties.
Changes:
- Added GraphQL query fragment for
repositoryCustomPropertyValuesto fetch up to 100 custom properties - Implemented transformation logic in both REST and GraphQL constructors to normalize custom property format to PascalCase (
Name/Value) - Maintained consistency between REST (
property_name/value) and GraphQL (propertyName/value) API response formats
…ial success scenarios
… to improve clarity
…phQL queries to prevent errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub's GraphQL API now exposes custom properties directly on the
Repositorytype viarepositoryCustomPropertyValues. This eliminates the need for a separate REST call toGet-GitHubRepositoryCustomPropertywhen fetching repositories.Changes
repositoryCustomPropertyValues(first: 100) { nodes { propertyName value } }propertyName/value) to PascalCase (Name/Value) for PowerShell conventionsproperty_name/value) to PascalCase (Name/Value) for consistencyResult
The standalone
Get-GitHubRepositoryCustomPropertyfunction remains useful for fetching only custom properties without the full repository object.Original prompt
repositoryCustomPropertyValuesGraphQL field to populate CustomProperties on GitHubRepository #554💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.