mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 12:42:58 +08:00
addText -> add, newline by default
This commit is contained in:
parent
7a2eceac36
commit
d496b07cc0
@ -67,10 +67,10 @@ export class MarkdownSummary {
|
|||||||
/**
|
/**
|
||||||
* Adds text to the summary
|
* Adds text to the summary
|
||||||
* @param {string} text content to add
|
* @param {string} text content to add
|
||||||
* @param {boolean} [newline=false] whether or not to add a newline
|
* @param {boolean} [newline=true] whether or not to add a newline
|
||||||
* @returns {MarkdownSummary} markdown summary instance
|
* @returns {MarkdownSummary} markdown summary instance
|
||||||
*/
|
*/
|
||||||
addText(text: string, newline = false): MarkdownSummary {
|
add(text: string, newline = true): MarkdownSummary {
|
||||||
this.buffer += text
|
this.buffer += text
|
||||||
return newline ? this.addNewline() : this
|
return newline ? this.addNewline() : this
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user