Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rfay
Copy link
Member

@rfay rfay commented Aug 1, 2025

The Issue

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

@rfay rfay marked this pull request as ready for review August 1, 2025 14:41
@rfay rfay requested a review from a team as a code owner August 1, 2025 14:41
@rfay rfay requested a review from stasadev August 1, 2025 14:42
@rfay
Copy link
Member Author

rfay commented Aug 1, 2025

Moved to ready to review but will keep it open, we can add to it for a while maybe.

Comment on lines +174 to +199
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
Copy link
Member

@stasadev stasadev Aug 1, 2025

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:

Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

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.

rfay and others added 3 commits August 5, 2025 14:24
## 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]>
@rfay rfay force-pushed the 20250731_rfay_improve_claude_docs branch from 43aa8e6 to a71b8f2 Compare August 5, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants