Skip to content

🚀 [Feature]: Teams and Workflows cleanup #368

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 21 commits into from
Apr 26, 2025
Merged

🚀 [Feature]: Teams and Workflows cleanup #368

merged 21 commits into from
Apr 26, 2025

Conversation

MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Apr 24, 2025

Description

This pull request introduces several updates focusing on enhancements to the Teams and Workflows functions. Key changes include adding the Url property for GitHub teams, improving query structures, refining parameters for public functions, and updating documentation links for workflows.

Enhancements to Teams Functionality

  • Added a new Url property to the GitHubTeam class and updated related queries (Get-GitHubTeamBySlug, Get-GitHubTeamListByOrg, and New-GitHubTeam) to include the url field in their responses.
  • ⚠️ Refined parameter handling for several public functions (Get-GitHubTeam, New-GitHubTeam, Remove-GitHubTeam, Update-GitHubTeam) by renaming, reordering and clarifying mandatory parameters like Organization and Slug (previously Name).
  • Simplified logic for handling ParentTeamID in New-GitHubTeam by replacing a conditional check with direct nullable type usage.

Documentation and Query Improvements

  • Updated .NOTES and .LINK sections in the documentation for all workflow-related functions to ensure accurate links and better clarity.

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 24, 2025
@Copilot Copilot AI review requested due to automatic review settings April 24, 2025 19:52
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner April 24, 2025 19:52
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 (16)
  • src/classes/public/Teams/GitHubTeam.ps1: Language not supported
  • src/functions/private/Teams/Get-GitHubTeamBySlug.ps1: Language not supported
  • src/functions/private/Teams/Get-GitHubTeamListByOrg.ps1: Language not supported
  • src/functions/public/Teams/Get-GitHubTeam.ps1: Language not supported
  • src/functions/public/Teams/New-GitHubTeam.ps1: Language not supported
  • src/functions/public/Teams/Remove-GitHubTeam.ps1: Language not supported
  • src/functions/public/Teams/Update-GitHubTeam.ps1: Language not supported
  • src/functions/public/Workflows/Disable-GitHubWorkflow.ps1: Language not supported
  • src/functions/public/Workflows/Enable-GitHubWorkflow.ps1: Language not supported
  • src/functions/public/Workflows/Get-GitHubWorkflow.ps1: Language not supported
  • src/functions/public/Workflows/Runs/Get-GitHubWorkflowRun.ps1: Language not supported
  • src/functions/public/Workflows/Runs/Remove-GitHubWorkflowRun.ps1: Language not supported
  • src/functions/public/Workflows/Runs/Restart-GitHubWorkflowRun.ps1: Language not supported
  • src/functions/public/Workflows/Runs/Stop-GitHubWorkflowRun.ps1: Language not supported
  • src/functions/public/Workflows/Start-GitHubWorkflow.ps1: Language not supported
  • tests/Teams.Tests.ps1: Language not supported

@MariusStorhaug MariusStorhaug moved this from Todo to In Progress in GitHub PowerShell Module Apr 24, 2025
@MariusStorhaug MariusStorhaug changed the title Gql mapping 🩹 [Patch]: Teams and Workflows cleanup Apr 24, 2025
…nization' parameter and update related documentation
…TeamBySlug and Get-GitHubTeamListByOrg functions
…ps1 and Variables.Tests.ps1 to use $repo instead of $repoPrefix
…nd Variables.Tests.ps1 for consistency and clarity
…s.Tests.ps1 and Variables.Tests.ps1 for clarity
@MariusStorhaug MariusStorhaug changed the title 🩹 [Patch]: Teams and Workflows cleanup 🚀 [Feature]: Teams and Workflows cleanup Apr 26, 2025
@MariusStorhaug MariusStorhaug merged commit 1d98daf into main Apr 26, 2025
59 of 71 checks passed
@MariusStorhaug MariusStorhaug deleted the gqlMapping branch April 26, 2025 21:13
@github-project-automation github-project-automation bot moved this from In Progress to Done in GitHub PowerShell Module Apr 26, 2025
Copy link
Contributor

Module GitHub - 0.26.0 published to the PowerShell Gallery.

Copy link
Contributor

GitHub release for GitHub v0.26.0 has been created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant