Add a /dump command to ask for process dumps (#9152)
Blue committed
Nov 15, 2022 at 19:10 UTC
c67e3febbc4b12d0f6f0d20c418ac2a7164658e4
1 file changed
+57
.github/fabricbot.json
+57
@@ -770,6 +770,63 @@
770
}
771
]
772
}
773
+ },
774
+ {
775
+ "taskType": "trigger",
776
+ "capabilityId": "IssueResponder",
777
+ "subCapability": "IssueCommentResponder",
778
+ "version": "1.0",
779
+ "config": {
780
+ "conditions": {
781
+ "operator": "and",
782
+ "operands": [
783
+ {
784
+ "name": "commentContains",
785
+ "parameters": {
786
+ "commentPattern": "\\/dump?",
787
+ "isRegex": true
788
+ }
789
+ },
790
+ {
791
+ "operator": "or",
792
+ "operands": [
793
+ {
794
+ "name": "activitySenderHasPermissions",
795
+ "parameters": {
796
+ "permissions": "admin"
797
+ }
798
+ },
799
+ {
800
+ "name": "activitySenderHasPermissions",
801
+ "parameters": {
802
+ "permissions": "write"
803
+ }
804
+ }
805
+ ]
806
+ }
807
+ ]
808
+ },
809
+ "eventType": "issue",
810
+ "eventNames": [
811
+ "issue_comment"
812
+ ],
813
+ "taskName": "Ask for dumps",
814
+ "actions": [
815
+ {
816
+ "name": "addReply",
817
+ "parameters": {
818
+ "comment": "Hello! Could you please provide logs and process dumps to help us better diagnose your issue? \n\nTo collect WSL logs and dumps, download and execute [collect-wsl-logs.ps1](https://github.com/Microsoft/WSL/blob/master/diagnostics/collect-wsl-logs.ps1) in an **administrative powershell prompt**:\n\n```\nInvoke-WebRequest -UseBasicParsing \"https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1\" -OutFile collect-wsl-logs.ps1\nSet-ExecutionPolicy Bypass -Scope Process -Force\n.\\collect-wsl-logs.ps1 -Dump\n```\nThe scipt will output the path of the log file once done. \n\nOnce completed please upload the output files to this Github issue.\n\n[Click here](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method) for more info on logging\n\nThank you!"
819
+ }
820
+ },
821
+ {
822
+ "name": "addLabel",
823
+ "parameters": {
824
+ "label": "needs-author-feedback"
825
+ }
826
+ }
827
+ ]
828
+ },
829
+ "disabled": false
830
}
831
],
832
"userGroups": []