Skip to content

🚀 [Feature]: Configure PowerShell ErrorView settings #49

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

Merged
merged 1 commit into from
Apr 26, 2025

Conversation

MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Apr 26, 2025

🚀 New Feature: ErrorView Configuration

This release introduces a new feature to configure the PowerShell $ErrorView variable in the GitHub Action. This also sets the default to NormalView whereas the default in PowerShell is ConciseView. NormalView provides more information that would be great to get when troubleshooting errors in GitHub workflows. Users can still override this by adding their own settings in the provided script or using the input to set a different value when building actions or workflows.

Details

  • Introduced the ErrorView input in action.yml, including its description, default value ('NormalView'), and marking it as optional.
  • The input is mapped to the new environment variable PSMODULE_GITHUB_SCRIPT_INPUT_ErrorView in the action.yml file.
  • The environment variable is validated using wildcard matching against a predefined list of valid views, applies the matched view setting.
  • Added a description for the new ErrorView option in the README.md file. This option allows users to configure the $ErrorView variable using full or partial names of valid views.

@MariusStorhaug MariusStorhaug self-assigned this Apr 26, 2025
@Copilot Copilot AI review requested due to automatic review settings April 26, 2025 08:41
Copy link

@Copilot 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 PR adds a new input option to configure the PowerShell $ErrorView variable in the GitHub Action. Key changes include:

  • Adding the ErrorView input configuration in action.yml with a default value of 'NormalView'
  • Mapping the new input to the corresponding environment variable in action.yml
  • Updating the README.md documentation to describe the new ErrorView option

Reviewed Changes

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

File Description
action.yml New ErrorView input added and mapped to an environment variable.
README.md Documentation updated to include the new ErrorView configuration.
Files not reviewed (1)
  • scripts/init.ps1: Language not supported

@MariusStorhaug MariusStorhaug changed the title 🩹 [Patch]: Add 'ErrorView' input to configure PowerShell error display settings 🚀 [Feature]: Configure PowerShell ErrorView settings Apr 26, 2025
@MariusStorhaug MariusStorhaug merged commit d5ee054 into main Apr 26, 2025
61 checks passed
@MariusStorhaug MariusStorhaug deleted the errorView branch April 26, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant