Skip to content

Task 4: GitHub Templates, Workflow Testing, and PR #6 Improvements #7

@PankajTanwar7

Description

@PankajTanwar7

Overview

This task focuses on adding GitHub repository templates, testing the workflow automation system, and addressing the suggestions from Claude bot's review of PR #6.

🎯 Goals

  1. Add GitHub issue and PR templates for better contribution workflow
  2. Fix critical issues identified by Claude bot in PR Add workflow automation and prompt solution #6 review
  3. Test and validate the workflow automation system
  4. Improve documentation and project structure

📋 Tasks

Part 1: GitHub Templates

  • Create issue templates in .github/ISSUE_TEMPLATE/
    • Bug report template
    • Feature request template
    • Task template (for standard tasks)
    • Documentation template
  • Create pull request template .github/PULL_REQUEST_TEMPLATE.md
    • Checklist for PR requirements
    • Link to related issue
    • Testing verification

Part 2: Critical Fixes from PR #6 Claude bot Review

🔴 Critical (Must Fix)

  • Fix CLAUDE.md ROS 2 Architecture Section (lines 100-137)
    • Remove Node.js/Express project references (Task.js, taskController.js, etc.)
    • Replace with actual ROS 2 navigation project structure:
      • aruco_detect/ - ArUco marker detection
      • camera_publisher/ - Camera publishing
      • ego_pcl_filter/ - Point cloud filtering
      • laserscan_to_pcl/ - Laser scan conversion
      • mecanum_wheels/ - Mecanum wheel control
      • nav_control/ - Navigation control
      • nav_docking/ - Docking navigation
      • nav_goal/ - Goal navigation
      • pcl_merge/ - Point cloud merging
      • third_party/ - Third-party packages
    • Update testing framework references (remove Jest/Supertest, add ROS 2 testing patterns)
    • Document navigation components, message passing, and transforms

🟡 Important (Should Fix)

  • Add Automation Artifacts to .gitignore

    # Claude Code automation artifacts
    .claude/session-counter.json
    .claude/session-tracking.json
    .claude-prompt-*.md
    docs/dev-logs/
    
  • Handle COMMENT-WRITING-GUIDE.md Reference

    • Either add the file or remove references from CLAUDE.md:237 and WORKFLOW.md:247

Part 3: Workflow Testing

  • Test start-work.sh Script

    • Create a test issue
    • Run ./scripts/start-work.sh <test-issue-number>
    • Verify branch creation follows naming convention
    • Verify prompt file generation
  • Test Prompt Logging

    • Verify logs are created in docs/dev-logs/issue-{N}.md
    • Check log format and content
  • Test Manual Summary Posting

    • Run ./.claude/hooks/post-summary.sh "test prompt" "test achievement"
    • Verify comment posted to GitHub issue
    • Verify session counter increments correctly
  • Test Cleanup Script

    • Run ./scripts/cleanup-after-merge.sh
    • Verify branch cleanup works correctly

Part 4: Nice-to-Have Improvements (from Claude bot review)

  • Add Verification Script

    • Create scripts/verify-automation.sh to test automation system
    • Check all dependencies (gh, jq, node)
    • Verify hook scripts are executable
    • Test GitHub API connectivity
  • Add Quick Setup Guide

    • Add instructions to copy .claude/settings.json.template.claude/settings.json
    • Document first-time setup steps
  • Add Workflow Diagram to WORKFLOW.md

    • Visual representation of four phases
    • Show automation touchpoints
  • Optional Security Enhancement

    • Add rate limiting to github-commenter.js
    • Exponential backoff for GitHub API rate limits

🎯 Acceptance Criteria

Templates

  • ✅ Issue templates cover common scenarios (bug, feature, task, docs)
  • ✅ PR template includes checklist and issue linking
  • ✅ Templates follow GitHub best practices

Critical Fixes

  • ✅ CLAUDE.md accurately reflects ROS 2 navigation project structure
  • ✅ No references to non-existent Node.js/Express files
  • ✅ .gitignore prevents committing automation artifacts
  • ✅ COMMENT-WRITING-GUIDE.md either exists or references removed

Workflow Testing

  • ✅ All workflow scripts tested and working
  • ✅ Automation system creates correct file structure
  • ✅ GitHub integration posts comments successfully
  • ✅ Session tracking works correctly
  • ✅ Cleanup scripts work without errors

Documentation

  • ✅ All issues documented with screenshots/logs
  • ✅ Any bugs or improvements noted for future work

📁 Affected Files

New Files

  • .github/ISSUE_TEMPLATE/bug_report.md
  • .github/ISSUE_TEMPLATE/feature_request.md
  • .github/ISSUE_TEMPLATE/task.md
  • .github/ISSUE_TEMPLATE/documentation.md
  • .github/PULL_REQUEST_TEMPLATE.md
  • scripts/verify-automation.sh (optional)
  • COMMENT-WRITING-GUIDE.md (if adding)

Modified Files

  • CLAUDE.md (lines 100-137 - ROS 2 architecture)
  • .gitignore (add automation artifacts)
  • WORKFLOW.md (remove COMMENT-WRITING-GUIDE.md reference if not adding file)
  • CLAUDE.md (remove COMMENT-WRITING-GUIDE.md reference if not adding file)

🔗 Related Issues

📚 References


💡 Notes

  • This task combines repository infrastructure improvements with validation of the automation system
  • Testing should be done on a separate test issue to avoid polluting this issue's comments
  • Document any issues found during testing for future improvements
  • All changes should be made in a feature branch following the workflow: feature/X-task-4-github-templates-and-testing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions