-
Notifications
You must be signed in to change notification settings - Fork 832
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logic to process new logs when an issue is edited (#11544)
* Add logic to review edited issues if log files were added * Add workflow * yaml * yaml * yaml * yaml * yaml
- Loading branch information
Showing
2 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Process edited issue | ||
|
||
on: | ||
workflow_dispatch: | ||
issues: | ||
types: [edited] | ||
|
||
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: ${{ github.event.issue.title }} | ||
issueBody: ${{ 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: "${{ github.event.issue.number }}" | ||
previous_body: "${{ github.event.changes.body.from }}" | ||
token: ${{ secrets.GITHUB_TOKEN }} |