@@ -88,51 +88,51 @@ export function formValidationComment(
88
88
) ;
89
89
90
90
let body =
91
- '<details >Hello there! From the DISABLED prefix in this issue title, ' ;
91
+ '<body >Hello there! From the DISABLED prefix in this issue title, ' ;
92
92
body += 'it looks like you are attempting to disable a test in PyTorch CI. ' ;
93
- body += 'The information I have parsed is below:\n' ;
94
- body += `<b> Test name<b>: ${ testName } \n` ;
95
- body += `<b> Platforms for which to skip the test<b> : ${ platformMsg } \n\n` ;
93
+ body += 'The information I have parsed is below:\n\n ' ;
94
+ body += `\* Test name: \` ${ testName } \` \n` ;
95
+ body += `\* Platforms for which to skip the test: ${ platformMsg } \n\n` ;
96
96
97
97
if ( invalidPlatforms . length > 0 ) {
98
98
body +=
99
- '<b>WARNING!<b> In the parsing process, I received these invalid inputs as platforms for ' ;
99
+ '<b>WARNING!</ b> In the parsing process, I received these invalid inputs as platforms for ' ;
100
100
body += `which the test will be disabled: ${ invalidPlatforms . join (
101
101
', '
102
102
) } . These could `;
103
103
body +=
104
104
'be typos or platforms we do not yet support test disabling. Please ' ;
105
105
body +=
106
- 'verify the platform list above and modify your issue body if needed.\n' ;
106
+ 'verify the platform list above and modify your issue body if needed.\n\n ' ;
107
107
}
108
108
109
109
if ( ! testNameIsExpected ( testName ) ) {
110
110
body +=
111
- '<b>ERROR!<b> As you can see above, I could not properly parse the test ' ;
111
+ '<b>ERROR!</ b> As you can see above, I could not properly parse the test ' ;
112
112
body +=
113
113
'information and determine which test to disable. Please modify the ' ;
114
114
body +=
115
115
'title to be of the format: DISABLED test_case_name (test.ClassName), ' ;
116
- body += 'for example, test_cuda_assert_async (__main__ .TestCuda). \n' ;
116
+ body += 'for example, \` test_cuda_assert_async (\_\_main\_\_ .TestCuda)\`.\n \n' ;
117
117
} else {
118
118
body += `Within ~15 minutes, ${ testName } will be disabled in PyTorch CI for ` ;
119
119
body +=
120
120
platformsToSkip . length === 0
121
121
? 'all platforms'
122
122
: `these platforms: ${ platformsToSkip . join ( ', ' ) } ` ;
123
123
body +=
124
- '. Please verify that your test name looks correct, e.g., test_cuda_assert_async (__main__ .TestCuda). \n' ;
124
+ '. Please verify that your test name looks correct, e.g., \` test_cuda_assert_async (\_\_main\_\_ .TestCuda)\`.\n \n' ;
125
125
}
126
126
127
127
body +=
128
128
'To modify the platforms list, please include a line in the issue body, like below. The default ' ;
129
129
body +=
130
- 'action will disable the test for all platforms if no platforms list is specified. \n\n ' ;
130
+ 'action will disable the test for all platforms if no platforms list is specified. \n' ;
131
131
body +=
132
- 'Platforms : case-insensitive, list, of, platforms\n\nWe currently support the following platforms: ' ;
132
+ '\`\`\`\nPlatforms : case-insensitive, list, of, platforms\n\`\`\` \nWe currently support the following platforms: ' ;
133
133
body += `${ Array . from ( supportedPlatforms )
134
134
. sort ( ( a , b ) => a . localeCompare ( b ) )
135
- . join ( ', ' ) } .</details >`;
135
+ . join ( ', ' ) } .</body >`;
136
136
137
137
return validationCommentStart + body + validationCommentEnd ;
138
138
}
0 commit comments