-
Notifications
You must be signed in to change notification settings - Fork 1
Add video URL parameter support with optional instructions and dedicated workflow #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add video URL parameter support with optional instructions and dedicated workflow #7
Conversation
Co-authored-by: pelikhan <[email protected]>
…xamples Co-authored-by: pelikhan <[email protected]>
| const { instructions } = vars as { instructions: string }; | ||
| const { instructions, video_url } = vars as { instructions: string; video_url?: string }; | ||
|
|
||
| if (!instructions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional, ignore missing instructions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made instructions optional by removing the error check and using a default value when instructions are not provided. Commit e5b3be5
| inputs: | ||
| github_issue: | ||
| description: "GitHub issue number to comment on" | ||
| required: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a new workflow file that only dedicated to running the action using a video url (so required will be true)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created a new dedicated workflow file video-url-analyzer.yml that only handles video URL analysis with video_url as a required parameter. Commit e5b3be5
| default: | ||
| "Analyze the video and provide a summary of its content. Extract list of followup subissues if any. The transcript is your primary source of text information, ignore text in images.", | ||
| }, | ||
| video_url: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use camelize (videoUrl) in this file and it will automatically be converted to snaked naming by genaiscript.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed video_url to videoUrl (camelCase) in the genai script parameters. GenAI will automatically convert this to snake_case naming. Commit e5b3be5
|
@copilot apply reviews |
…oUrl, and add dedicated video URL workflow Co-authored-by: pelikhan <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
…permissions in video-url-analyzer.yml; update action command in package.json to include output trace
This PR implements support for receiving video URLs as parameters through workflow_dispatch arguments, addressing the requirement to process videos directly without needing them to be uploaded as issue assets.
Changes Made
🎯 Core Functionality
videoUrlparameter toaction.ymlallowing direct video URL processing as an alternative to extracting URLs from issue bodies🚀 Workflow Enhancements
video-url-analyzer.ymlworkflow specifically for video URL analysis with required video_url input📊 Output Improvements
$GITHUB_STEP_SUMMARYfor easy viewing in the GitHub Actions interfacetextoutput is still available for programmatic access📚 Documentation Updates
videoUrlinput and optional instructionsUsage Examples
Dedicated Video URL Analysis
Users can now use the dedicated workflow for video analysis:
Flexible Action Usage
The analysis results will appear in both the step summary and as a workflow output, making it easy to review the AI-generated video analysis directly in the GitHub interface.
Testing
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.