Skip to content

Commit f809641

Browse files
committed
Add regexCommenter
1 parent 875a3a6 commit f809641

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/regexCommenter.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Auto comment on issues on regex match"
2+
3+
on:
4+
issues:
5+
types: [opened, edited]
6+
7+
jobs:
8+
auto-comment:
9+
runs-on: ubuntu-latest
10+
steps:
11+
12+
- uses: actions-ecosystem/action-regex-match@v2
13+
id: regex-match
14+
with:
15+
text: ${{ github.event.issue.title }} ${{ github.event.issue.body }}
16+
regex: '\bcrash\b'
17+
flags: i
18+
19+
- uses: actions-ecosystem/action-create-comment@v1
20+
if: ${{ steps.regex-match.outputs.match != '' }}
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
body: |
24+
Hi, @${{ github.actor }}!
25+
26+
It seems that your issue contains the word "crash". If you have not already, could you attach a crash dump as a commnet?
27+
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 by default with a name like `<App Exe Name>.exe.WebView2`.
28+
Refer to [Crash Diagnostics](https://github.com/MicrosoftEdge/WebView2Feedback/blob/main/diagnostics/crash.md) for more information
29+
Thank you for your cooperation!
30+

0 commit comments

Comments
 (0)