Skip to content

CrowdCode - Issue to PR #70

CrowdCode - Issue to PR

CrowdCode - Issue to PR #70

name: CrowdCode - Issue to PR
on:
schedule:
- cron: '0 2 * * *' # Daily at 2 AM UTC
workflow_dispatch:
inputs:
dry_run:
description: 'Dry run mode (no actual changes)'
required: false
default: 'false'
type: boolean
permissions:
issues: write
pull-requests: write
contents: write
jobs:
generate-prs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install PyGithub pyyaml
- name: Generate PRs from Issues
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
DRY_RUN: ${{ github.event.inputs.dry_run || 'false' }}
run: |
python scripts/generate-feature-pr.py
- name: Summary
run: |
echo "## CrowdCode Issue to PR Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Workflow completed. Check script output for details." >> $GITHUB_STEP_SUMMARY