43 lines
970 B
TypeScript
43 lines
970 B
TypeScript
import { Issue } from "./issue";
|
|
|
|
export function showIssueHTML(issue: Issue) {
|
|
|
|
return `<body>
|
|
<h1>{{label}}</h1>
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
Title
|
|
</td>
|
|
<td >
|
|
{{label}}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
State
|
|
</td>
|
|
<td>
|
|
{{state}}
|
|
</td>
|
|
</tr>
|
|
<tr >
|
|
<td>
|
|
Assignee
|
|
</td>
|
|
<td>
|
|
{{assignee}}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
Description
|
|
</td>
|
|
<td>
|
|
{{description}}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
`.replace("{{label}}", issue.label).replace("{{state}}", issue.issueState).replace("{{assignee}}", issue.assignee).replace("{{description}}", issue.body).replace("{{label}}", issue.label);
|
|
} |