-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: any_evm addresses warns if you're tagging
contract
(#1599)
* This comes with some pretty major refactoring of how we store ValidationResults * Move mustache templating code to separate module * Create a generic class for storing ValidationResults that will be rendered to a GitHub issue comment * Updates to oss-directory 0.0.15 * Fixes up some minor logging too
- Loading branch information
Showing
8 changed files
with
207 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import * as fsPromise from "fs/promises"; | ||
import mustache from "mustache"; | ||
|
||
async function renderMustacheFromFile( | ||
filePath: string, | ||
params?: Record<string, unknown>, | ||
) { | ||
const raw = await fsPromise.readFile(filePath, "utf-8"); | ||
return mustache.render(raw, params); | ||
} | ||
|
||
export { renderMustacheFromFile }; |
Oops, something went wrong.