mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Remove issue title from topic
This commit is contained in:
parent
aa8b3d8c9d
commit
c888dadd1c
@ -13,7 +13,7 @@ export class FormatUtil {
|
||||
}
|
||||
|
||||
public static formatRoomTopic(issue: {state: string, title: string, html_url: string}) {
|
||||
return `${issue.title} | Status: ${issue.state} | ${issue.html_url}`;
|
||||
return `Status: ${issue.state} | ${issue.html_url}`;
|
||||
}
|
||||
|
||||
public static getPartialBodyForIssue(repo: IMinimalRepository, issue: Octokit.IssuesGetResponse) {
|
||||
|
@ -17,7 +17,7 @@ describe("FormatUtilTest", () => {
|
||||
});
|
||||
it("correctly formats a room topic", () => {
|
||||
expect(FormatUtil.formatRoomTopic(SIMPLE_ISSUE)).to.equal(
|
||||
"A simple title | Status: open | https://github.com/evilcorp/lab/issues/123",
|
||||
"Status: open | https://github.com/evilcorp/lab/issues/123",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user