Skip to content

Add logic to process new logs when an issue is edited #5

Add logic to process new logs when an issue is edited

Add logic to process new logs when an issue is edited #5

Workflow file for this run

name: Process edited issue
on:
workflow_dispatch:
issues:
types: [edited]
pull_request: # For testing
jobs:
getSimilarIssues:
runs-on: ubuntu-latest
outputs:
message: ${{ steps.getBody.outputs.message }}
steps:
- uses: actions/checkout@v2
- id: getBody
uses: craigloewen-msft/GitGudSimilarIssues@main
with:
issueTitle: "Dummy" # ${{ github.event.issue.title }}
issueBody: "Dummy" # ${{ github.event.issue.body }}
repository: ${{ github.repository }}
similarityTolerance: "0.7"
commentBody: |
# View similar issues
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!
wti:
name: Run wti
needs: getSimilarIssues
runs-on: windows-2022
permissions:
issues: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
- uses: ./.github/actions/triage
with:
similar_issues_text: "${{ needs.getSimilarIssues.outputs.message }}"
issue: "11307" #"${{ github.event.issue.number }}"
previous_body: "Dummy log file: https://github.com/microsoft/WSL/files/14608003/WslLogs-2024-03-14_14-12-01.zip" # "${{ github.event.changes.body.from }}"
token: ${{ secrets.GITHUB_TOKEN }}