File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,8 +123,10 @@ export default async function () {
123123 if ( shouldOpenGroupedIssues ) {
124124 for ( const [ problemShort , issues ] of Object . entries ( newIssuesByProblemShort ) ) {
125125 if ( issues . length > 1 ) {
126- const title : string = `${ problemShort } issues`
127- const body : string = `# ${ problemShort } issues\n\n` + issues . map ( issue => `- [ ] ${ issue . url } ` ) . join ( '\n' )
126+ const capitalizedProblemShort = problemShort [ 0 ] . toUpperCase ( ) + problemShort . slice ( 1 )
127+ const title : string = `${ capitalizedProblemShort } issues`
128+ const body : string =
129+ `# ${ capitalizedProblemShort } issues\n\n` + issues . map ( issue => `- [ ] ${ issue . url } ` ) . join ( '\n' )
128130 try {
129131 const trackingResponse = await octokit . request ( `POST /repos/${ repoWithOwner } /issues` , {
130132 owner : repoWithOwner . split ( '/' ) [ 0 ] ,
@@ -134,9 +136,9 @@ export default async function () {
134136 } )
135137 const trackingUrl : string = trackingResponse . data . html_url
136138 trackingIssueUrls [ problemShort ] = trackingUrl
137- core . info ( `Opened tracking issue for '${ problemShort } ' with ${ issues . length } issues.` )
139+ core . info ( `Opened tracking issue for '${ capitalizedProblemShort } ' with ${ issues . length } issues.` )
138140 } catch ( error ) {
139- core . warning ( `Failed to open tracking issue for '${ problemShort } ': ${ error } ` )
141+ core . warning ( `Failed to open tracking issue for '${ capitalizedProblemShort } ': ${ error } ` )
140142 }
141143 }
142144 }
You can’t perform that action at this time.
0 commit comments