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: 4bf12ff
Choose a base ref
...
head repository: PSModule/GitHub
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8427e91
Choose a head ref
  • 1 commit
  • 7 files changed
  • 1 contributor

Commits on Sep 6, 2025

  1. 🩹 [Patch]: Add function to remove app installation as a GitHub App (#483

    )
    
    ## Description
    
    This pull request introduces improvements to the GitHub App
    uninstallation workflow, adding more flexible and robust ways to
    uninstall apps both as an authenticated app and as an enterprise
    installation. The changes include new internal functions, enhanced
    parameter handling, improved context validation, and expanded test
    coverage to ensure reliability and clarity in uninstall scenarios.
    
    **Enhancements to GitHub App Uninstallation:**
    
    * Added new function `Uninstall-GitHubAppAsApp` to support uninstalling
    app installations as the authenticated app, with support for
    confirmation and verbose output.
    * Updated `Uninstall-GitHubAppOnEnterpriseOrganization` to clarify its
    purpose, improve parameter validation, add confirmation support, and
    provide better feedback on successful uninstalls.
    
    **Expanded and Flexible Public API:**
    
    * Refactored `Uninstall-GitHubApp` to support multiple uninstallation
    modes (by target, by object, by installation ID, by app slug), improved
    parameter sets, and added context and authentication checks for safer
    operation.
    
    **Documentation and Examples:**
    
    * Added a comprehensive example script
    `examples/Apps/UninstallingApps.ps1` showing various uninstallation
    scenarios for both app and enterprise contexts.
    
    **Testing and Reliability:**
    
    * Improved organization tests to clean up existing app installations
    before and after tests, and added a test to verify app uninstall
    behavior after organization deletion.
    
    **Other Improvements:**
    
    * Increased robustness in token revocation error handling in
    `Disconnect-GitHubAccount`.
    * Fixed a minor property default in `GitHubContext.Types.ps1xml` for
    better handling of missing token expiration.
    * Updated `.github/PSModule.yml` to enable and skip specific test and
    build steps as appropriate.
    
    ## 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 6, 2025
    Configuration menu
    Copy the full SHA
    8427e91 View commit details
    Browse the repository at this point in the history
Loading