Fix: Complete rewrite of check-media-attachments workflow with all review fixes#695
Closed
Copilot wants to merge 4 commits into
Closed
Fix: Complete rewrite of check-media-attachments workflow with all review fixes#695Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Co-authored-by: A1L13N <193832434+A1L13N@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] please fix this @alphaonelabs/alphaonelabs-education-website/pull/670
Fix: Complete rewrite of check-media-attachments workflow with all review fixes
Oct 5, 2025
Contributor
|
@copilot we want this to detect attachments in the github issue if an html file was changed |
Co-authored-by: A1L13N <193832434+A1L13N@users.noreply.github.com>
Contributor
Author
Added linked issue media detection in commit e0869f4. The workflow now:
The comment will now show media from both changed HTML files and linked issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR completely fixes the
check-media-attachments.ymlworkflow that was originally introduced in PR #670 to resolve issue #571 (SyntaxError: Unexpected token '|'). The original PR had 13+ review comments from CodeRabbit and Copilot that needed to be addressed. This PR implements all requested fixes and follows GitHub Actions best practices.Issues Fixed
Critical Issues (4)
\salt=to\balt=(word boundary) as requested in reviewYAML Linting Issues (3)
Performance & Security Improvements (5)
github.paginate()to handle PRs with more than 30 filesEnhanced Media Detection (5)
posterattributes and properly parsessrcsetentriesgit.getBlobfor files larger than 1MB.html,.htm, and.xhtmlfiles (case-insensitive)Key Changes
Workflow Trigger
Security & Permissions
Enhanced Detection Logic
Before:
After:
Linked Issue Detection
The workflow now automatically detects issues linked in the PR description:
This helps track media files referenced in related issues when HTML files are modified.
Testing
All validation tests passed:
yaml.safe_load()--checkflagImpact
This workflow will now:
The workflow is informational only and does not fail PRs. It posts a comment with:
Related Issues
Fixes #571
Supersedes #670
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.