| version | 1.0.0 |
| name | github-workflow |
| description | Complete GitHub workflow automation - push, create branch/PR, monitor Actions with pre-existing issue detection, auto-merge/rebase when checks pass.
|
| category | workflow |
| allowed-tools | Read Write Edit Glob Grep Bash |
| license | MIT |
GitHub Workflow Skill
Complete GitHub workflow automation for the full development lifecycle.
When to Use
- Pushing changes to remote
- Creating branches and PRs
- Monitoring GitHub Actions runs
- Auto-merging approved PRs
- Handling PR conflicts
Prerequisites
- GitHub CLI (
gh) installed and authenticated
- Appropriate repository permissions
- Git remote configured
Core Workflows
Quick Push
gh auth status
git add -A
git commit -m "type(scope): description"
git push -u origin HEAD
Branch + PR Creation
gh branch create feature/my-feature
gh pr create --title "feat(scope): description" --body "Description"
Monitor Actions
gh run list --limit 10
gh run watch <run-id>
gh run view <run-id> --log
Auto-Merge Workflow
gh pr merge <pr-number> --admin --auto
Pre-Existing Issue Detection
Detect Before Push
gh run list --branch main --limit 5
gh issue list --label "bug" --state open
Handle Known Issues
- Check - Run health-check before pushing
- Document - Add to agents-docs/KNOWN-ISSUES.md if new
- Verify - Ensure your changes don't depend on broken functionality
Quality Gates Integration
Pre-Push Checklist
Post-Push Validation
gh run watch <run-id> --exit-zero
gh run list --branch <branch> --status failure
Common Patterns
Feature Branch Flow
git checkout main
git pull origin main
git checkout -b feature/my-feature
git add -A
git commit -m "feat(scope): add new feature"
git push -u origin HEAD
gh pr create --fill
gh pr checks <pr-number>
gh pr merge <pr-number> --squash --delete-branch
Hotfix Flow
git checkout main
git pull
git checkout -b hotfix/critical-fix
git add -A
git commit -m "fix(scope): critical fix"
git push -u origin HEAD
gh pr create --title "hotfix: critical fix" --label "hotfix"
gh pr merge <pr-number> --admin --auto
Rebase Workflow
git fetch origin
git rebase origin/main
git push --force-with-lease
GitHub CLI Tips
Authentication
gh auth status
gh auth login
PR Management
gh pr list
gh pr view <number>
gh pr review <number> --approve --body "LGTM"
Error Handling
| Error | Solution |
|---|
| Permission denied | Check gh auth, repo access |
| Branch conflict | Rebase or merge main first |
| Actions failing | Check logs, fix locally |
| Auto-merge disabled | Enable in repo settings |
| PR not mergeable | Rebase or resolve conflicts |
d.o.EPUB Studio Specific
Required Checks Before Merge
Protected Branches
main requires PR + CI passing
- Use branch protection rules
- Require CODEOWNERS review
Integration
- cicd-pipeline: For CI/CD configuration
- code-review-assistant: For PR reviews
Quality Checklist
Summary
GitHub workflow automation streamlines the entire development process from local changes to merged code.