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

🩹 [Patch]: Move functionality of setting local environment variable #341

Merged
merged 2 commits into from
Apr 4, 2025

Conversation

MariusStorhaug
Copy link
Member

Description

This pull request introduces a new function Export-GitHubVariable to the PowerShell module for handling exporting GitHub variables to the local environment, and updates the existing Get-GitHubVariable function by removing the SetLocalEnvironment parameter.

New functionality:

  • Export-GitHubVariable: Added the Export-GitHubVariable function to export GitHub variables to the local environment with support for different scopes (Process, User, Machine).

Updates to existing functionality:

  • Get-GitHubVariable: Removed the SetLocalEnvironment parameter and the associated logic to set environment variables locally.

Testing:

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

…Variable` and add `Export-GitHubVariable` function
@MariusStorhaug MariusStorhaug self-assigned this Apr 4, 2025
@Copilot Copilot bot review requested due to automatic review settings April 4, 2025 08:35
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner April 4, 2025 08:35
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.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (3)
  • src/functions/public/Variables/Export-GitHubVariable.ps1: Language not supported
  • src/functions/public/Variables/Get-GitHubVariable.ps1: Language not supported
  • tests/Variables.Tests.ps1: Language not supported

@MariusStorhaug MariusStorhaug merged commit 6cc6177 into main Apr 4, 2025
10 checks passed
@MariusStorhaug MariusStorhaug deleted the ExportVars branch April 4, 2025 13:22
@github-project-automation github-project-automation bot moved this from Todo to Done in GitHub PowerShell Module Apr 4, 2025
Copy link
Contributor

github-actions bot commented Apr 4, 2025

Module GitHub - 0.20.4 published to the PowerShell Gallery.

Copy link
Contributor

github-actions bot commented Apr 4, 2025

GitHub release for GitHub v0.20.4 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.

1 participant