forked from PromptExecution/__b00t__
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcog.just
More file actions
63 lines (53 loc) · 1.73 KB
/
Copy pathcog.just
File metadata and controls
63 lines (53 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# cog.just
# 🔁 Validate conventional commits (only recent commits to avoid historical issues)
validate:
cog check HEAD~10..HEAD
# 🔍 Validate specific range of commits (usage: just cog validate-range HEAD~20..HEAD)
validate-range RANGE:
cog check {{RANGE}}
# 🔍 Validate all commits (will show historical errors)
validate-all:
cog check
# 📝 Preview next version and changelog
changelog:
cog changelog
# 🚀 Release new version based on commit history
release:
cog bump --auto
cog changelog
git push --follow-tags
# 🔧 Manual version bump (use `major`, `minor`, or `patch`)
bump VERSION:
cog bump {{VERSION}}
cog changelog
git push --follow-tags
# 📊 Show commit statistics
stats:
@echo "Recent commit validation (last 10 commits):"
@cog check HEAD~10..HEAD || echo "Some commits don't follow conventional format"
@echo ""
@echo "Total commits in repository:"
@git rev-list --count HEAD
@echo ""
@echo "Recent commits:"
@git log --oneline -10
# ✅ Verify a commit message format
verify MESSAGE:
cog verify "{{MESSAGE}}"
# 💡 Show examples of valid commit messages
examples:
@echo "Valid commit message examples:"
@echo ""
@echo "Standard types:"
@echo " feat: add user authentication system"
@echo " fix: resolve memory leak in session handler"
@echo " docs: update API documentation"
@echo " chore: bump dependency versions"
@echo ""
@echo "WIP commits (will be squashed):"
@echo " wip: implementing user auth - partial progress"
@echo " wip: debugging session issues"
@echo ""
@echo "With scope:"
@echo " feat(auth): add JWT token validation"
@echo " fix(api): handle null pointer in user service"