Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Jun 2, 2025

Description

This pull request introduces a new PowerShell function, Set-GitHubLogGroup, in the scripts/Helpers/Helpers.psm1 file. The function provides a DSL approach for grouping log lines in GitHub Actions workflows, improving log organization and readability.

New functionality for GitHub Actions:

  • scripts/Helpers/Helpers.psm1: Added the Set-GitHubLogGroup function, which encapsulates commands within a log group for GitHub Actions. It includes support for creating named log groups using the -Name parameter and executing a provided ScriptBlock. An alias LogGroup is also defined for convenience.

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 Copilot AI review requested due to automatic review settings June 2, 2025 00:01
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 adds a new PowerShell function, Set-GitHubLogGroup, to improve log grouping in GitHub Actions workflows.

  • Introduces Set-GitHubLogGroup with a -Name parameter and a -ScriptBlock to encapsulate logged commands.
  • Provides an alias, LogGroup, for a more concise DSL syntax.

@MariusStorhaug MariusStorhaug self-assigned this Jun 2, 2025
@MariusStorhaug MariusStorhaug merged commit 33fe31e into main Jun 2, 2025
13 checks passed
@MariusStorhaug MariusStorhaug deleted the NewFunc branch June 2, 2025 00:04
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.

1 participant