File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export async function createAnIssue (tools: Toolkit) {
8383 issue_number : existingIssue . number ,
8484 body : templated . body
8585 } )
86- setOutputs ( tools , issue )
86+ setOutputs ( tools , issue . data )
8787 tools . exit . success ( `Updated issue ${ existingIssue . title } #${ existingIssue . number } : ${ existingIssue . html_url } ` )
8888 } catch ( err : any ) {
8989 return logError ( tools , template , 'updating' , err )
@@ -105,7 +105,7 @@ export async function createAnIssue (tools: Toolkit) {
105105 milestone : Number ( tools . inputs . milestone || attributes . milestone ) || undefined
106106 } )
107107
108- setOutputs ( tools , issue )
108+ setOutputs ( tools , issue . data )
109109 tools . log . success ( `Created issue ${ issue . data . title } #${ issue . data . number } : ${ issue . data . html_url } ` )
110110 } catch ( err : any ) {
111111 return logError ( tools , template , 'creating' , err )
Original file line number Diff line number Diff line change 11import { Toolkit } from 'actions-toolkit'
2- import { IssuesCreateResponseData } from '@octokit/types'
32
43export interface FrontMatterAttributes {
54 title : string
@@ -8,9 +7,9 @@ export interface FrontMatterAttributes {
87 milestone ?: string | number
98}
109
11- export function setOutputs ( tools : Toolkit , issue : { data : IssuesCreateResponseData } ) {
12- tools . outputs . number = String ( issue . data . number )
13- tools . outputs . url = issue . data . html_url
10+ export function setOutputs ( tools : Toolkit , issue : { number : number , html_url : string } ) {
11+ tools . outputs . number = String ( issue . number )
12+ tools . outputs . url = issue . html_url
1413}
1514
1615export function listToArray ( list ?: string [ ] | string ) {
You can’t perform that action at this time.
0 commit comments