5e63faf229
Standalone Composer package (mokoconsulting-tech/enterprise). Source: api/, bin/, lib/ directories from MokoStandards main repo. Autoload paths updated for standalone layout.
5.0 KiB
5.0 KiB
Quick Start: Auto-Create Organization Projects
This guide provides a quick start for automatically creating smart GitHub Projects for all repositories in the mokoconsulting-tech organization.
Prerequisites
- GitHub Personal Access Token with permissions:
repo(full repository access)project(read and write)read:org(organization read)
- Python 3.7+ with
requestslibrary installed
Option 1: GitHub Actions (Recommended)
Run via GitHub UI
- Go to Actions tab in the MokoStandards repository
- Select "Auto-Create Organization Projects" workflow
- Click "Run workflow"
- Configure options:
- Dry run: Check to preview without making changes (recommended first time)
- Verbose: Check to enable detailed logging
- Click "Run workflow"
- Review the workflow logs and summary
Scheduled Runs
The workflow automatically runs quarterly (every 3 months) in dry-run mode to detect new repositories and changes.
Option 2: Command Line
Dry Run First (Recommended)
# Preview what would be created
python3 scripts/auto_create_org_projects.py --dry-run --verbose
Create Projects and Roadmaps
# Set your GitHub token
export GH_PAT="your_github_token"
# Run the script
python3 scripts/auto_create_org_projects.py
# Or with verbose logging
python3 scripts/auto_create_org_projects.py --verbose
What Gets Created
For Each Repository
-
Project Type Detection
- Joomla: Detects
.xmlmanifests and Joomla directory structure - Dolibarr: Detects
mod*.class.phpdescriptors and Dolibarr structure - Generic: Default for everything else
- Joomla: Detects
-
Roadmap Generation (if missing)
- Creates
docs/ROADMAP.mdin the repository - Type-specific content with version milestones
- Committed directly to default branch
- Creates
-
GitHub Project Creation
- Project with repository-specific name
- Custom fields based on project type
- Standard views (Master Backlog, Sprint Board, Release Roadmap, Blocked Items)
- Type-specific views
Custom Fields by Type
All Projects:
- Status, Priority, Size/Effort, Sprint, Target Version
- Blocked Reason, Acceptance Criteria
Joomla Projects Add:
- Joomla Version, Extension Type, Marketplace Status
- Update Server URL, Extension Version, PHP Minimum
- Installation Type, Has Frontend/Backend/API
Dolibarr Projects Add:
- Dolibarr Version, Module Number, Database Changes
- Module Descriptor, Module Version, PHP Minimum
- Requires Sudo, Module Family, Has Triggers/Hooks/Widgets
Generic Projects Add:
- Technology Stack, Environment, Release Channel
- API Version, Deployment Status, Infrastructure
- Database Type
Quick Workflow
# 1. Test with dry run
python3 scripts/auto_create_org_projects.py --dry-run --verbose
# 2. Review the output
# - Check detected project types
# - Verify roadmaps to be created
# - Confirm projects to be created
# 3. Run for real
export GH_PAT="your_token"
python3 scripts/auto_create_org_projects.py --verbose
# 4. Review created projects
# Visit: https://github.com/orgs/mokoconsulting-tech/projects
Single Repository Mode
To create a project for a specific repository:
python3 scripts/create_repo_project.py REPO_NAME --type joomla
python3 scripts/create_repo_project.py REPO_NAME --type dolibarr
python3 scripts/create_repo_project.py REPO_NAME --type generic
Troubleshooting
"GitHub token required"
Set the GH_PAT environment variable:
export GH_PAT="ghp_your_token_here"
"Permission denied"
Verify your token has these scopes:
repo- Full repository accessproject- Project read/writeread:org- Organization read
"Failed to detect project type"
The script defaults to "generic" type. Manually specify type when creating:
python3 scripts/create_repo_project.py REPO_NAME --type joomla
"Rate limit exceeded"
GitHub API has rate limits. Wait a few minutes and try again, or use a token with higher limits.
Best Practices
- Always dry-run first to preview changes
- Use verbose mode for better visibility
- Review generated roadmaps and customize as needed
- Check created projects and adjust fields/views
- Configure automations after project creation
- Add initial issues to populate the project
Next Steps After Creation
- Review Projects: Visit each project and verify configuration
- Customize Roadmaps: Edit generated roadmaps for specific needs
- Add Issues: Populate projects with existing issues
- Configure Automations: Set up workflow automations
- Share with Team: Notify team members about new project boards
Documentation
Support
For issues:
- Check logs with
--verboseflag - Review error messages
- Consult AUTO_CREATE_ORG_PROJECTS.md
- Open issue in MokoStandards repository