Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/sh
Comment thread
fantonangeli marked this conversation as resolved.
#
# Copyright 2026 The Serverless Workflow Specification Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This hook checks that the commit message includes a "Signed-off-by" line.

COMMIT_MSG=$(cat "$1")

# Check for Signed-off-by line
if ! echo "$COMMIT_MSG" | grep -qE '^Signed-off-by: .+ <.+@.+>'; then
cat <<EOF
ERROR: Commit message is missing DCO sign-off.

This project requires all commits to include a Developer Certificate
of Origin (DCO) sign-off. To sign your commit, use:

git commit -s -m "Your commit message"
Comment thread
fantonangeli marked this conversation as resolved.
EOF
exit 1
fi

exit 0
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions package.json
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I needed to create an initial package.json configuration to install and setup husky to execute the hook.
I created it in a simple way that let us merge easily when we have the real editor in this repo

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "serverless-workflow-editor",
"version": "0.0.0",
"private": true,
"description": "CNCF Serverless Workflow Specification Visual Editor",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/serverlessworkflow/editor.git"
},
"scripts": {
"prepare": "husky"
Comment thread
fantonangeli marked this conversation as resolved.
},
"devDependencies": {
"husky": "^9.1.7"
},
"engines": {
"node": ">=20"
}
}
Loading