Add GitHub Actions workflow to detect duplicate tools using AI inference#6
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot fix the code |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Fixed the workflow and README issues. The main problems were:
The workflow now follows the same pattern as the Home Assistant example referenced in the repository. Commit: 6f72515 |
|
Revert your last fixed. the input field is |
…nference Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
| they serve different purposes | ||
|
|
||
| If no duplicates are found, simply respond with "No duplicate | ||
| tools detected." No newline at end of file |
There was a problem hiding this comment.
@copilot read and append the content of readme as a user message in this request
There was a problem hiding this comment.
Modified the workflow to read the README.md content and append it as part of the user message in the AI inference request. The workflow now reads the file content into a GitHub output variable and includes it directly in the prompt. Commit: 2dc00d5
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…d workflow_dispatch trigger
…ition for issue creation
…formatting for duplicate detection
…detection workflow
…instead of inline body
|
needs better prompting |
…output format Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Improved the prompting with better structure and reliability. The key changes include: • Fixed grammatical errors ("Duplicates found" not "Duplicate founds") This should provide much more consistent and actionable output from the AI model. Commit: ec730e0 |
|
Update the prompt to Ignore the duplicates in the programming framework sections |
…plicates Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Updated the prompt to ignore duplicates in Programming Frameworks sections. The workflow now explicitly excludes tools that appear in both main sections and Programming Frameworks subsections from being flagged as duplicates. Commit: 86759ce |
|
The AI likes to wrap the entire response in a ```markdown code section. Maybe sure it doesn'to do this. |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Fixed the prompting to prevent AI from wrapping responses in markdown code blocks. Added explicit instruction "Do NOT wrap your response in markdown code blocks" and removed all code block examples from the prompt format. Commit: 57ec352 |
This PR implements a GitHub Actions workflow that automatically detects duplicate tool entries in the README.md file using the
actions/ai-inferenceaction.Features
The workflow (
detect-duplicate-tools.yml) provides:actions/ai-inferencewith thegpt-4o-minimodel to intelligently detect duplicatesExample Detection
The workflow will detect existing duplicates in the current README.md, such as:
https://github.com/mattzcarey/shippie)Implementation Details
actions/checkout@v4)contents: read,issues: write,pull-requests: write,models: readFixes #5.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.