Run WTI to automatically triage github issues #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Process new issue | |
on: | |
pull_request: # TODO change with issue | |
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: "Cannot install WSL on latest Windows Insider dev build" # Hardcoded for testing | |
issueBody: "Cannot install WSL on latest Windows Insider dev build" # Hardcoded for testing | |
repository: ${{ github.repository }} | |
similarityTolerance: "0.1" # Lowered value for testing | |
commentBody: | | |
# 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: '11305' | |
token: ${{ secrets.GITHUB_TOKEN }} |