From f64a1fc368d66f73fa289e7bcd4f2a9da0a81f18 Mon Sep 17 00:00:00 2001 From: Christoph Otter Date: Wed, 29 Jan 2025 15:29:05 +0100 Subject: [PATCH 1/3] Only run typos on changed files (cherry picked from commit 8b72ac0aa991dbae546819079f2fbabdfc9087c5) # Conflicts: # .github/workflows/typo-check.yml --- .github/workflows/typo-check.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/typo-check.yml diff --git a/.github/workflows/typo-check.yml b/.github/workflows/typo-check.yml new file mode 100644 index 0000000000..ed726963ee --- /dev/null +++ b/.github/workflows/typo-check.yml @@ -0,0 +1,23 @@ +name: Check for typos + +on: + merge_group: + pull_request: + push: + branches: + - main + workflow_dispatch: + +jobs: + check-typos: + name: "Spell-check repository source" + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - id: files + uses: tj-actions/changed-files@v45 + - name: Run spell-check + uses: crate-ci/typos@master + with: + files: ${{ steps.files.outputs.all_changed_files }} From 2889c36e7d7cca7285afa2b1390df2845c0d3bac Mon Sep 17 00:00:00 2001 From: Christoph Otter Date: Wed, 29 Jan 2025 15:30:00 +0100 Subject: [PATCH 2/3] Introduce typo (cherry picked from commit 6117b67848fcaf6340420ba0f8fb5bf4f00488ee) --- packages/std/src/addresses.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/std/src/addresses.rs b/packages/std/src/addresses.rs index d23c5b1aa3..dd896832a1 100644 --- a/packages/std/src/addresses.rs +++ b/packages/std/src/addresses.rs @@ -10,7 +10,7 @@ use sha2::{ use crate::Binary; use crate::{HexBinary, __internal::forward_ref_partial_eq}; -/// A human readable address. +/// A human redable address. /// /// In Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no /// assumptions should be made other than being UTF-8 encoded and of reasonable length. From 5021a19aaed575b200771ec7875e351b2efe6fda Mon Sep 17 00:00:00 2001 From: Christoph Otter Date: Wed, 29 Jan 2025 15:30:27 +0100 Subject: [PATCH 3/3] Fix typo (cherry picked from commit 9dcb5119ad077fa319920ea4ceeee29442d5835c) --- packages/std/src/addresses.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/std/src/addresses.rs b/packages/std/src/addresses.rs index dd896832a1..d23c5b1aa3 100644 --- a/packages/std/src/addresses.rs +++ b/packages/std/src/addresses.rs @@ -10,7 +10,7 @@ use sha2::{ use crate::Binary; use crate::{HexBinary, __internal::forward_ref_partial_eq}; -/// A human redable address. +/// A human readable address. /// /// In Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no /// assumptions should be made other than being UTF-8 encoded and of reasonable length.