Commit 03a6ccd
authored
docs: add Rust error handling best practices and fix wiki-sync GPG signing (#29)
Added comprehensive Rust error handling documentation to CLAUDE.md:
- Never use unwrap() in production code
- Use expect() for programmer errors with descriptive messages
- Use unwrap_or()/unwrap_or_else() for safe defaults
- Use match or ? operator for proper error handling
- Include code examples and verification commands
Fixed wiki-sync workflow to support GPG commit signing:
- Added crazy-max/ghaction-import-gpg@v6 action
- Configured git_commit_gpgsign to satisfy repository rules
- Requires GPG_PRIVATE_KEY and GPG_PASSPHRASE secrets
This resolves the "Commits must have verified signatures" error
that was causing wiki sync automation to fail.1 parent e735e40 commit 03a6ccd
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
101 | 110 | | |
102 | 111 | | |
103 | 112 | | |
| |||
135 | 144 | | |
136 | 145 | | |
137 | 146 | | |
| 147 | + | |
138 | 148 | | |
139 | 149 | | |
140 | 150 | | |
| |||
0 commit comments