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

SA-3610 GHA Migration #64

Merged
merged 104 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from 103 commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
21c3f8f
workflow files
gweinjc Nov 6, 2023
5e0c540
publish release [skip ci]
jworkmanjc Nov 6, 2023
137d91c
add new v1 rule and ignore not found find & replace in V2
jworkmanjc Nov 7, 2023
3d75ef2
Update jcapi-powershell-ci.yml
gweinjc Nov 7, 2023
f2d3dc7
remove build and replace with testing
gweinjc Nov 7, 2023
6564a06
MTP test
gweinjc Nov 7, 2023
5a357e3
next build
jworkmanjc Nov 7, 2023
fdd0009
Merge branch 'SA-3610_GHA_Workflow_Migrations' of github.com:TheJumpC…
jworkmanjc Nov 7, 2023
7ac25d9
do not ignore required module files
jworkmanjc Nov 7, 2023
6adf639
build before test
jworkmanjc Nov 7, 2023
6fd439c
ci job name update
jworkmanjc Nov 7, 2023
d942ceb
Build sdk
jworkmanjc Nov 7, 2023
7af8083
sdk
jworkmanjc Nov 7, 2023
df8722f
run clean script on linux host
jworkmanjc Nov 7, 2023
34c8437
update tests for ubuntu
jworkmanjc Nov 7, 2023
110eb0a
exclude MTP tests and build v1 before v2 tests
jworkmanjc Nov 7, 2023
2549cf2
build as artifacts before test
jworkmanjc Nov 7, 2023
67d9931
download artifacts outside matrix
jworkmanjc Nov 7, 2023
7104b10
update path for download atrifact
jworkmanjc Nov 7, 2023
610375a
path name
jworkmanjc Nov 7, 2023
19c30bb
path
jworkmanjc Nov 7, 2023
d198eb5
upload all artifacts
jworkmanjc Nov 7, 2023
4ec08e6
artifact path
jworkmanjc Nov 7, 2023
28d87c0
artifact path
jworkmanjc Nov 7, 2023
01e63f1
build test changes
jworkmanjc Nov 7, 2023
861bef6
artifact build and test
jworkmanjc Nov 7, 2023
07c4f36
indentation
jworkmanjc Nov 7, 2023
45c2394
Order of actions
jworkmanjc Nov 7, 2023
99fe863
test build and zip
jworkmanjc Nov 7, 2023
622125c
artifact compress path
jworkmanjc Nov 7, 2023
fc453b1
detination paths
jworkmanjc Nov 7, 2023
7d0bbd2
expand archive to correct path
jworkmanjc Nov 7, 2023
a76a775
test v2 + invoke pester
jworkmanjc Nov 7, 2023
7d688c8
download v1 artifact if testing v2
jworkmanjc Nov 7, 2023
9991b82
v1 artifact path
jworkmanjc Nov 7, 2023
7634a65
re-test v2 with skipped email test
jworkmanjc Nov 7, 2023
9a89c60
skip email tests + random application name
jworkmanjc Nov 8, 2023
d669357
skip email tests
jworkmanjc Nov 8, 2023
92ea0ad
invoke pester tests
jworkmanjc Nov 8, 2023
36a86b8
Missing " for invoke-pester
jworkmanjc Nov 8, 2023
1a2e68e
import-module param
jworkmanjc Nov 8, 2023
341471c
support repo location
jworkmanjc Nov 8, 2023
0b8da6c
path and test module after build
jworkmanjc Nov 8, 2023
ce54d95
support path
jworkmanjc Nov 8, 2023
04865e9
just test path
jworkmanjc Nov 8, 2023
b8545fb
tree pwd
jworkmanjc Nov 8, 2023
9753487
path and artifact change for invoke pester
jworkmanjc Nov 8, 2023
7b8c290
test support checkout
kmaranionjc Nov 8, 2023
cd7a741
Revert "test support checkout"
jworkmanjc Nov 8, 2023
63f5059
path
jworkmanjc Nov 8, 2023
f852d12
ignore build for test
jworkmanjc Nov 8, 2023
be1670b
case sensitive path
jworkmanjc Nov 8, 2023
33e5fbc
test pester after artifact build
jworkmanjc Nov 8, 2023
8d0c8d4
setup org path
jworkmanjc Nov 8, 2023
9937554
list modules skip deployment tests
jworkmanjc Nov 8, 2023
0392378
disable parallel tests
jworkmanjc Nov 8, 2023
e5b601a
skip connectJC tests
jworkmanjc Nov 8, 2023
e779c3a
test module validation
kmaranionjc Nov 8, 2023
5c58a60
test
kmaranionjc Nov 8, 2023
39b8c02
module validation + changelog [skip ci]
jworkmanjc Nov 8, 2023
455fe55
test
kmaranionjc Nov 8, 2023
b1de6f7
test
kmaranionjc Nov 8, 2023
58bdd57
Merge branch 'SA-3610_GHA_Workflow_Migrations' into SA-3610_GHA_Workf…
jworkmanjc Nov 9, 2023
d11aaa2
Merge pull request #65 from TheJumpCloud/SA-3610_GHA_Workflow_Migrati…
jworkmanjc Nov 9, 2023
ce94fef
restore tasks from ci
jworkmanjc Nov 9, 2023
636bfe4
no note require merge
jworkmanjc Nov 9, 2023
9b99df3
fix syntax issue with modulevalidation
kmaranionjc Nov 9, 2023
47974ad
changelog and psd1 date update
jworkmanjc Nov 9, 2023
00de783
Merge branch 'SA-3610_GHA_Workflow_Migrations' of github.com:TheJumpC…
jworkmanjc Nov 9, 2023
a10b994
set variables from setup org
jworkmanjc Nov 9, 2023
2602346
valuidate backup/ association without other tests
jworkmanjc Nov 10, 2023
d5b376a
update backup org tests for linux filesystem
jworkmanjc Nov 10, 2023
837b009
test backupOrg with different path
jworkmanjc Nov 10, 2023
467a4b3
Add run command endpoint
kmaranionjc Nov 10, 2023
d949552
Merge branch 'SA-3610_GHA_Workflow_Migrations' of https://github.com/…
kmaranionjc Nov 10, 2023
d5c065a
publish module locally and install for parallel jobs
jworkmanjc Nov 10, 2023
43e2c9c
Merge branch 'SA-3610_GHA_Workflow_Migrations' of github.com:TheJumpC…
jworkmanjc Nov 10, 2023
f645fd3
CI path for module publish
jworkmanjc Nov 10, 2023
4ec13ae
revert to tags
jworkmanjc Nov 10, 2023
097b1e4
validate module swagger specs are up to date
jworkmanjc Nov 10, 2023
ff67165
do not ignore custom/generated
jworkmanjc Nov 10, 2023
4860d35
SDK commit with Start-JCSdkCommand
jworkmanjc Nov 10, 2023
a4c7c5f
Changelog date
jworkmanjc Nov 10, 2023
5cef299
add Build.ps1
jworkmanjc Nov 10, 2023
31eab4d
require dependancies for module validation [skip ci]
jworkmanjc Nov 10, 2023
16567b3
Add run command test
kmaranionjc Nov 10, 2023
4a4e550
Merge branch 'SA-3610_GHA_Workflow_Migrations' of https://github.com/…
kmaranionjc Nov 10, 2023
0a8a384
Update Build + automatic gitignore changes
jworkmanjc Nov 13, 2023
256192f
SDK date + changelog
jworkmanjc Nov 13, 2023
aee1a1c
use chached pwsh modules before validate module
jworkmanjc Nov 13, 2023
f010587
test release workflow
jworkmanjc Nov 13, 2023
b581814
test release workflow
jworkmanjc Nov 13, 2023
8802e3d
release steps
jworkmanjc Nov 13, 2023
9cccabc
changelog capture
jworkmanjc Nov 13, 2023
c848a07
quotes
jworkmanjc Nov 13, 2023
31aa293
pack on CI + draft changes
jworkmanjc Nov 13, 2023
2a1735b
draft + pack variables
jworkmanjc Nov 13, 2023
ed0648a
setuporg + zip artifacts for release
jworkmanjc Nov 13, 2023
8d46ec9
ignore datetime in swagger spec diff
jworkmanjc Nov 13, 2023
540ba84
start jcsdkCommand tests
jworkmanjc Nov 13, 2023
31d3352
skip pester tests + update date
jworkmanjc Nov 14, 2023
354550b
revert release pipeline
jworkmanjc Nov 14, 2023
8d14f8f
cleanup + codeowners
jworkmanjc Nov 14, 2023
28cf41a
remove circleCI
jworkmanjc Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# jcapi-powershell Code Owners

* @TheJumpCloud/solutions-architecture
320 changes: 320 additions & 0 deletions .github/workflows/jcapi-powershell-ci.yml

Large diffs are not rendered by default.

113 changes: 113 additions & 0 deletions .github/workflows/jcapi-powershell-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: Release and Publish SDKs

on:
pull_request:
types:
- closed
branches:
- master
jobs:
Check-If-Merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Check if Merged
run: echo {GITHUB_HEAD_REF} merged into master
Check-PR-Labels:
needs: ["Check-If-Merged"]
runs-on: ubuntu-latest
outputs:
RELEASE_TYPE: ${{ steps.validate.outputs.RELEASE_TYPE }}
steps:
- name: Validate-PR-Version-Labels
id: validate
shell: pwsh
run: |
$PR_LABEL_LIST=$(curl -s "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels" | jq -r '.[].name')
if ("SDK" -in $PR_LABEL_LIST) {
write-host "Starting Build for PowerShell SDK Release"
}
# validate type from label list:
$types = @('major', 'minor', 'patch', 'manual')
$typeCount = 0
foreach ($item in $PR_LABEL_LIST) {
if ($item -in $types) {
write-host "$item"
$typeCount += 1
$RELEASE_TYPE = $item
}
}
if ($typeCount -eq 1) {
echo "RELEASE_TYPE=$RELEASE_TYPE" >> $env:GITHUB_OUTPUT
} else {
throw "Multiple or invalid release types were found on PR"
exit 1
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Draft-GH-Release:
needs: ['Check-PR-Labels']
runs-on: ubuntu-latest
strategy:
matrix:
sdkName: ['JumpCloud.SDK.V1','JumpCloud.SDK.V2','JumpCloud.SDK.DirectoryInsights']
steps:
- uses: actions/checkout@v4
- name: Zip SDK Directory
run: |
cd ${{ github.workspace }}/SDKs/PowerShell/${{ matrix.sdkName }}/;
zip -r ${{ github.workspace }}/SDKs/PowerShell/${{ matrix.sdkName }}.zip ./*
- name: Build Draft Release
run: |
MODULE_CAPTURE=$(grep -Po "ModuleVersion = '(\d+\.\d+\.\d+)'" ${{ github.workspace }}/SDKs/PowerShell/${{ matrix.sdkName }}/${{ matrix.sdkName }}.psd1)
VERSION=$(echo $MODULE_CAPTURE | grep -Po "(\d+\.\d+\.\d+)")
TITLE="${{ matrix.sdkName }}-$VERSION"
# Get the changelog text between the latest release # and the next sequential "## SemanticVersionNumber"
CHANGELOG=$(cat ${{ github.workspace }}/${{ matrix.sdkName }}.md | awk "/^## ${{ matrix.sdkName }}-$VERSION/{ f = 1; next } /## ${{ matrix.sdkName }}-[0-9]+.[0-9]+.[0-9]+/{ f = 0 } f")
BODY="$TITLE $CHANGELOG"
TAG="${{ matrix.sdkName }}-$VERSION"
BODY="$TITLE $CHANGELOG"
# draft release
(gh release view $TAG && echo "Release exists for $TAG") || gh release create $TAG --title "$TITLE" --notes "$BODY" --draft
# add artifact:
gh release upload $TAG ${{ github.workspace }}/SDKs/PowerShell/${{ matrix.sdkName }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Manual-Approval-Release:
needs: ["Draft-GH-Release"]
environment: PublishToPSGallery
runs-on: ubuntu-latest
steps:
- name: Manual Approval for Release
run: echo "Awaiting approval from required reviewers before continuing"
Deploy-Nupkg:
needs: ['Manual-Approval-Release']
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
SDKName: ['JumpCloud.SDK.DirectoryInsights', 'JumpCloud.SDK.V1', 'JumpCloud.SDK.V2']
steps:
- name: Download SDK Artifact
run: |
WF_NAME="jcapi-powershell-ci.yml"
ARTIFACT_NAME="build-${{ matrix.SDKName }}"
RUN_ID=`gh run --repo ${{ github.repository }} list --workflow ${WF_NAME} --branch ${{ github.ref_name }} --json databaseId --jq .[0].databaseId`
gh run --repo ${{ github.repository }} download ${RUN_ID} -n ${ARTIFACT_NAME}
# List the artifiact directory/files
ls -lR
unzip ${{ matrix.SDKName }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish SDKs
shell: pwsh
run: |
# finally remove source PSGallery and add again with the v2/package path for publishing
dotnet nuget remove source PSGallery
dotnet nuget add source "https://www.powershellgallery.com/api/v2/package" --name PSGallery
$NupkgPath = (Get-ChildItem -Path:("./${{ matrix.sdkName }}/bin/nupkg/${{ matrix.sdkName }}*.nupkg")).FullName
write-host "push ${{ matrix.sdkName }} to psgallery"
# nuget push from here:
dotnet nuget push $NupkgPath --source PSGallery --api-key $env:NuGetApiKey
env:
NuGetApiKey: ${{ secrets.NUGETAPIKEY }}
6 changes: 3 additions & 3 deletions ApiTransform.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ $TransformConfig = [Ordered]@{
# new model CommandResultByCommandID
'"title":"CommandResult","type":"object"},"commandresultslist"' = '"title":"CommandResult","type":"object"},"commandresultbycommandid":{"properties":{"_id":{"description":"The ID of the command.","type":"string"},"command":{"description":"The command that was executed on the system.","type":"string"},"files":{"description":"An array of file ids that were included in the command","items":{"type":"string"},"type":"array"},"name":{"description":"The name of the command.","type":"string"},"organization":{"description":"The ID of the organization.","type":"string"},"requestTime":{"description":"The time that the command was sent.","format":"date-time","type":"string"},"response":{"properties":{"data":{"properties":{"exitCode":{"description":"The stderr output from the command that ran.","type":"integer"},"output":{"description":"The output of the command that was executed.","type":"string"}},"type":"object"},"error":{"description":"The stderr output from the command that ran.","type":"string"},"id":{"description":"ID of the response.","type":"string"}},"type":"object"},"responseTime":{"description":"The time that the command was completed.","format":"date-time","type":"string"},"sudo":{"description":"If the user had sudo rights","type":"boolean"},"system":{"description":"The name of the system the command was executed on.","type":"string"},"user":{"description":"The user the command ran as.","type":"string"},"workflowId":{"type":"string"},"workflowInstanceId":{"type":"string"}},"title":"CommandResultByCommandID","type":"object"},"commandresultslist"'
# replace def commandresult with commandresultbycommandid in
'{"\$ref":"#\/definitions\/commandresult"},"type":"array"}}},"security":\[{"x-api-key":\[\]}\],"summary":"Get results for a specific command"' = '{"$ref":"#/definitions/commandresultbycommandid"},"type":"array"}}},"security":[{"x-api-key":[]}],"summary":"Get results for a specific command"
'
'{"\$ref":"#\/definitions\/commandresult"},"type":"array"}}},"security":\[{"x-api-key":\[\]}\],"summary":"Get results for a specific command"' = '{"$ref":"#/definitions/commandresultbycommandid"},"type":"array"}}},"security":[{"x-api-key":[]}],"summary":"Get results for a specific command"'
'\/systemuserputpost"}},{"\$ref":"#\/parameters\/trait:multiTenantRequestHeaders:x-org-id"},{.*?"in":"query"' = '/systemuserputpost"}},{"in":"query"' # Remove very large query description, it breaks Autorest's ability to build the parameter
'\/systemuserput"}},{"\$ref":"#\/parameters\/trait:multiTenantRequestHeaders:x-org-id"},{.*?"in":"query"' = '/systemuserput"}},{"in":"query"' # Remove very large query description, it breaks Autorest's ability to build the parameter
'"enrollmentType":{"enum":\["unknown","automated device","device","user"\],"type":"string"},"internal":{"properties":{"deviceId":{"type":"string"},"windowsDeviceId":{"type":"string"}},"type":"object"}' = '' # error CS0262: Partial declarations of 'IJcSystemMdmInternal' have conflicting accessibility modifiers; error CS0535: 'JcSystemMdm' does not implement interface member 'IJcSystemMdmInternal.DeviceId'
'"systems":{"description":"Not used. Use \/api\/v2\/commands\/{id}\/associations to bind commands to systems.","items":{"type":"string"},"type":"array"}' = '' # remove unused commands system param
'"basePath":"\/api"' = '"basePath":"/api/"'; # The extra slash at the end is needed to properly build the url.
'"type":"null"' = '"type":"string"'; # A type of null is not valid.
'"type":\["object","null"\]' = '"type":"object"'
'{"description":"This is an optional flag that can be enabled on the DELETE call.*?","in":"query","name":"cascade_manager".*?"}' = ''; # TODO: Add this back in eventually - fix to remove the cascade manager param from delete user (autorest thinks multiple matching 'break' parameters are declared in the delete function)
'"produces":\["application\/json","text\/plain"\]' = '';
'"responses":{"200":{"description":"OK","schema":{"type":"string"}}' = '"responses":{"200":{"description":""}';
Expand Down Expand Up @@ -89,6 +89,7 @@ $TransformConfig = [Ordered]@{
'commands_list' = 'Command_List';
'commands_post' = 'Command_Create';
'commands_put' = 'Command_Set';
'commands_run' = 'Commands_Run';
'organization_list' = 'Organization_List';
'organization_put' = 'Organization_Set';
'organizations_get' = 'Organization_Get';
Expand Down Expand Up @@ -139,7 +140,6 @@ $TransformConfig = [Ordered]@{
'"format":"uint32"' = '"format":"int64"' # SI code uses uint32 which is larger than int32 . Swagger 2 doesnt have a concept of uint32 . AutoRest defaults to int32 when it sees a type of integer.
'"produces":\["text\/html"\]' = '' # produces text/html is not valid, just remove
# Filter Customizations (define filter as list)
'"in":"query","items":{"type":"string"},"name":"filter","type":"array"},"trait:folderId:folderId":' = '"in":"query","items":{"type":"string"},"name":"filter","type":"array","collectionFormat":"multi","x-ms-skip-url-encoding":true},"trait:folderId:folderId":'
# Custom Tweaks
'"operationId":"gsuites_listImportUsers","parameters":\[{"\$ref":"#\/parameters\/trait:limit:limit"},{"\$ref":"#\/parameters\/trait:gsuite:maxResults"},' = '"operationId":"gsuites_listImportUsers","parameters":[{"$ref":"#/parameters/trait:gsuite:maxResults"},' # Get-JCsdkGsuiteUsersToImport does not require a limit parameter
'"responses":{"201":{"description":"","schema":{"\$ref":"#\/definitions\/job-id"}}' = '"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/job-id"}}'; # Workaround incorrectly defined 201 response in swagger should be 200; affects New-JcSdkBulkUser
Expand Down
11 changes: 5 additions & 6 deletions BuildAutoRest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Param(
)
# https://github.com/Azure/autorest/blob/master/docs/powershell/options.md
# CI Variables
$CI_USERNAME = 'TheJumpCloud'
$CurrentBranch = If ([System.String]::IsNullOrEmpty($env:CIRCLE_BRANCH)) { git branch --show-current } Else { $env:CIRCLE_BRANCH }
$BuildNumber = If ([System.String]::IsNullOrEmpty($env:CIRCLE_BUILD_NUM)) { '0000' } Else { $env:CIRCLE_BUILD_NUM }
$RepoUrl = If ([System.String]::IsNullOrEmpty($env:CIRCLE_REPOSITORY_URL)) { 'https://github.com/TheJumpCloud/jcapi-powershell' } Else { $env:CIRCLE_REPOSITORY_URL }
Expand Down Expand Up @@ -119,7 +118,7 @@ ForEach ($SDK In $SDKName)
{
If (Test-Path -Path:($OutputFullPath)) { Get-ChildItem -Path:($OutputFullPath) | Where-Object { $_.Name -notin $FolderExcludeList } | Remove-Item -Force -Recurse }
If (!(Test-Path -Path:($OutputFullPath))) { New-Item -Path:($OutputFullPath) -ItemType:('Directory') }
if ($IsMacOS)
if ($IsMacOS -or $IsLinux)
{
Write-Host ('[RUN COMMAND] Clean Script') -BackgroundColor:('Black') -ForegroundColor:('Magenta')
# check if the /bin /obj directories need to permissions reset and deleted before continuing.
Expand Down Expand Up @@ -152,7 +151,7 @@ ForEach ($SDK In $SDKName)
$BuildModuleContent = Get-Content -Path:($buildModulePath) -Raw
$BuildModuleContent.Replace('Export-ExampleStub -ExportsFolder', '#Export-ExampleStub -ExportsFolder') | Set-Content -Path:($buildModulePath)
$BuildModuleCommand = "$buildModulePath -Release"
if ($IsMacOS)
if ($IsMacOS -or $IsLinux)
{
Write-Host ('[RUN COMMAND] Clean Script') -BackgroundColor:('Black') -ForegroundColor:('Magenta')
bash $CleanScript $PSScriptRoot $OutputFullPath
Expand Down Expand Up @@ -193,7 +192,7 @@ ForEach ($SDK In $SDKName)
$BuildModuleContent.Replace('#Export-ExampleStub -ExportsFolder', 'Export-ExampleStub -ExportsFolder') | Set-Content -Path:($buildModulePath)
# Build-module
$BuildModuleCommand = "$buildModulePath -Docs -Release"
if ($IsMacOS)
if ($IsMacOS -or $IsLinux)
{
Write-Host ('[RUN COMMAND] Clean Script') -BackgroundColor:('Black') -ForegroundColor:('Magenta')
bash $CleanScript $PSScriptRoot $OutputFullPath
Expand Down Expand Up @@ -246,7 +245,7 @@ ForEach ($SDK In $SDKName)
If (-not [System.String]::IsNullOrEmpty($UnusedTestFiles)) { $UnusedTestFiles | Remove-Item -Force -Recurse }
# Rebuild to distribute the update PSScriptInfo to other locations
$BuildModuleCommand = "$buildModulePath -Docs -Release"
if ($IsMacOS)
if ($IsMacOS -or $IsLinux)
{
Write-Host ('[RUN COMMAND] Clean Script') -BackgroundColor:('Black') -ForegroundColor:('Magenta')
bash $CleanScript $PSScriptRoot $OutputFullPath
Expand Down Expand Up @@ -291,7 +290,7 @@ ForEach ($SDK In $SDKName)
# Remove auto generated .gitignore files
If ($ModifyGitIgnore)
{
$GitIgnoreFiles = Get-ChildItem -Path:($OutputFullPath) -Recurse -File | Where-Object { $_.Extension -eq '.gitignore' }
$GitIgnoreFiles = Get-ChildItem -Path:($OutputFullPath) -Recurse -File -Hidden | Where-Object { $_.Extension -eq '.gitignore' }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

required to update .gitignore files

$GitIgnoreFiles | ForEach-Object {
$GitIgnoreContent = Get-Content -Path:($_.FullName) -Raw
$GitIgnoreContent = $GitIgnoreContent.Replace('exports', "exports`n!docs/exports")
Expand Down
4 changes: 2 additions & 2 deletions Configs/JumpCloud.SDK.DirectoryInsights.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ input-file:
module-name: JumpCloud.SDK.DirectoryInsights
namespace: JumpCloud.SDK.DirectoryInsights
sample-generation: true
module-version: 0.0.23
module-version: 0.0.24
dll-name: JumpCloud.SDK.DirectoryInsights.private

directive:
- where:
prefix: JcSdk
hide: true
# Prevent response flattening: https://github.com/Azure/autorest.powershell/issues/743
# inlining-threshold: 0
# inlining-threshold: 0
2 changes: 1 addition & 1 deletion Configs/JumpCloud.SDK.V1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ input-file:
module-name: JumpCloud.SDK.V1
namespace: JumpCloud.SDK.V1
sample-generation: true
module-version: 0.0.35
module-version: 0.0.36
dll-name: JumpCloud.SDK.V1.private

directive:
Expand Down
4 changes: 2 additions & 2 deletions Configs/JumpCloud.SDK.V2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ input-file:
module-name: JumpCloud.SDK.V2
namespace: JumpCloud.SDK.V2
sample-generation: true
module-version: 0.0.39
module-version: 0.0.40
dll-name: JumpCloud.SDK.V2.private

directive:
- where:
prefix: JcSdk
hide: true
# Prevent response flattening: https://github.com/Azure/autorest.powershell/issues/743
# inlining-threshold: 0
# inlining-threshold: 0
32 changes: 32 additions & 0 deletions JumpCloud.SDK.DirectoryInsights.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
## JumpCloud.SDK.DirectoryInsights-0.0.24
Release Date: November 14, 2023
#### RELEASE NOTES
```
This is a rollup release for the DI module, no functional changes were made
```
#### FEATURES:
NA
#### IMPROVEMENTS:
NA
#### BUG FIXES:
NA
#### Generated Changes:

<details>
<summary>Functions Added</summary>

No changes
</details>

<details>
<summary>Functions Modified</summary>

No changes
</details>

<details>
<summary>Functions Removed</summary>

No changes
</details>

## JumpCloud.SDK.DirectoryInsights-0.0.23
Release Date: June 07, 2023
#### RELEASE NOTES
Expand Down
36 changes: 36 additions & 0 deletions JumpCloud.SDK.V1.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
## JumpCloud.SDK.V1-0.0.36
Release Date: November 14, 2023
#### RELEASE NOTES
```
This release includes a new funcion `Start-JCSdkCommand` which can be used to ad-hoc invoke commands on a list of systems
```
#### FEATURES:
NA
#### IMPROVEMENTS:
NA
#### BUG FIXES:
NA
#### Generated Changes:

<details>
<summary>Functions Added</summary>

* Start-JcSdkCommand.ps1

</details>

<details>
<summary>Functions Modified</summary>

* New-JcSdkApplication.ps1
* Set-JcSdkAdministratorUser.ps1
* Set-JcSdkApplication.ps1

</details>

<details>
<summary>Functions Removed</summary>

No changes
</details>

## JumpCloud.SDK.V1-0.0.35
Release Date: June 07, 2023
#### RELEASE NOTES
Expand Down
43 changes: 43 additions & 0 deletions JumpCloud.SDK.V2.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
## JumpCloud.SDK.V2-0.0.40
Release Date: November 14, 2023
#### RELEASE NOTES
```
This is a rollup release for the DI module, no functional changes were made
```
#### FEATURES:
NA
#### IMPROVEMENTS:
NA
#### BUG FIXES:
NA
#### Generated Changes:

<details>
<summary>Functions Added</summary>

No changes
</details>

<details>
<summary>Functions Modified</summary>

* Get-JcSdkAppleMdm.ps1
* Get-JcSdkProvidersInvoice.ps1
* New-JcSdkProviderAdministrator.ps1
* New-JcSdkSoftwareApp.ps1
* New-JcSdkSystemGroup.ps1
* New-JcSdkUserGroup.ps1
* Set-JcSdkSoftwareApp.ps1
* Set-JcSdkSystemGroup.ps1
* Set-JcSdkUserGroup.ps1
* Update-JcSdkGSuite.ps1

</details>

<details>
<summary>Functions Removed</summary>

* Get-JcSdkGsuiteUsersToImportFormated.ps1

</details>

## JumpCloud.SDK.V2-0.0.39
Release Date: June 07, 2023
#### RELEASE NOTES
Expand Down
Loading