-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: retrieve multisig account id (#1084)
Signed-off-by: Mario Francia <[email protected]>
- Loading branch information
Showing
5 changed files
with
27 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# Initialize commit message | ||
message="$(cat $1)" | ||
signedOffPattern="Signed-off-by:" | ||
|
||
# Check if the commit message follows the Conventional Commits format | ||
echo $message | npm run commitlint | ||
echo "$message" | npm run --silent commitlint --edit | ||
if [ $? -ne 0 ]; then | ||
echo "❌ Commit message does not follow the Conventional Commits format." | ||
exit 1 | ||
fi | ||
|
||
# Check if the commit message has a 'Signed-off-by:' line | ||
if ! [[ $message =~ $signedOffPattern ]]; then | ||
if ! echo "$message" | grep -q "$signedOffPattern"; then | ||
echo "❌ Missing 'Signed-off-by:' line! 😕" | ||
echo "Please add a 'Signed-off-by:' line to your commit message." | ||
echo "Message: $message" | ||
exit 1 | ||
fi | ||
|
||
# # Verify GPG signature for the previous HEAD commit | ||
# if ! git verify-commit HEAD &>/dev/null; then | ||
# echo "❌ Previos (HEAD) Commit does not have a valid GPG signature. Please sign your commits." | ||
# exit 1 | ||
# fi | ||
|
||
# #! Uncomment for Testing | ||
# exit 1 |
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