Skip to content

Conversation

@DiogoRibeiro7
Copy link
Owner

No description provided.

@DiogoRibeiro7 DiogoRibeiro7 requested a review from Copilot April 18, 2025 01:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces structured tag support for TODO comments, enabling metadata extraction using new syntax patterns (e.g., @assignee, #module, key=value). It also enhances testing coverage and integrates the new extraction logic into the main action workflow.

  • Adds tests for structured metadata extraction and LLM-based issue generation
  • Introduces new utility and parser modules to support structured tag extraction
  • Updates action configuration and workflow settings for structured extraction

Reviewed Changes

Copilot reviewed 22 out of 23 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/generateIssueContent.test.ts Tests LLM-based issue title and body generation with structured tag TODO support
tests/extractStructuredMetadata.test.ts Adds tests for extracting structured metadata with various input formats
src/utils/isTextFile.ts Introduces utility function to check if a file is text-based
src/parser/types.ts Updates TodoItem type with new properties for assignees, modules, and structured metadata
src/parser/extractTodosWithStructuredTagsFromDir.ts Implements filesystem walking to extract TODOs with structured tags from a directory
src/parser/extractTodosWithStructuredTags.ts Implements TODO extraction with structured tag annotation logic
src/parser/extractStructuredTags.ts Implements extraction of @assignee, #module, and key=value patterns from TODO texts
src/parser/extractStructuredMetadata.ts Adds function to extract structured metadata from TODO text based on a regex pattern
src/core/llm/openaiClient.ts Introduces OpenAI client with API key retrieval from action inputs
src/core/llm/generateIssueContent.ts Updates LLM prompt generation to use model provided from inputs
src/ActionMain.ts Integrates conditional use of structured tag extraction for TODOs based on action input
action.yml Adds input for structured tag extraction and configuration for OpenAI model
.github/workflows/todo.yml Configures workflow to enable structured extraction and disables LLM in favor of structured tags
Files not reviewed (1)
  • package.json: Language not supported

@DiogoRibeiro7 DiogoRibeiro7 merged commit fcabf1b into main Apr 18, 2025
1 check passed
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.

2 participants