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.40.0
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.40.1
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Sep 23, 2025

  1. 🩹 [Patch]: Update Connect-GitHubApp to support installation ID para…

    …meter (#525)
    
    ## Description
    
    This pull request adds support for connecting to a GitHub App
    installation using an explicit installation ID, improving flexibility
    and usability in authentication scenarios. The main changes involve
    updating the `Connect-GitHubApp` function to accept installation IDs
    directly and adding corresponding tests to ensure the new functionality
    works as expected.
    
    **Enhancements to authentication logic:**
    
    * Updated the `Connect-GitHubApp.ps1` function to accept an `-ID`
    parameter, allowing users to connect directly to installations by their
    ID. This replaces the previous pipeline-based `Installation` parameter
    with a more flexible approach.
    * Added logic to process the new `InstallationID` parameter set,
    including verbose logging and warnings when an installation ID is not
    found.
    
    **Testing improvements:**
    
    * Added a new test case in `Apps.Tests.ps1` to verify that
    `Connect-GitHubApp` successfully connects using the `-ID` parameter for
    a single installation, checking key properties of the returned context
    object.
    * Updated test setup to retrieve the installation object for use in the
    new test scenario.
    
    **General improvements:**
    
    * Refactored code to ensure installations are only retrieved when
    necessary, improving efficiency and clarity.
    
    ## Type of change
    
    <!-- Use the check-boxes [x] on the options that are relevant. -->
    
    - [ ] 📖 [Docs]
    - [ ] 🪲 [Fix]
    - [x] 🩹 [Patch]
    - [ ] ⚠️ [Security fix]
    - [ ] 🚀 [Feature]
    - [ ] 🌟 [Breaking change]
    
    ## Checklist
    
    <!-- Use the check-boxes [x] on the options that are relevant. -->
    
    - [x] I have performed a self-review of my own code
    - [x] I have commented my code, particularly in hard-to-understand areas
    MariusStorhaug authored Sep 23, 2025
    Configuration menu
    Copy the full SHA
    c851625 View commit details
    Browse the repository at this point in the history
Loading