Skip to content

Add GitHub templates for issues and pull requests - #5

Merged
c-vigo merged 7 commits into
devfrom
c-vigo/issue2
Nov 26, 2025
Merged

c-vigo merged 7 commits into
devfrom
c-vigo/issue2

Conversation

@c-vigo

@c-vigo c-vigo commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

Description

This PR adds GitHub issue and PR templates for better project contribution workflow, and enhances test coverage to verify the complete workspace asset structure including all template files and scripts.

Related Issue(s)

Closes #2

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Test updates

Changes Made

GitHub Templates

  • Added issue templates using GitHub Forms (YAML) format:
    • bug_report.yml - structured bug reporting with environment details and reproduction steps
    • feature_request.yml - feature proposals with problem statement and impact analysis
    • task.yml - task tracking with acceptance criteria and priority selection
  • Added pull_request_template.md with testing checklist and change type classification
  • Templates added to both main repository and workspace template (assets/workspace/)

Test Enhancements

  • Enhanced test_assets_workspace_structure in test_image.py:
    • Comprehensive validation of all workspace asset directories (workspace root, .devcontainer, scripts, githooks)
    • Validates all template files exist (gitignore, configs, documentation, scripts)
    • Verifies shell script executability for all .sh files
    • Uses arrays and loops for maintainable test structure
  • Added test_docker_compose_override_example_exists to verify override template file
  • Added test_docker_compose_gitignore to verify gitignore configuration
  • Removed redundant test_workspace_template_pre_commit_config_exists (covered by structure test)

Bug Fixes

  • Fixed error message for uv version check in test to show correct expected version (0.9.12)

Testing

  • Tests pass locally (make test)
  • Image tests pass (make test-image)
  • Integration tests pass (make test-integration)
  • Registry tests pass (make test-registry) (if applicable)
  • Manual testing performed (describe below)

Manual Testing Details

  1. Template Validation: Verified all GitHub templates render correctly in GitHub UI
  2. Asset Structure: Confirmed all workspace template files are present and properly structured
  3. Test Coverage: All new tests pass and properly validate expected structure
  4. Shell Scripts: Verified executable permissions are checked correctly

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (README.md, CONTRIBUTE.md, etc.)
  • I have updated the CHANGELOG.md in the [Unreleased] section
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Statistics

  • 9 files changed: 583 insertions, 14 deletions
  • 8 new template files (4 for main repo, 4 for workspace template)
  • Enhanced test coverage with structural validation

Template Files Added

Main Repository:

  • .github/ISSUE_TEMPLATE/bug_report.yml
  • .github/ISSUE_TEMPLATE/feature_request.yml
  • .github/ISSUE_TEMPLATE/task.yml
  • .github/pull_request_template.md

Workspace Template:

  • assets/workspace/.github/ISSUE_TEMPLATE/bug_report.yml
  • assets/workspace/.github/ISSUE_TEMPLATE/feature_request.yml
  • assets/workspace/.github/ISSUE_TEMPLATE/task.yml
  • assets/workspace/.github/pull_request_template.md

Benefits

  • Standardized issue and PR submission process
  • Better contributor experience with guided templates
  • Comprehensive asset structure validation prevents deployment issues
  • Enhanced test maintainability with array-based validation

- Add issue templates using GitHub Forms (YAML) format
  - Bug report template with environment details and reproduction steps
  - Feature request template with problem statement and impact analysis
  - Task template with acceptance criteria and priority dropdown
- Add pull request template with testing checklist and change type classification
- Templates include HTML comments for guidance and align with project workflow
@c-vigo c-vigo self-assigned this Nov 26, 2025
@c-vigo c-vigo added this to the Initial release milestone Nov 26, 2025
@c-vigo
c-vigo merged commit dd82f7e into dev Nov 26, 2025
@c-vigo
c-vigo deleted the c-vigo/issue2 branch November 26, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant