Skip to content

Commit

Permalink
Merge pull request #1051 from JoinColony/maint/check-hooks-run-ci
Browse files Browse the repository at this point in the history
Add new script for checking hooks run
  • Loading branch information
kronosapiens authored Jun 20, 2022
2 parents a35ce13 + 176c5cb commit 869c7d8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ jobs:
- run:
name: "Linting Solidity"
command: yarn run solhint
- run:
name: "Check git hooks run"
command: yarn run check:gitchanges
- run:
name: "Checking contract storage variables"
command: yarn run check:storagevars
Expand Down
15 changes: 0 additions & 15 deletions docs/_Interface_IColonyNetwork.md
Original file line number Diff line number Diff line change
Expand Up @@ -937,21 +937,6 @@ Set a new Reputation root hash and starts a new mining cycle. Can only be called
|stakers|address[]|Array of users who submitted or backed the hash, being accepted here as the new reputation root hash


### `setReputationRootHash`

This version of setReputationRootHash is deprecated and will be removed in a future release. It transparently calls the new version if it is called (essentially, removing the `reward` parameter.


**Parameters**

|Name|Type|Description|
|---|---|---|
|newHash|bytes32|The reputation root hash
|newNLeaves|uint256|The updated leaves count value
|stakers|address[]|Array of users who submitted or backed the hash, being accepted here as the new reputation root hash
|reward|uint256|Amount of CLNY to be distributed as reward to miners (not used)


### `setTokenLocking`

Sets the token locking address. This is only set once, and can't be changed afterwards.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"solhint": "solhint ./contracts/**/*.sol",
"build:docs": "scripts/docgen.js",
"ping:osx": "osascript -e 'display notification \"Ping!\"'",
"check:gitchanges": "./scripts/no-git-changes.sh",
"check:storagevars": "./scripts/check-storage.js",
"check:recoverymods": "./scripts/check-recovery.js",
"check:coverage": "yarn istanbul-combine -d coverage-merged -p detail -r html -r json coverage-*/coverage-final.json && istanbul check-coverage ./coverage-merged/coverage-final.json --statements 99 --branches 94 --functions 99 --lines 99",
Expand Down
11 changes: 11 additions & 0 deletions scripts/no-git-changes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"

if [[ `git status --porcelain` ]]; then
echo "GIT changes detected! Please always run all pre-commit hooks. `npm run build:docs` should help in most cases"

git status --verbose --verbose

exit 1
fi

0 comments on commit 869c7d8

Please sign in to comment.