Skip to content

Conversation

@MariusStorhaug
Copy link
Member

Description

This pull request simplifies the logging logic in the scripts/main.ps1 script by removing several redundant log groups related to GitHub event context. Only the essential GitHub context and environment variables are now logged.

Logging simplification:

  • Removed log groups for GITHUB_EVENT, GITHUB_EVENT_ENTERPRISE, GITHUB_EVENT_ORGANIZATION, and GITHUB_EVENT_REPOSITORY from the script to reduce unnecessary output and streamline context logging.

@MariusStorhaug MariusStorhaug self-assigned this Oct 5, 2025
Copilot AI review requested due to automatic review settings October 5, 2025 09:10
Copy link

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 simplifies the logging logic in the scripts/main.ps1 script by removing redundant GitHub event context logging groups to reduce unnecessary output and streamline context logging.

  • Removed four specific GitHub event context log groups that were providing duplicate or overly granular information
  • Maintained essential GitHub context and environment variable logging for debugging purposes
Comments suppressed due to low confidence (1)

scripts/main.ps1:1

  • The removed log group was incorrectly logging the entire $CONTEXT_GITHUB object instead of $CONTEXT_GITHUB.event.enterprise. This was a bug that has been fixed by removal.
[CmdletBinding()]

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

@MariusStorhaug MariusStorhaug merged commit 4390bce into main Oct 5, 2025
18 of 22 checks passed
@MariusStorhaug MariusStorhaug deleted the cleanup branch October 5, 2025 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants