Skip to content

Commit

Permalink
Merge pull request #4276 from victorhuangwq/main
Browse files Browse the repository at this point in the history
Adds Regex Commenter
  • Loading branch information
victorhuangwq committed Jan 3, 2024
2 parents 875a3a6 + cad620c commit 1665c28
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/regexCommenter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Auto comment on issues on regex match"

on:
issues:
types: [opened, edited]

jobs:
auto-comment:
runs-on: ubuntu-latest
steps:

- uses: actions-ecosystem/action-regex-match@v2
id: regex-match
with:
text: ${{ github.event.issue.title }} ${{ github.event.issue.body }}
regex: '\bcrash\b'
flags: i

- uses: actions-ecosystem/action-create-comment@v1
if: ${{ steps.regex-match.outputs.match != '' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
body: |
Hi, @${{ github.actor }}!
It seems that your issue contains the word "crash". If you have not already, could you attach a crash dump as a comment?
WV2 crash dumps are located in a subfolder of the app's user data folder (UDF): `<UDF>\EBWebView\Crashpad\reports\`. By default, the user data folder is created in the app's folder with a name like `<App Exe Name>.exe.WebView2`. Refer to [Crash Diagnostics](https://github.com/MicrosoftEdge/WebView2Feedback/blob/main/diagnostics/crash.md) for more information.
Thank you for your cooperation!

0 comments on commit 1665c28

Please sign in to comment.