Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PSModule/GitHub
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.36.12
Choose a base ref
...
head repository: PSModule/GitHub
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.36.13
Choose a head ref
  • 2 commits
  • 25 files changed
  • 3 contributors

Commits on Sep 10, 2025

  1. 🩹 [Patch]: Adjust GitHubRepository format to show aligned sizes (#507)

    This pull request updates the file size formatting logic in
    `GitHubFormatter` to ensure consistent output with two decimal places
    for all units, including bytes, and adjusts the related tests to match
    the new output format. The most important changes are grouped below:
    
    - Fixes #506
    
    File size formatting improvements:
    
    * Modified `FormatFileSize` in `GitHubFormatter.ps1` to always display
    byte values with two decimal places (e.g., "0.00 B" instead of "0 B").
    
    Test updates for new formatting:
    
    * Updated test cases in `GitHubFormatter.Tests.ps1` to expect
    two-decimal formatting for bytes and adjusted regex patterns to match
    the new output (e.g., `\d+[.,]\d{2}\s{2}B`).
    * Refactored the test to directly validate the output of the formatter
    against the new expected patterns, ensuring the tests accurately reflect
    the updated formatting logic.
    * Removed outdated comments and redundant test setup to streamline and
    clarify the test file.
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
    Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
    Co-authored-by: Marius Storhaug <marstor@hotmail.com>
    3 people authored Sep 10, 2025
    Configuration menu
    Copy the full SHA
    8972167 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2025

  1. 🩹 [Patch]: Fix and align argument completers (#508)

    This pull request introduces several improvements and refactors across
    argument completer scripts, license and gitignore handling, and data
    formatting. The main goals are to standardize completer parameter usage,
    enhance context-awareness and filtering, improve data sorting and
    output, and clarify the license data model.
    
    - Fixes #486
    
    **Key changes:**
    
    ### Argument Completer Improvements and Refactoring
    
    * Updated all argument completers to use `$fakeBoundParameters` instead
    of `$fakeBoundParameter`, ensuring consistency and enabling
    context-aware completions across the module. Added filtering and context
    parameters where appropriate.
    [[1]](diffhunk://#diff-22b2affe76b37eaa2b3cdee057e05020af8aa4890e0966e676e4a936d828e4e4L2-R3)
    [[2]](diffhunk://#diff-22b2affe76b37eaa2b3cdee057e05020af8aa4890e0966e676e4a936d828e4e4L15-R18)
    [[3]](diffhunk://#diff-775e15ad0206292ebf4f5d7659e274c2384326d9b0e9821b96280186769ba4d8L2-R3)
    [[4]](diffhunk://#diff-ba8339f3d5f55d7346080dc2bd24097cc8d0bc87fc027a237bfa53617224b25eL1-R26)
    [[5]](diffhunk://#diff-7d92b4f19fe6156533814de81d6618281c98a1914b85a2373be2638b660f0a96L5-R37)
    [[6]](diffhunk://#diff-dc5710dd4a873f6fe7a26f241fd8261acdb594962c405f48982396275d6a530fR1-R12)
    [[7]](diffhunk://#diff-eb8a0b19f6f2c88ecc3a09e6544d51dc0c5d8c61ad4f8fe40d544fc182c0ac91R1-R12)
    [[8]](diffhunk://#diff-792b150421507ebd45a85f5eedf88b6fc3ead29405ceff31779746e5cd5bf7c7R1-R39)
    * Moved and refactored several completers (for `Get-GitHubLicense`,
    `Get-GitHubGitignore`, and `Connect-GitHubApp`) into their own dedicated
    `completers.ps1` files, and removed the old implementations.
    [[1]](diffhunk://#diff-de6b8171283593a8a3424849e06ab22a6d6ead1c9a677db2f91ffa2225759363L87-L94)
    [[2]](diffhunk://#diff-349ba6d13800f374dc911b94db55e01a2e50be26859901f1eccf6a94d85ee05cL70-L77)
    [[3]](diffhunk://#diff-2fcb088cf090e075faa3b356b6d08d341de9167e4e69d5270f34f7faf46e6cd7L1-L27)
    
    ### License Model and Formatting Updates
    
    * Changed the `GitHubLicense` class to clarify property names: `Key` is
    now `Name`, and `Name` is now `DisplayName`, with corresponding updates
    to the constructor and format file.
    [[1]](diffhunk://#diff-98f2ef3a26cb403b39286027e24110885695960c6c8b26853bd2af0c62e9f15eL26-R32)
    [[2]](diffhunk://#diff-98f2ef3a26cb403b39286027e24110885695960c6c8b26853bd2af0c62e9f15eL81-R82)
    [[3]](diffhunk://#diff-f3cb0ef91f12f89dc4c0b19bb042e6e2c4a71bb4040b46a853e4c71916c43e98L11-L32)
    [[4]](diffhunk://#diff-f3cb0ef91f12f89dc4c0b19bb042e6e2c4a71bb4040b46a853e4c71916c43e98L44-L85)
    * Updated the license format table to display the new property names and
    removed less relevant columns for a cleaner output.
    [[1]](diffhunk://#diff-f3cb0ef91f12f89dc4c0b19bb042e6e2c4a71bb4040b46a853e4c71916c43e98L11-L32)
    [[2]](diffhunk://#diff-f3cb0ef91f12f89dc4c0b19bb042e6e2c4a71bb4040b46a853e4c71916c43e98L44-L85)
    
    ### Context and Filtering Enhancements
    
    * Improved context handling and filtering for completers, ensuring that
    completions are accurate with respect to the current context and user
    input.
    [[1]](diffhunk://#diff-22b2affe76b37eaa2b3cdee057e05020af8aa4890e0966e676e4a936d828e4e4L15-R18)
    [[2]](diffhunk://#diff-7d92b4f19fe6156533814de81d6618281c98a1914b85a2373be2638b660f0a96L5-R37)
    [[3]](diffhunk://#diff-ba8339f3d5f55d7346080dc2bd24097cc8d0bc87fc027a237bfa53617224b25eL1-R26)
    [[4]](diffhunk://#diff-dc5710dd4a873f6fe7a26f241fd8261acdb594962c405f48982396275d6a530fR1-R12)
    [[5]](diffhunk://#diff-eb8a0b19f6f2c88ecc3a09e6544d51dc0c5d8c61ad4f8fe40d544fc182c0ac91R1-R12)
    * Added support for `App` authentication to `Get-GitHubLicense`, and
    ensured that if the context is an App, it falls back to anonymous.
    
    ### Data Sorting and Output Consistency
    
    * Ensured that results from `Get-GitHubAppInstallation` are sorted by
    `Type` and `Target` for more predictable output.
    [[1]](diffhunk://#diff-9ca965372ef6314e8f8759ce87dedff3c8a0d216fe06fda41e0fb38b89722dfeL60-R60)
    [[2]](diffhunk://#diff-9ca965372ef6314e8f8759ce87dedff3c8a0d216fe06fda41e0fb38b89722dfeR81)
    
    ### Miscellaneous
    
    * Commented out an unused `Accept` header in the gitignore API call,
    likely to prevent issues with response formatting.
    
    These changes collectively improve the maintainability, usability, and
    consistency of the module's command-line experience.
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
    Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
    Co-authored-by: Marius Storhaug <marstor@hotmail.com>
    3 people authored Sep 11, 2025
    Configuration menu
    Copy the full SHA
    25832f9 View commit details
    Browse the repository at this point in the history
Loading