Skip to content

Commit

Permalink
Merge branch 'main' into topic/UpdateOpenAIDescriptpr
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh authored Aug 29, 2024
2 parents 10baee7 + 8a0f516 commit 65f8917
Show file tree
Hide file tree
Showing 660 changed files with 27,538 additions and 14,382 deletions.
72 changes: 71 additions & 1 deletion .github/label-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,80 @@
You're reporting a problem with an old version of the Azure DevOps Migration Tools.
Please try the latest version and tell us if that fixes your problem.
Please try the [latest](https://github.com/nkdAgility/azure-devops-migration-tools/releases/latest) version and tell us if that fixes your problem. Bonus points for also trying with the [latest preview](https://github.com/nkdAgility/azure-devops-migration-tools/releases/) version.
Good luck,
Thanks, Azure DevOps Migration Tools team
'needs-more-information':
comment: >
Hi there,
**_ACTION REQUIRED_**
In order for us to help you will need to provide both the log, and the configration file that you are using.
**Generate and Attach Log**
Steps:
1. In the Config file, change `LogLevel` to `Debug`.
2. Identify a work item ID that exhibits this issue and create a query that only selects this work item.
3. Delete any existing copy of that work item from the target.
4. Run the migration.
5. Comment here with the full Log attached as well as the full (redacted) configration file that you are using.
Your assistance is greatly appreciated!
Thanks,
Azure DevOps Migration Tools team
'needs-local-debug':
comment: >
Hi there,
**_ACTION REQUIRED_**
This looks to be a complex issue that you will need to debug locally to figure out what is going on.
**Debug in Visual Studio**
Steps:
1. [Fork this repository](https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project#forking-a-repository)
2. [Open this project in Visual Studio](https://learn.microsoft.com/en-us/visualstudio/get-started/tutorial-open-project-from-repo?view=vs-2022#open-a-project-from-a-github-repo)
3. [Edit the Launch Profile](https://learn.microsoft.com/en-us/visualstudio/debugger/project-settings-for-csharp-debug-configurations-dotnetcore?view=vs-2022#launch-profile-net-core-net-5) to point to your config.<br />![image](https://github.com/nkdAgility/azure-devops-migration-tools/assets/5205575/1f55a278-8c8d-4481-8f2e-08d20640c8a8)
4. Craft a [WIQL query](https://learn.microsoft.com/en-us/azure/devops/boards/queries/wiql-syntax) to only load the work item with the issue.
5. Then [set some break points and debug](https://learn.microsoft.com/en-us/visualstudio/debugger/debugger-feature-tour) the issue.
6. Comment here with the results.
Your assistance is greatly appreciated!
Thanks,
Azure DevOps Migration Tools team
104 changes: 54 additions & 50 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@ on:
branches: ["main"]
workflow_dispatch:
inputs:
ForceHasChanged_src:
description: 'Force the src folder to be considered changed'
required: false
default: false
type: boolean
ForceHasChanged_docs:
description: 'Force the docs folder to be considered changed'
ForceRelease:
description: 'Force a release! Use when changes hapen out of sync and `src` and `docs` folder changes are not detected.'
required: false
default: false
type: boolean
Expand Down Expand Up @@ -53,12 +48,11 @@ jobs:
nkdAgility_WingetApplicationId: ${{ steps.nkdagility.outputs.WingetApplicationId }}
nkdAgility_ReleaseDescription: ${{ steps.nkdagility.outputs.release_description }}
nkdAgility_ReleaseDescriptionState: ${{ steps.nkdagility.outputs.release_description_state }}
nkdAgility_HasChanged_src: ${{ steps.nkdagility.outputs.HasChanged_src }}
nkdAgility_HasChanged_docs: ${{ steps.nkdagility.outputs.HasChanged_docs }}
nkdAgility_HasChanged_automation: ${{ steps.nkdagility.outputs.HasChanged_automation }}
nkdAgility_DocsDeployFolder: ${{ steps.nkdagility.outputs.docs_deploy_folder }}
nkdAgility_DocsBaseURL: ${{ steps.nkdagility.outputs.docs_baseURL }}
nkdAgility_DocsVersionFolder: ${{ steps.nkdagility.outputs.docs_version_folder }}
nkdAgility_RunRelease: ${{ steps.nkdagility.outputs.RunRelease }}

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -96,32 +90,46 @@ jobs:
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
# Get Branch Name
Write-Output "::group::Get Branch Name"
Write-Output "-------------------------------------------"
$branchName = "${{ github.head_ref || github.ref_name }}"
Write-Output "We are running on: $branchName!"
$branchSafeName = $branchName.Replace("/", "-")
Write-Output "branchSafeName: $branchSafeName!"
Write-Output "-------------------------------------------"
Write-Output "::endgroup::"
# Ring Setup
Write-Output "::group::Ring Control Setup"
Write-Output "-------------------------------------------"
Write-Output "Ring Control Setup"
Write-Output "-------------------------------------------"
$Ring = "Canary"
$WingetApplicationId = "nkdagility.azure-devops-migration-tools"
$docs_deploy_folder = "./azure-devops-migration-tools/";
$docs_baseURL = "/learn/azure-devops-migration-tools"
$RunCodeRelease = 'false'
$RunDocsRelease = 'false'
switch ($Env:GitVersion_PreReleaseLabel) {
"" {
$Ring = "Release";
$WingetApplicationId = "nkdagility.azure-devops-migration-tools";
$docs_deploy_folder = "./azure-devops-migration-tools/"
$docs_baseURL = "/learn/azure-devops-migration-tools"
$RunRelease = 'true'
}
"Preview" {
$Ring = "Preview";
$WingetApplicationId = "nkdagility.azure-devops-migration-tools.Preview";
$docs_deploy_folder = "./azure-devops-migration-tools/preview/";
$RunRelease = (('${{ steps.filter.outputs.src }}' -eq 'true') -or ('${{ steps.filter.outputs.docs }}' -eq 'true') )
$docs_baseURL = "/learn/azure-devops-migration-tools/preview/"
$RunRelease = ( ('${{ inputs.ForceRelease }}' -eq 'true' ) -or ('${{ steps.filter.outputs.src }}' -eq 'true') -or ('${{ steps.filter.outputs.docs }}' -eq 'true') )
}
default {
$Ring = "Canary";
$WingetApplicationId = "nkdagility.azure-devops-migration-tools.Canary";
$docs_deploy_folder = "./azure-devops-migration-tools/canary/"
$docs_deploy_folder = "./azure-devops-migration-tools/canary/$branchSafeName"
$docs_baseURL = "/learn/azure-devops-migration-tools/canary/$branchSafeName"
$RunRelease = 'false'
}
}
Expand All @@ -131,19 +139,24 @@ jobs:
echo "WingetApplicationId=$WingetApplicationId" >> $env:GITHUB_OUTPUT
Write-Output "docs_deploy_folder=$docs_deploy_folder"
echo "docs_deploy_folder=$docs_deploy_folder" >> $env:GITHUB_OUTPUT
Write-Output "docs_baseURL=$docs_baseURL"
echo "docs_baseURL=$docs_baseURL" >> $env:GITHUB_OUTPUT
Write-Output "RunRelease=$RunRelease"
echo "RunRelease=$RunRelease" >> $env:GITHUB_OUTPUT
Write-Output "-------------------------------------------"
Write-Output "::endgroup::"
# Docs Setup
Write-Output "::group::Docs Setup"
Write-Output "-------------------------------------------"
Write-Output "Docs"
Write-Output "-------------------------------------------"
$docs_version_folder = "/azure-devops-migration-tools/$Env:GitVersion_SemVer"
Write-Output "docs_version_folder=$docs_version_folder"
echo "docs_version_folder=$docs_version_folder" >> $env:GITHUB_OUTPUT
Write-Output "-------------------------------------------"
Write-Output "::endgroup::"
# Get-ReleaseDescription
Write-Output "::group::Release Description Setup"
Write-Output "-------------------------------------------"
Write-Output "Get-ReleaseDescription"
Write-Output "-------------------------------------------"
Expand All @@ -162,34 +175,7 @@ jobs:
echo $description >> $env:GITHUB_OUTPUT
echo "$EOF" >> $env:GITHUB_OUTPUT
Write-Output "-------------------------------------------"
# HasChanged Setup
Write-Output "-------------------------------------------"
Write-Output "HasChanged Setup"
Write-Output "-------------------------------------------"
if ('${{ steps.filter.outputs.src }}' -eq 'true') {
echo "HasChanged_src=true" >> $env:GITHUB_OUTPUT;
} else {
if ('${{ inputs.ForceHasChanged_src }}' -eq 'true') {
echo "HasChanged_src=true" >> $env:GITHUB_OUTPUT;
} else {
echo "HasChanged_src=false" >> $env:GITHUB_OUTPUT;
}
}
if ('${{ steps.filter.outputs.docs }}' -eq 'true') {
echo "HasChanged_docs=true" >> $env:GITHUB_OUTPUT;
} else {
if ('${{ inputs.ForceHasChanged_docs }}' -eq 'true') {
echo "HasChanged_docs=true" >> $env:GITHUB_OUTPUT;
} else {
echo "HasChanged_docs=false" >> $env:GITHUB_OUTPUT;
}
}
if ('${{ steps.filter.outputs.automation }}' -eq 'true') {
echo "HasChanged_automation=true" >> $env:GITHUB_OUTPUT;
} else {
echo "HasChanged_automation=false" >> $env:GITHUB_OUTPUT;
}
Write-Output "-------------------------------------------"
Write-Output "::endgroup::"
- uses: actions/upload-artifact@v4
with:
Expand All @@ -202,7 +188,7 @@ jobs:
runs-on: ubuntu-latest
needs: Setup
steps:
- name: "Create Summery"
- name: "Show Summery"
if: always()
shell: pwsh
id: nkdagility-summery
Expand All @@ -214,10 +200,8 @@ jobs:
- nkdAgility_WingetApplicationId: ${{needs.Setup.outputs.nkdAgility_WingetApplicationId}}
- nkdAgility_DocsVersionFolder: ${{needs.Setup.outputs.nkdAgility_DocsVersionFolder}}
- nkdAgility_DocsDeployFolder: ${{needs.Setup.outputs.nkdAgility_DocsDeployFolder}}
- nkdAgility_DocsBaseURL: ${{needs.Setup.outputs.nkdAgility_DocsBaseURL}}
- nkdAgility_ReleaseDescriptionState: ${{needs.Setup.outputs.nkdAgility_ReleaseDescriptionState}}
- nkdAgility_HasChanged_src: ${{needs.Setup.outputs.nkdAgility_HasChanged_src}}
- nkdAgility_HasChanged_docs: ${{needs.Setup.outputs.nkdAgility_HasChanged_docs}}
- nkdAgility_HasChanged_automation: ${{needs.Setup.outputs.nkdAgility_HasChanged_automation}}
- nkdAgility_RunRelease: ${{needs.Setup.outputs.nkdAgility_RunRelease}}
### GitVersion
- GitVersion_BranchName: ${{needs.Setup.outputs.GitVersion_BranchName}}
Expand All @@ -230,6 +214,15 @@ jobs:
- HasChanged_src: ${{needs.Setup.outputs.HasChanged_src}}
- HasChanged_docs: ${{needs.Setup.outputs.HasChanged_docs}}
- HasChanged_automation: ${{needs.Setup.outputs.HasChanged_automation}}
"@
echo $markdown >> $Env:GITHUB_STEP_SUMMARY
- name: "Show Release Description"
if: always()
shell: pwsh
id: nkdAgility_ReleaseDescription
run: |
Write-Host "::debug::nkdAgility_ReleaseDescription | $Env:GITHUB_STEP_SUMMARY"
$markdown = @"
## nkdAgility_ReleaseDescription
${{needs.Setup.outputs.nkdAgility_ReleaseDescription}}
"@
Expand Down Expand Up @@ -330,6 +323,12 @@ jobs:
GitVersion_InformationalVersion: ${{ needs.Setup.outputs.GitVersion_InformationalVersion }}
steps:
- uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
ruby-version: '3.2' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- uses: cschleiden/replace-tokens@v1
with:
files: '["**/*.html"]'
Expand All @@ -343,8 +342,13 @@ jobs:
- uses: igsekor/[email protected]
id: spellcheck
name: Spellcheck
- name: Build Jekyll
uses: jerryjvl/jekyll-build-action@v1
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --baseurl "${{needs.Setup.outputs.nkdAgility_DocsBaseURL}}"
env:
JEKYLL_ENV: production
# - name: Build Jekyll
# uses: jerryjvl/jekyll-build-action@v1
- uses: actions/upload-artifact@v4
with:
name: AzureDevOpsMigrationTools-Site
Expand Down Expand Up @@ -512,8 +516,8 @@ jobs:
DocsRelease:
name: "Release to Docs"
runs-on: ubuntu-latest
needs: [Setup, BuildDocs, GitHubRelease]
if: ${{ success() && ( needs.Setup.outputs.nkdAgility_RunRelease == 'true' ) }}
needs: [Setup, BuildDocs]
if: ${{ success() }}
steps:
- name: Download a single artifact
uses: actions/download-artifact@v4
Expand All @@ -532,7 +536,7 @@ jobs:
password: ${{ secrets.NKDAGILITY_LEARN_SFTP }}
port: 2222
# If true, outputs the results of the upload, without actually uploading.
dry-run: ${{ (needs.Setup.outputs.nkdAgility_Ring) == 'Canary' }}
#dry-run: ${{ (needs.Setup.outputs.nkdAgility_Ring) == 'Canary' }}
# A list of folders to upload in the format of `folder/ => upload_folder/`
uploads: |
./_site/ => ${{needs.Setup.outputs.nkdAgility_DocsDeployFolder}}
Expand Down
Loading

0 comments on commit 65f8917

Please sign in to comment.