Commit c40eb42
Expand command detection to multiple prefixes
Extended the workflow to detect commands starting with:
- /ci (e.g., /ci, /ci-run, /ci-test)
- /run (e.g., /run, /run-tests)
- /stop (e.g., /stop, /stop-ci)
- /delete (e.g., /delete)
- /deploy (e.g., /deploy)
- /help (e.g., /help)
Benefits:
- Catches more common command attempts users might try
- Still only detects commands at the beginning of comments or after newlines
- Excludes valid commands (/run-skipped-ci, /stop-run-skipped-ci)
- Simple pattern matching - easy to maintain
Testing shows 100% pass rate across all scenarios including:
- All valid commands correctly ignored
- All common command prefixes correctly detected
- Commands in middle of text correctly ignored
- URLs correctly ignored
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent caec799 commit c40eb42
1 file changed
+15
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
| |||
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | | - | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
46 | | - | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
0 commit comments