Remove 'similar issues' workflow since it's not running anymore (#12872)
Blue committed
May 2, 2025 at 12:00 UTC
d3f37e41d02a323b84805fb9fa83a3606081a30b
4 files changed
+1
-88
.github/actions/triage/action.yml
+1
-14
@@ -5,9 +5,6 @@ inputs:
5
issue:
6
required: false
7
type: string
8
- similar_issues_text:
9
- required: false
10
- type: string
8
comment:
9
required: false
10
type: string
@@ -22,21 +19,11 @@ runs:
19
using: "composite"
20
steps:
21
- name: 'Run WTI'
25
- if: ${{ !contains(inputs.similar_issues_text, '''@') }} # Skip this step if the description contains a string that will break the here document
22
shell: pwsh
23
env:
24
previous_body: "${{ inputs.previous_body }}"
25
run: |
26
$ErrorActionPreference = [System.Management.Automation.ActionPreference]::Stop
31
- $message = @'
32
- ${{ inputs.similar_issues_text }}
33
- '@
34
-
35
- $maybe_message = @()
36
- if (![string]::IsNullOrEmpty($message))
37
- {
38
- $maybe_message = @("--default-message-stdin")
39
- }
27
28
$maybe_comment = @()
29
if (![string]::IsNullOrEmpty("${{ inputs.comment }}"))
@@ -53,4 +40,4 @@ runs:
40
41
curl.exe -L https://github.com/OneBlue/wti/releases/download/v0.1.12/wti.exe -o triage/wti.exe
42
56
- cd triage && echo -n $message | .\wti.exe --issue ${{ inputs.issue }} --config config.yml --github-token "${{ inputs.token }}" --ignore-tags @maybe_message @maybe_comment @maybe_previous_body
\ No newline at end of file
43
+ cd triage && .\wti.exe --issue ${{ inputs.issue }} --config config.yml --github-token "${{ inputs.token }}" --ignore-tags @maybe_comment @maybe_previous_body
\ No newline at end of file
.github/workflows/issue_edited.yml
-18
@@ -6,25 +6,8 @@ on:
6
types: [edited]
7
8
jobs:
9
- getSimilarIssues:
10
- runs-on: ubuntu-latest
11
- outputs:
12
- message: ${{ steps.getBody.outputs.message }}
13
- steps:
14
- - uses: actions/checkout@v2
15
- - id: getBody
16
- uses: craigloewen-msft/GitGudSimilarIssues@main
17
- with:
18
- issueTitle: ${{ github.event.issue.title }}
19
- issueBody: ${{ github.event.issue.body }}
20
- repository: ${{ github.repository }}
21
- similarityTolerance: "0.7"
22
- commentBody: |
23
- # View similar issues
24
- Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!
9
wti:
10
name: Run wti
27
- needs: getSimilarIssues
11
runs-on: windows-2022
12
permissions:
13
issues: write
@@ -34,7 +17,6 @@ jobs:
17
18
- uses: ./.github/actions/triage
19
with:
37
- similar_issues_text: "${{ needs.getSimilarIssues.outputs.message }}"
20
issue: "${{ github.event.issue.number }}"
21
previous_body: "${{ github.event.changes.body.from }}"
22
token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
.github/workflows/new_issue.yml
-19
@@ -6,27 +6,9 @@ on:
6
types: [opened]
7
8
jobs:
9
- getSimilarIssues:
10
- runs-on: ubuntu-latest
11
- outputs:
12
- message: ${{ steps.getBody.outputs.message }}
13
- steps:
14
- - uses: actions/checkout@v2
15
- - id: getBody
16
- uses: craigloewen-msft/GitGudSimilarIssues@main
17
- with:
18
- issueTitle: ${{ github.event.issue.title }}
19
- issueBody: ${{ github.event.issue.body }}
20
- repository: ${{ github.repository }}
21
- similarityTolerance: "0.7"
22
- commentBody: |
23
- # View similar issues
24
- Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!
9
wti:
10
name: Run wti
27
- needs: getSimilarIssues
11
runs-on: windows-2022
29
- if: 'always()' # Run even if getSimilarIssues fails
12
permissions:
13
issues: write
14
steps:
@@ -35,6 +17,5 @@ jobs:
17
18
- uses: ./.github/actions/triage
19
with:
38
- similar_issues_text: "${{ needs.getSimilarIssues.outputs.job_status == 'success' && needs.getSimilarIssues.outputs.message || '' }}"
20
issue: "${{ github.event.issue.number }}"
21
token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
triage/wti.yml
deleted
-37
@@ -1,37 +0,0 @@
1
-name: Sync GitHub with ADO
2
-
3
-on:
4
- pull_request:
5
-
6
-jobs:
7
- getSimilarIssues:
8
- runs-on: ubuntu-latest
9
- outputs:
10
- message: ${{ steps.getBody.outputs.message }}
11
- steps:
12
- - uses: actions/checkout@v2
13
- - id: getBody
14
- uses: craigloewen-msft/GitGudSimilarIssues@main
15
- with:
16
- issueTitle: "Cannot install WSL on latest Windows Insider dev build" # Hardcoded for testing
17
- issueBody: "Cannot install WSL on latest Windows Insider dev build" # Hardcoded for testing
18
- repository: ${{ github.repository }}
19
- similarityTolerance: "0.1" # Lowered value for testing
20
- commentBody: Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!
21
-
22
- wti:
23
- name: Run wti
24
- needs: getSimilarIssues
25
- runs-on: windows-2022
26
- permissions:
27
- issues: write
28
- steps:
29
- - name: Checkout repo
30
- uses: actions/checkout@v4
31
-
32
- - name: 'Run WTI'
33
- if: ${{ !contains(needs.getSimilarIssues.outputs.message, '''@') }} # Skip this step if the description contains a string that will break the here document
34
- run: |
35
- cd .github\workflows && echo @'
36
- ${{ needs.getSimilarIssues.outputs.message }}
37
- '@ | .\wti.exe --issue 11305 --config config.yml --github-token "${{ secrets.GITHUB_TOKEN }}" --ignore-tags --default-message-stdin
\ No newline at end of file