feature: Add autolabeler configuration and commit guidelines

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Henrik Bruhn 2025-12-12 20:31:44 +01:00
parent 2d38451629
commit 34c641abc7
2 changed files with 88 additions and 20 deletions

View file

@ -1,38 +1,38 @@
name-template: 'v$RESOLVED_VERSION' name-template: "v$RESOLVED_VERSION"
tag-template: 'v$RESOLVED_VERSION' tag-template: "v$RESOLVED_VERSION"
categories: categories:
- title: '🚀 Features' - title: "🚀 Features"
labels: labels:
- 'feature' - "feature"
- 'enhancement' - "enhancement"
- title: '🐛 Bug Fixes' - title: "🐛 Bug Fixes"
labels: labels:
- 'fix' - "fix"
- 'bugfix' - "bugfix"
- 'bug' - "bug"
- title: '🧰 Maintenance' - title: "🧰 Maintenance"
labels: labels:
- 'chore' - "chore"
- 'dependencies' - "dependencies"
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver: version-resolver:
major: major:
labels: labels:
- 'major' - "major"
- 'breaking' - "breaking"
minor: minor:
labels: labels:
- 'minor' - "minor"
- 'feature' - "feature"
patch: patch:
labels: labels:
- 'patch' - "patch"
- 'fix' - "fix"
- 'bugfix' - "bugfix"
default: patch default: patch
template: | template: |
@ -41,3 +41,23 @@ template: |
$CHANGES $CHANGES
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
autolabeler:
- label: "bug"
branch:
- '/fix\/.+/'
title:
- "/fix/i"
- "/bug/i"
- "/bugfix/i"
- label: "enhancement"
branch:
- '/feature\/.+/'
title:
- "/feature/i"
- "/enhancement/i"
- label: "breaking"
branch:
- '/breaking\/.+/'
title:
- "/breaking/i"

48
CLAUDE.md Normal file
View file

@ -0,0 +1,48 @@
# Claude Code Guidelines for Respira
This document contains guidelines for Claude Code when working on this repository.
## Commit Message Conventions
When creating commits, use the following prefixes to ensure proper categorization in automated releases:
### Commit Prefixes
- **`fix:`** - For bug fixes and corrections
- Example: `fix: memory leak in image processing`
- Example: `fix: layout overflow on small screens`
- **`feature:`** - For new features and enhancements
- Example: `feature: Add dark mode toggle to settings`
- Example: `feature: Implement Bluetooth device reconnection`
- **`breaking:`** - For breaking changes (backwards-incompatible changes)
- Example: `breaking: Remove legacy API endpoints`
- Example: `breaking: Change configuration file format`
### Additional Guidelines
1. After the prefix, use a space and write the commit message in imperative mood
2. Capitalize the first word after the prefix
3. Do not use a period at the end of the commit message
4. Be descriptive and clear about what the change does
### Complete Examples
```
fix: Correct calculation in embroidery path generator
feature: Add support for custom thread colors
breaking: Remove deprecated USB serial communication
fix: Prevent crash when device disconnects unexpectedly
feature: Implement auto-save for design projects
```
## Pull Request Labels
When creating pull requests, the commit prefix should align with PR labels:
- `fix:` commits → use `fix` label (triggers patch version bump)
- `feature:` commits → use `feature` label (triggers minor version bump)
- `breaking:` commits → use `breaking` label (triggers major version bump)
See `docs/COMMIT_GUIDELINES.md` for complete release automation details.