File tree Expand file tree Collapse file tree 6 files changed +34
-14
lines changed
Expand file tree Collapse file tree 6 files changed +34
-14
lines changed Original file line number Diff line number Diff line change 11{
2- "hooks" : {}
2+ "hooks" : {
3+ "Stop" : [
4+ {
5+ "hooks" : [
6+ {
7+ "type" : " command" ,
8+ "command" : " touch .claude-assisted"
9+ }
10+ ]
11+ }
12+ ]
13+ }
314}
Original file line number Diff line number Diff line change 33 "hooks" : {
44 "stop" : [
55 {
6- "command" : " touch .genai -assisted"
6+ "command" : " touch .cursor -assisted"
77 }
88 ]
99 }
Original file line number Diff line number Diff line change @@ -7,13 +7,19 @@ case "$COMMIT_SOURCE" in
77 merge|squash) exit 0 ;;
88esac
99
10- # Only add Co-Authored-By if an AI agent was used (marker file exists)
11- if [ -f " .genai-assisted" ]; then
12- # Check if Co-Authored-By is already present
13- if ! grep -q " Co-[Aa]uthored-[Bb]y:.*\(Claude\|Cursor\|GenAI\)" " $COMMIT_MSG_FILE " ; then
14- echo " " >> " $COMMIT_MSG_FILE "
15- echo " Co-Authored-By: GenAI" >> " $COMMIT_MSG_FILE "
16- fi
17- # Remove the marker file
18- rm -f .genai-assisted
10+ # Check if Co-Authored-By is already present
11+ if grep -q " Co-[Aa]uthored-[Bb]y:.*\(Claude\|Cursor\|GenAI\)" " $COMMIT_MSG_FILE " ; then
12+ rm -f .cursor-assisted .claude-assisted
13+ exit 0
14+ fi
15+
16+ # Add Co-Authored-By based on which agent was used
17+ if [ -f " .cursor-assisted" ]; then
18+ echo " " >> " $COMMIT_MSG_FILE "
19+ echo " Co-Authored-By: Cursor" >> " $COMMIT_MSG_FILE "
20+ rm -f .cursor-assisted
21+ elif [ -f " .claude-assisted" ]; then
22+ echo " " >> " $COMMIT_MSG_FILE "
23+ echo " Co-Authored-By: Claude" >> " $COMMIT_MSG_FILE "
24+ rm -f .claude-assisted
1925fi
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ coverage
1010.LSOverride
1111
1212# Icon must end with two \r
13- Icon
13+ Icon
1414
1515# Thumbnails
1616._ *
5555
5656# End of https://www.toptal.com/developers/gitignore/api/macos,vim
5757
58- # GenAI marker file (created by agent hooks)
59- .genai-assisted
58+ # GenAI marker files (created by agent hooks)
59+ .cursor-assisted
60+ .claude-assisted
Original file line number Diff line number Diff line change 11# Github Mobsuccess action
22
3+ mvp : ok
4+
35[ ![ NPM] ( https://github.com/mobsuccess-devops/github-actions-mobsuccess/actions/workflows/npm.yml/badge.svg )] ( https://github.com/mobsuccess-devops/github-actions-mobsuccess/actions/workflows/npm.yml )
46
57This action validates that the various Mobsuccess policies are enforced when
You can’t perform that action at this time.
0 commit comments