Skip to content

Commit 39bad2f

Browse files
committed
Fix ERC template stuff
1 parent cb1710a commit 39bad2f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/__tests__/namePR.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ describe("namePR", () => {
192192
login: "testUser"
193193
} as User
194194
} as PullRequest, files);
195-
expect(prTitle).toEqual(`${localConfig.title.updateEipPrefix.replace("EIP-XXXX", "ERC Template")}PR Title Testing 123 (ERC Template)`);
195+
expect(prTitle).toEqual(`${localConfig.title.updateEipPrefix.replace("EIP-XXXX", "Template")}PR Title Testing 123 (ERC Template)`);
196196
});
197197

198198
it("Correctly Names Simulated PR-15: Adds New ERC", async () => {

src/namePr.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export async function generatePRTitle(pull_request: PullRequest, files: File[])
4242
return localConfig.title.configPrefix + title;
4343
}
4444

45-
// If the PR modifies the EIP template, use Update Template
46-
if (files.some(file => file.filename === "eip-template.md")) {
45+
// If the PR modifies the template, use Update Template
46+
if (files.some(file => file.filename === "eip-template.md" || file.filename === "erc-template.md")) {
4747
return localConfig.title.updateEipPrefix.replace("EIP-XXXX", "Template") + title;
4848
}
4949

0 commit comments

Comments
 (0)