@@ -90,14 +90,17 @@ async function main() {
90
90
await exec ( 'yarn changeset status' ) ;
91
91
} catch ( e ) {
92
92
const messageLines = e . message . replace ( / 🦋 e r r o r / g, '' ) . split ( '\n' ) ;
93
- formattedStatusError = 'Changeset formatting error in following file:%0A' ;
93
+ formattedStatusError = '- Changeset formatting error in following file:%0A' ;
94
+ formattedStatusError += ' ```%0A' ;
94
95
formattedStatusError += messageLines
95
96
. filter (
96
97
( line : string ) => ! line . match ( / ^ a t [ \w \. ] + \( .+ : [ 0 - 9 ] + : [ 0 - 9 ] + \) / )
97
98
)
98
99
. filter ( ( line : string ) => ! line . includes ( 'Command failed' ) )
99
100
. filter ( ( line : string ) => ! line . includes ( 'exited with error code 1' ) )
101
+ . map ( ( line : string ) => ` ${ line } ` )
100
102
. join ( '%0A' ) ;
103
+ formattedStatusError += ' ```%0A' ;
101
104
/**
102
105
* Sets Github Actions output for a step. Pass changeset error message to next
103
106
* step. See:
@@ -117,13 +120,13 @@ async function main() {
117
120
) ;
118
121
if ( missingPackages . length > 0 ) {
119
122
const missingPackagesLines = [
120
- 'Warning: This PR modifies files in the following packages but they have not been included in the changeset file:'
123
+ '- Warning: This PR modifies files in the following packages but they have not been included in the changeset file:'
121
124
] ;
122
125
for ( const missingPackage of missingPackages ) {
123
- missingPackagesLines . push ( `- ${ missingPackage } ` ) ;
126
+ missingPackagesLines . push ( ` - ${ missingPackage } ` ) ;
124
127
}
125
128
missingPackagesLines . push ( '' ) ;
126
- missingPackagesLines . push ( 'Make sure this was intentional.' ) ;
129
+ missingPackagesLines . push ( ' Make sure this was intentional.' ) ;
127
130
missingPackagesError = missingPackagesLines . join ( '%0A' ) ;
128
131
}
129
132
}
0 commit comments