Skip to content

Commit

Permalink
Fix ERC template stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandapip1 committed Oct 27, 2023
1 parent cb1710a commit 39bad2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/namePR.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ describe("namePR", () => {
login: "testUser"
} as User
} as PullRequest, files);
expect(prTitle).toEqual(`${localConfig.title.updateEipPrefix.replace("EIP-XXXX", "ERC Template")}PR Title Testing 123 (ERC Template)`);
expect(prTitle).toEqual(`${localConfig.title.updateEipPrefix.replace("EIP-XXXX", "Template")}PR Title Testing 123 (ERC Template)`);
});

it("Correctly Names Simulated PR-15: Adds New ERC", async () => {
Expand Down
4 changes: 2 additions & 2 deletions src/namePr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export async function generatePRTitle(pull_request: PullRequest, files: File[])
return localConfig.title.configPrefix + title;
}

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

Expand Down

0 comments on commit 39bad2f

Please sign in to comment.