Skip to content

Conversation

@MariusStorhaug
Copy link
Member

Description

This pull request removes the AppID property from the GitHubApp class and eliminates its usage throughout the codebase. The changes help simplify the class structure and ensure consistency in object construction.

Class structure simplification:

  • Removed the AppID property from the GitHubApp class definition in src/classes/public/App/GitHubApp.ps1.
  • Removed assignment of AppID in the GitHubApp constructor in src/classes/public/App/GitHubApp.ps1.

Object construction consistency:

  • Removed the app_id property when creating GitHubApp objects in both constructors of the GitHubAppInstallation class in src/classes/public/App/GitHubAppInstallation.ps1. [1] [2]

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

Copilot AI review requested due to automatic review settings September 21, 2025 13:21
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner September 21, 2025 13:21
@MariusStorhaug MariusStorhaug added the major Major change, version x.0.0 increase label Sep 21, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request removes the AppID property from the GitHubApp class to simplify the class structure and ensure consistency in object construction. The change eliminates redundant functionality since the ID property already serves the same purpose as the AppID property.

  • Removed the AppID property declaration and its initialization in the GitHubApp constructor
  • Updated GitHubAppInstallation constructors to no longer pass the app_id parameter when creating GitHubApp objects

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/classes/public/App/GitHubApp.ps1 Removed AppID property declaration and assignment in constructor
src/classes/public/App/GitHubAppInstallation.ps1 Removed app_id parameter from GitHubApp object creation in both constructors

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@MariusStorhaug MariusStorhaug added minor and removed major Major change, version x.0.0 increase labels Sep 21, 2025
@MariusStorhaug MariusStorhaug self-assigned this Sep 21, 2025
@MariusStorhaug MariusStorhaug changed the title 🚀 [Feature]: Remove AppID from GitHubApp 🚀 [Breaking pre-release]: Remove AppID from GitHubApp Sep 21, 2025
@MariusStorhaug MariusStorhaug merged commit 5bde93c into main Sep 21, 2025
11 of 13 checks passed
@MariusStorhaug MariusStorhaug deleted the appID branch September 21, 2025 15:08
@github-actions
Copy link
Contributor

Module GitHub - 0.39.0 published to the PowerShell Gallery.

@github-actions
Copy link
Contributor

GitHub release for GitHub v0.39.0 has been created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants