From f809641f4b9052e1919b015240ead925d019dc2d Mon Sep 17 00:00:00 2001 From: Victor Huang Date: Wed, 3 Jan 2024 14:31:12 -0800 Subject: [PATCH 1/4] Add regexCommenter --- .github/workflows/regexCommenter.yml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/regexCommenter.yml diff --git a/.github/workflows/regexCommenter.yml b/.github/workflows/regexCommenter.yml new file mode 100644 index 000000000..12c271c94 --- /dev/null +++ b/.github/workflows/regexCommenter.yml @@ -0,0 +1,30 @@ +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 commnet? + WV2 crash dumps are located in a subfolder of the app's user data folder (UDF): `\EBWebView\Crashpad\reports\`. By default the user data folder is created in the app's folder by default with a name like `.exe.WebView2`. + Refer to [Crash Diagnostics](https://github.com/MicrosoftEdge/WebView2Feedback/blob/main/diagnostics/crash.md) for more information + Thank you for your cooperation! + From 232dc9f4a60c31118859a78bec7d56cfab7bc414 Mon Sep 17 00:00:00 2001 From: Victor Huang Date: Wed, 3 Jan 2024 14:36:02 -0800 Subject: [PATCH 2/4] Fix formatting --- .github/workflows/regexCommenter.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/regexCommenter.yml b/.github/workflows/regexCommenter.yml index 12c271c94..6015b22e9 100644 --- a/.github/workflows/regexCommenter.yml +++ b/.github/workflows/regexCommenter.yml @@ -23,8 +23,9 @@ jobs: 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 commnet? - WV2 crash dumps are located in a subfolder of the app's user data folder (UDF): `\EBWebView\Crashpad\reports\`. By default the user data folder is created in the app's folder by default with a name like `.exe.WebView2`. - Refer to [Crash Diagnostics](https://github.com/MicrosoftEdge/WebView2Feedback/blob/main/diagnostics/crash.md) for more information + 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): `\EBWebView\Crashpad\reports\`. By default the user data folder is created in the app's folder by default with a name like `.exe.WebView2`. Refer to [Crash Diagnostics](https://github.com/MicrosoftEdge/WebView2Feedback/blob/main/diagnostics/crash.md) for more information + Thank you for your cooperation! From e7213f16f9f162d38b3e41df6ef1889e0516a169 Mon Sep 17 00:00:00 2001 From: Victor Huang Date: Wed, 3 Jan 2024 14:46:20 -0800 Subject: [PATCH 3/4] fix wording --- .github/workflows/regexCommenter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/regexCommenter.yml b/.github/workflows/regexCommenter.yml index 6015b22e9..c51b49542 100644 --- a/.github/workflows/regexCommenter.yml +++ b/.github/workflows/regexCommenter.yml @@ -25,7 +25,7 @@ jobs: 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): `\EBWebView\Crashpad\reports\`. By default the user data folder is created in the app's folder by default with a name like `.exe.WebView2`. Refer to [Crash Diagnostics](https://github.com/MicrosoftEdge/WebView2Feedback/blob/main/diagnostics/crash.md) for more information + WV2 crash dumps are located in a subfolder of the app's user data folder (UDF): `\EBWebView\Crashpad\reports\`. By default, the user data folder is created in the app's folder with a name like `.exe.WebView2`. Refer to [Crash Diagnostics](https://github.com/MicrosoftEdge/WebView2Feedback/blob/main/diagnostics/crash.md) for more information Thank you for your cooperation! From cad620c04687253c89c8e04529ba11459339b7c2 Mon Sep 17 00:00:00 2001 From: Victor Huang Date: Wed, 3 Jan 2024 14:46:59 -0800 Subject: [PATCH 4/4] Add period --- .github/workflows/regexCommenter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/regexCommenter.yml b/.github/workflows/regexCommenter.yml index c51b49542..74b53a5fc 100644 --- a/.github/workflows/regexCommenter.yml +++ b/.github/workflows/regexCommenter.yml @@ -25,7 +25,7 @@ jobs: 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): `\EBWebView\Crashpad\reports\`. By default, the user data folder is created in the app's folder with a name like `.exe.WebView2`. Refer to [Crash Diagnostics](https://github.com/MicrosoftEdge/WebView2Feedback/blob/main/diagnostics/crash.md) for more information + WV2 crash dumps are located in a subfolder of the app's user data folder (UDF): `\EBWebView\Crashpad\reports\`. By default, the user data folder is created in the app's folder with a name like `.exe.WebView2`. Refer to [Crash Diagnostics](https://github.com/MicrosoftEdge/WebView2Feedback/blob/main/diagnostics/crash.md) for more information. Thank you for your cooperation!