Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Apr 2, 2025

Description

This pull request includes enhancements to the Get-GitHubVariable function in the PowerShell module, including adding functionality to set local environment variables and handle inherited variables.

Enhancements to Get-GitHubVariable function:

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 Apr 2, 2025
@Copilot Copilot AI review requested due to automatic review settings April 2, 2025 15:42
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner April 2, 2025 15:42
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 PR enhances the Get-GitHubVariable function to support setting local environment variables and correctly handling inherited variables by precedence.

  • Added a new parameter to set local environment variables in the current session.
  • Implemented logic to manage inherited variables with a clear precedence order.
Files not reviewed (1)
  • src/functions/public/Variables/Get-GitHubVariable.ps1: Language not supported
Comments suppressed due to low confidence (1)

.github/PSModule.yml:5

  • [nitpick] Please confirm that skipping tests here is intentional; ensure that critical behaviors are adequately covered by alternative testing methods if tests are being skipped.
Skip: true

@MariusStorhaug MariusStorhaug merged commit a7386b2 into main Apr 2, 2025
10 checks passed
@MariusStorhaug MariusStorhaug deleted the SetLocalEnv branch April 2, 2025 19:46
@github-project-automation github-project-automation bot moved this from Todo to Done in GitHub PowerShell Module Apr 2, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2025

Module GitHub - 0.20.1 published to the PowerShell Gallery.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2025

GitHub release for GitHub v0.20.1 has been created.

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

🩹 [Patch]: Enable support fror getting env vars locally from a GitHub Env

1 participant