You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refactor github-trigger.py script into a GitHub workflow prompt template #71
Move the functionality of scripts/github-trigger.py from a standalone Python script to a prompt-based template in the struct_module/contribs/github/prompts/ folder, following the existing pattern used by other prompt templates.
Current State
The scripts/github-trigger.py file contains a Python script that:
Fetches repositories in a GitHub organization with a specific topic
Triggers the 'run-struct.yaml' workflow for each matching repository
Uses PyGithub library for GitHub API interactions
Requires GITHUB_TOKEN environment variable
Proposed Changes
Removescripts/github-trigger.py
Create a new prompt template at struct_module/contribs/github/prompts/workflow-trigger.yaml
The new prompt should guide users to create GitHub workflow automation scripts
Expected Structure
The new prompt template should follow the pattern of existing prompts and include:
Instructions for creating GitHub workflow trigger scripts
Best practices for GitHub API usage
Template variables for organization name, topic, and workflow filename
New prompt template is created in the correct location
Prompt template includes comprehensive guidance for GitHub workflow automation
Template follows the same structure as existing prompt files
Documentation is updated if necessary
Related
This change supports the overall goal of making STRUCT more template-driven and reduces the maintenance burden of custom scripts while providing users with flexible, reusable patterns.
Activity
Refactor github-trigger.py script into workflow-trigger prompt template
Refactor github-trigger.py script into workflow-trigger prompt templa…