Skip to content

Commit 8b72856

Browse files
committed
yo
Co-Authored-By: Cursor
1 parent 9313623 commit 8b72856

File tree

6 files changed

+34
-14
lines changed

6 files changed

+34
-14
lines changed

.claude/settings.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
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
}

.cursor/hooks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"hooks": {
44
"stop": [
55
{
6-
"command": "touch .genai-assisted"
6+
"command": "touch .cursor-assisted"
77
}
88
]
99
}

.genai-assisted

Whitespace-only changes.

.githooks/prepare-commit-msg

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,19 @@ case "$COMMIT_SOURCE" in
77
merge|squash) exit 0 ;;
88
esac
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
1925
fi

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
._*
@@ -55,5 +55,6 @@ tags
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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
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

57
This action validates that the various Mobsuccess policies are enforced when

0 commit comments

Comments
 (0)