From 96e97ba0e2c5ec5f907970c6f9a09ecfaf12368e Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Mon, 26 Feb 2024 14:04:58 -0300 Subject: [PATCH] chore: add preparation commit command `pnpm adorno` --- .github/PULL_REQUEST_TEMPLATE.md | 5 +---- package.json | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 5f121c0..b575162 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -7,8 +7,5 @@ Describe the changes made in your pull request here. Ensure you completed **all of the steps** below before submitting your pull request: - [ ] Added natspec comments? -- [ ] Ran `forge snapshot`? -- [ ] Ran `pnpm gas-report`? -- [ ] Ran `pnpm lint`? -- [ ] Ran `forge test`? +- [ ] Ran `pnpm adorno`? - [ ] Ran `pnpm verify`? diff --git a/package.json b/package.json index 639e54a..157b588 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "prettier:check": "prettier --check **/*.{json,md,yml} --ignore-path=.prettierignore", "prettier:write": "prettier --write **/*.{json,md,yml} --ignore-path=.prettierignore", "gas-report": "forge test --gas-report 2>&1 | (tee /dev/tty | awk '/Test result:/ {found=1; buffer=\"\"; next} found && !/Ran/ {buffer=buffer $0 ORS} /Ran/ {found=0} END {printf \"%s\", buffer}' > .gas-report)", - "release": "commit-and-tag-version" + "release": "commit-and-tag-version", + "adorno": "pnpm prettier:write && forge fmt && forge snapshot && pnpm gas-report" } }