From 3babebfd8c427c416c1f877b6fe6784afd0a7113 Mon Sep 17 00:00:00 2001 From: Christopher Schraer <32145632+chschrae@users.noreply.github.com> Date: Fri, 29 Mar 2024 10:45:57 -0700 Subject: [PATCH] removed unused github workflows (#258) Co-authored-by: Chris Schraer --- .github/workflows/ado-sync.yaml | 33 ------------------------------ .github/workflows/sync-to-ado.yaml | 25 ---------------------- 2 files changed, 58 deletions(-) delete mode 100644 .github/workflows/ado-sync.yaml delete mode 100644 .github/workflows/sync-to-ado.yaml diff --git a/.github/workflows/ado-sync.yaml b/.github/workflows/ado-sync.yaml deleted file mode 100644 index 3208fb08..00000000 --- a/.github/workflows/ado-sync.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Create ADO Work Item - -on: - issues: - types: [opened] - -jobs: - create-work-item: - if: ${{ !github.event.issue.pull_request }} - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Run PowerShell script - id: create_item - shell: pwsh - run: | - $itemExists = pwsh ./scripts/ADOCheckItemExists.ps1 -organization "msdata" -project "Vienna" -pat "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN}}" -title "${{ github.event.issue.title }}" -areaPath "Vienna\\Experiences\\Core SDK\\AI CLI" - if ($itemExists -eq $true) { - echo "Work item already exists" - exit 0 - } - $description = " " - if ("${{ github.event.issue.body }}") { - $description = "${{ github.event.issue.body }}" - } - $result = pwsh -File ./scripts/ADOCreateFeature.ps1 -pat "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}" -title "${{ github.event.issue.title }}" -description "$description" -organization "msdata" -project "Vienna" -workItemType "Feature" -iterationPath "Vienna\\Backlog" -areaPath "Vienna\\Experiences\\Core SDK\\AI CLI" - $adoWorkItemLink = pwsh -File ./scripts/ADOGetADOLinkNumber.ps1 "${{ github.event.issue.body }}" - if ($adoWorkItemLink -eq 0){ - pwsh -File ./scripts/GithubUpdateIssue.ps1 -token "${{ secrets.GH_PERSONAL_ACCESS_TOKEN}}" -owner "Azure" -repo "azure-ai-cli" -issueNumber ${{ github.event.issue.number }} -newDescription "${{ github.event.issue.body }}
AB#$result" - } diff --git a/.github/workflows/sync-to-ado.yaml b/.github/workflows/sync-to-ado.yaml deleted file mode 100644 index c5a79722..00000000 --- a/.github/workflows/sync-to-ado.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: Sync issue to Azure DevOps work item - -on: - issues: - types: - [opened, edited, deleted, closed, reopened, labeled, unlabeled, assigned] - issue_comment: - types: [created, edited, deleted] - -jobs: - alert: - if: ${{ !github.event.issue.pull_request }} - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Run PowerShell script - id: update_ADO_work_feature - shell: pwsh - run: | - $adoWorkItemLink = pwsh -File ./scripts/ADOGetADOLinkNumber.ps1 "${{ github.event.issue.body }}" - if ($adoWorkItemLink -ne 0){ - pwsh -File ./scripts/ADOUpdateFeature.ps1 -organization "msdata" -project "Vienna" -pat "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN}}" -workItemId "$adoWorkItemLink" -newState "${{ github.event.issue.state }}" - }