Skip to content

Commit c4c07e4

Browse files
authored
refactor: remove detect-secrets tooling and streamline release process (#37)
* chore(release): bump version to v2.2.20260413 - Luminous Kestrel * refactor: remove detect-secrets tooling and streamline release process - Remove detect-secrets dependency and baseline files - Remove secret scanning from CI pipeline - Update dependabot configuration - Update template files for consistency - Remove 'Why' section from release naming - Set default author email in project_defaults.json
1 parent 5345b7f commit c4c07e4

19 files changed

+212
-1033
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ updates:
2020
- "black*"
2121
- "bandit*"
2222
- "safety*"
23-
- "detect-secrets*"
2423
- "taskipy*"
2524
- "pdoc*"
2625
- "hypothesis*"

.github/workflows/ci.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,6 @@ jobs:
5353

5454
- name: Run type checking
5555
run: uv run python -c "import taskipy.cli; taskipy.cli.main()" static-check
56-
57-
- name: Check for secrets
58-
shell: bash
59-
run: |
60-
# SECURITY: Fail on errors, undefined variables, pipe failures
61-
set -euo pipefail
62-
if [[ ! -f .secrets.baseline ]]; then
63-
echo "Creating secrets baseline..."
64-
uv run detect-secrets scan --baseline .secrets.baseline
65-
fi
66-
# Check for new secrets since baseline
67-
uv run detect-secrets scan --baseline .secrets.baseline
68-
echo "✅ Secret scanning complete - no new secrets detected"
6956

7057
test:
7158
name: Tests
@@ -191,7 +178,6 @@ jobs:
191178
echo "Security rules (S001-S701) checked during linting phase." >> $GITHUB_STEP_SUMMARY
192179
echo "" >> $GITHUB_STEP_SUMMARY
193180
echo "### Additional Security Features" >> $GITHUB_STEP_SUMMARY
194-
echo "- ✅ Secret scanning (detect-secrets)" >> $GITHUB_STEP_SUMMARY
195181
echo "- ✅ Dependency vulnerability scanning (safety + dependabot)" >> $GITHUB_STEP_SUMMARY
196182
echo "- ✅ CodeQL security analysis (weekly + on pushes)" >> $GITHUB_STEP_SUMMARY
197183
echo "- ✅ Comprehensive security rules via Ruff (flake8-bandit S001-S701)" >> $GITHUB_STEP_SUMMARY

.opencode/agents/repo-manager.md

Lines changed: 56 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ description: Release Engineer managing Git workflows, pull requests, and hybrid
33
mode: subagent
44
temperature: 0.3
55
tools:
6-
write: false
7-
edit: false
6+
write: true
7+
edit: true
88
read: true
99
grep: true
1010
glob: true
@@ -106,37 +106,70 @@ Follow conventional commits:
106106
## Release Management
107107

108108
### Release Process
109-
1. **Prepare Release Branch**
109+
1. **Analyze Since Last Release**
110110
```bash
111-
git checkout develop
112-
git pull origin develop
113-
git checkout -b release/v{major}.{minor}.{YYYYMMDD}
111+
last_tag=$(git describe --tags --abbrev=0)
112+
git log ${last_tag}..HEAD --oneline
113+
gh pr list --state merged --limit 20 --json title,number,labels
114114
```
115115

116-
2. **Analyze PR Sentiment**
117-
- Use `gh pr list --state merged --base develop`
118-
- Analyze PR titles/descriptions for themes
119-
- Generate appropriate adjective-animal name
116+
2. **Generate Release Name and Body**
117+
Based on commit/PR analysis:
118+
- Identify dominant theme (features, cleanup, fixes, refactoring)
119+
- Select unique adjective-animal pair not used before
120+
- Write poetic tagline
121+
- Explain why this name fits
120122

121-
3. **Update Version**
123+
3. **Update Version and Changelog**
122124
- Update `pyproject.toml` version field
123-
- Update `CHANGELOG.md` with PR summaries
125+
- Add entry to `CHANGELOG.md` at top (after title header)
124126
- Commit version bump
125127

126-
4. **Create Release**
127-
```bash
128-
git checkout main
129-
git merge release/v{version}
130-
git tag v{version}
131-
git push origin main --tags
132-
gh release create v{version} --title "{adjective} {animal}" --notes-from-tag
128+
4. **Create Beautiful GitHub Release**
129+
The release notes MUST follow this exact format:
130+
```markdown
131+
# Release v{version} - {Adjective Animal} {emoji}
132+
133+
> *"{poetic tagline}"*
134+
135+
## Changelog
136+
137+
### Features
138+
- feat: description (#PR)
139+
140+
### Bug Fixes
141+
- fix: description (#PR)
142+
143+
### Refactoring
144+
- refactor: description (#PR)
145+
146+
### Documentation
147+
- docs: description (#PR)
148+
149+
### Merges
150+
- Merge pull request #XX from branch
151+
152+
## Summary
153+
154+
2-3 sentence summary of what this release accomplishes.
155+
156+
---
157+
**SHA**: `{short_sha}`
133158
```
134159

135-
5. **Sync Develop**
160+
5. **Execute Release**
136161
```bash
137-
git checkout develop
138-
git merge main
139-
git push origin develop
162+
# Create and push tag
163+
git tag -a v{version} -m "Release v{version} - {Adjective Animal}"
164+
git push origin v{version}
165+
166+
# Create GitHub release with formatted notes
167+
gh release create v{version} \
168+
--title "Release v{version} - {Adjective Animal}" \
169+
--notes "$(cat <<'EOF'
170+
{formatted release notes as shown above}
171+
EOF
172+
)"
140173
```
141174
142175
## Available Skills

0 commit comments

Comments
 (0)