Get-GitLabProjectEvents.ps1
function Get-GitLabProjectEvents { <# .SYNOPSIS Gets GitLab Project Events. .DESCRIPTION Gets GitLab Project Events. .EXAMPLE Get-GitLabProjectEvents -ProjectID 20 --------------------------------------------------------------- Gets events for project 20 #> [CmdletBinding()] [Alias()] [OutputType()] Param ( # The ID of the project [Parameter(HelpMessage = 'ProjectID', Mandatory = $true)] [Alias('ID')] [int]$ProjectID, # Existing GitlabConnector Object, can be retrieved with Get-GitlabConnect [Parameter(HelpMessage = 'Specify Existing GitlabConnector', Mandatory = $false, DontShow = $true)] [psobject]$GitlabConnect = (Get-GitlabConnect) ) $httpmethod = 'get' $apiurl = "projects/$ProjectID/events" $parameters = @{} $GitlabConnect.callapi($apiurl,$httpmethod,$parameters) } |