Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 [Feature]: GitHub App creation and installation management #281

Merged
merged 76 commits into from
Feb 5, 2025

Conversation

MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Jan 24, 2025

Description

Added functions for Enterprise App management.

src/functions/private/Apps/GitHub Apps/Get-GitHubEnterpriseOrganizationAppInstallation.ps1

General alignments:

  • Adds a guidance file that defines conventions for a module CodingStandards.md
    • will be promoted to the docs repository later.
  • Remove most re-throw try{...} catch { throw $_ } statements.
  • Added #Requires -Modules statements to ensure necessary modules are marked as requirements for the module.
  • Parameter hashtables for Invoke-GitHubAPI is now sorted like:
    • Method: UPPERCASED
    • Endpoint
    • Header related stuff
    • Body related stuff
    • Context
  • Function name aligning:
  • Parameter name aligning:
    • Changed Repo to Repository - throughout the module. The repo abbreviation can still be used, but in classes, object and commands, we standardize on Repository.
  • Clean up aliases:
    • Remove all but one alias for Connect/Disconnect-GitHub
    • Remove org alias for Organization parameters

Private functions:

  • Made Context mandatory in private functions
  • Removed Resolve-GitHubContext in private functions

Public functions:

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

@MariusStorhaug MariusStorhaug self-assigned this Jan 24, 2025
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner January 24, 2025 13:24
Copy link
Contributor

Module [GitHub - v0.12.8-AppInstallations001] published to the PowerShell Gallery.

Copy link
Contributor

GitHub release for GitHub v0.12.8-AppInstallations001 has been created.

Copy link
Contributor

Module GitHub - 0.12.8-AppInstallations002 published to the PowerShell Gallery.

Copy link
Contributor

GitHub release for GitHub v0.12.8-AppInstallations002 has been created.

Copy link
Contributor

Module GitHub - 0.13.2-AppInstallations001 published to the PowerShell Gallery.

Copy link
Contributor

GitHub release for GitHub v0.13.2-AppInstallations001 has been created.

…adjust parameter requirement for Get-GitHubEnterpriseOrganization
Copy link
Contributor

Module GitHub - 0.13.3-AppInstallations001 published to the PowerShell Gallery.

Copy link
Contributor

GitHub release for GitHub v0.13.3-AppInstallations001 has been created.

Copy link
Contributor

Module GitHub - 0.13.3-AppInstallations002 published to the PowerShell Gallery.

Copy link
Contributor

GitHub release for GitHub v0.13.3-AppInstallations002 has been created.

Copy link
Contributor

Module GitHub - 0.13.3-AppInstallations003 published to the PowerShell Gallery.

Copy link
Contributor

GitHub release for GitHub v0.13.3-AppInstallations003 has been created.

Copy link
Contributor

Module GitHub - 0.13.3-AppInstallations004 published to the PowerShell Gallery.

…object` in multiple functions for improved flexibility
…ases in Disconnect-GitHubAccount for improved clarity and usability
…ppSlug' for improved clarity and set default parameter set for CmdletBinding
…parameter set for improved consistency and usability
…ccessToken and fix formatting issues in multiple scripts
…i for clarity and update related examples and tests
…er with 'Path' in Get-GitHubEmoji for improved clarity
…try-catch blocks and directly processing input
…n workflow; add GetDefaultsFromContext utility script
@MariusStorhaug MariusStorhaug merged commit e01341e into main Feb 5, 2025
20 checks passed
@MariusStorhaug MariusStorhaug deleted the AppInstallations branch February 5, 2025 13:02
Copy link
Contributor

github-actions bot commented Feb 5, 2025

Module GitHub - v0.14.0 published to the PowerShell Gallery.

Copy link
Contributor

github-actions bot commented Feb 5, 2025

GitHub release for GitHub v0.14.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
1 participant