-
-
Notifications
You must be signed in to change notification settings - Fork 668
docs: enhance CLAUDE.md with GitHub workflow guidance #7497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Moved to ready to review but will keep it open, we can add to it for a while maybe. |
Format: `<type>[optional !]: <description>[, fixes #<issue>]` | ||
|
||
Types: `build`, `ci`, `docs`, `feat`, `fix`, `refactor`, `test` | ||
|
||
- Use imperative, present tense ("change" not "changed") | ||
- Don't capitalize first letter | ||
- No period at end | ||
- Add `, fixes #<issue>` if applicable | ||
- Breaking changes require `!` after type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should allow <type>[optional scope]
instead of <type>[optional !]
in the same way how this is defined in https://www.conventionalcommits.org/en/v1.0.0/
Sometimes I struggle to give short commit message, but with scope it's much easier:
before: feat: update Pantheon provider to use environment variables
after feat(pantheon): use environment variables
Changing this logic requires an update for:
.github/workflows/pr-check.yml
- https://ddev.readthedocs.io/en/stable/developers/building-contributing/#pull-request-title-guidelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I would add the chore
type to the list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm all for that, although it's more related to our PR checker than this, true? I'd be OK with changing it in the PR checker in this PR and updating this though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, whatever you choose, it's okay to edit this PR or add a new one for this.
## The Issue - No specific issue, but documentation improvements needed based on lessons learned CLAUDE.md lacked comprehensive GitHub workflow guidance for Claude Code sessions, particularly around: - Branch creation best practices - GitHub issue template usage with ddev debug test output - PR template requirements and commit message integration - Testing requirements before commits - Pre-commit workflow combining testing and static analysis ## How This PR Solves The Issue Enhanced CLAUDE.md with detailed sections covering: 1. **Branch Naming & Creation**: Added efficient strategy using `git fetch upstream && git checkout -b <branch> upstream/main --no-track` 2. **GitHub Issue Templates**: Complete guidance on using issue template structure with proper `ddev debug test` output inclusion in collapsible sections 3. **PR Template Integration**: Clear explanation that commit messages should include full PR template content for pre-population on GitHub 4. **Testing Requirements**: Added comprehensive testing guidance with `make test`, `make testpkg`, `make testcmd` options and reference to official testing docs 5. **Pre-Commit Workflow**: Complete checklist including both testing and static analysis requirements ## Manual Testing Instructions 1. Review CLAUDE.md sections for completeness and accuracy 2. Verify markdown formatting passes `make staticrequired` 3. Confirm all referenced documentation links are valid 4. Test workflow guidance matches current DDEV development practices ## Automated Testing Overview Changes are documentation-only and pass: - markdownlint validation - mkdocs build verification - No functional code changes requiring additional tests ## Release/Deployment Notes This is documentation enhancement only with no deployment impact. Future Claude Code sessions will have improved workflow guidance for DDEV development. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
43aa8e6
to
a71b8f2
Compare
The Issue
CLAUDE.md lacked comprehensive GitHub workflow guidance for Claude Code sessions, particularly around:
How This PR Solves The Issue
Enhanced CLAUDE.md with detailed sections covering:
git fetch upstream && git checkout -b <branch> upstream/main --no-track
ddev debug test
output inclusion in collapsible sectionsmake test
,make testpkg
,make testcmd
options and reference to official testing docsManual Testing Instructions
make staticrequired
Automated Testing Overview
Changes are documentation-only and pass:
Release/Deployment Notes
This is documentation enhancement only with no deployment impact. Future Claude Code sessions will have improved workflow guidance for DDEV development.
🤖 Generated with Claude Code