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]: Add a command for Git config #173

Merged
merged 6 commits into from
Nov 30, 2024
Merged

🩹 [Patch]: Add a command for Git config #173

merged 6 commits into from
Nov 30, 2024

Conversation

MariusStorhaug
Copy link
Contributor

@MariusStorhaug MariusStorhaug commented Nov 30, 2024

Description

Introducing new functions to set and Git configuration. Now a Git config is set automatically when running 'Connect-GitHub' using a IAT token.

Function changes:

  • Added a new function Get-GitHubGitConfig to retrieve the global Git configuration.
  • Added a new function Set-GitHubGitConfig to set the Git configuration for a specified GitHub context. Gets details from the selected context and sets the git config.
  • Updated the Set-GitHubContext function to call Set-GitHubGitConfig when the AuthType is 'IAT' and running in GitHub Actions (GHA).

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 requested a review from a team as a code owner November 30, 2024 13:47
@MariusStorhaug MariusStorhaug changed the title Add a command for Git config 🩹 [Patch]: Add a command for Git config Nov 30, 2024
@MariusStorhaug MariusStorhaug self-assigned this Nov 30, 2024
…ection and refining IAT authentication handling
@MariusStorhaug MariusStorhaug merged commit 7614085 into main Nov 30, 2024
20 checks passed
@MariusStorhaug MariusStorhaug deleted the configGit branch November 30, 2024 15:07
Copy link
Contributor

Module [GitHub - 0.9.8] published to the PowerShell Gallery.

Copy link
Contributor

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

🚀[Feature]: Configure git
1 participant