mirror of https://github.com/actions/toolkit
make SumaryTableCell prop name match markdown name for heading
parent
457303960f
commit
e22f3192bf
|
@ -14,10 +14,17 @@ export interface SummaryTableCell {
|
|||
*/
|
||||
data: string
|
||||
/**
|
||||
* Render cell as header
|
||||
* @deprecated use `core.summary`
|
||||
* Render cell as heading
|
||||
* (optional) default: false
|
||||
*/
|
||||
header?: boolean
|
||||
/**
|
||||
* @deprecated use `core.summary`
|
||||
* Render cell as heading
|
||||
* (optional) default: false
|
||||
*/
|
||||
heading?: boolean
|
||||
/**
|
||||
* Number of columns the cell extends
|
||||
* (optional) default: '1'
|
||||
|
@ -235,8 +242,8 @@ class Summary {
|
|||
return this.wrap('td', cell)
|
||||
}
|
||||
|
||||
const {header, data, colspan, rowspan} = cell
|
||||
const tag = header ? 'th' : 'td'
|
||||
const {header, heading, data, colspan, rowspan} = cell
|
||||
const tag = (header || heading) ? 'th' : 'td'
|
||||
const attrs = {
|
||||
...(colspan && {colspan}),
|
||||
...(rowspan && {rowspan})
|
||||
|
|
Loading…
Reference in New Issue