Skip to content

Commit 1665c28

Browse files
Merge pull request #4276 from victorhuangwq/main
Adds Regex Commenter
2 parents 875a3a6 + cad620c commit 1665c28

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/regexCommenter.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 comment?
27+
28+
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.
29+
30+
Thank you for your cooperation!
31+

0 commit comments

Comments
 (0)